casa
5.7.0-16
|
The Length class implements a quantity of length in meters. More...
#include <Length.h>
Public Member Functions | |
Length () | |
The nullary constructor (default). More... | |
Length (const Length &) | |
The copy constructor. More... | |
Length (const std::string &s) | |
A constructor from a string representation. More... | |
Length (const asdmIDLTypes::IDLLength &idlLength) | |
A constructor from a CORBA/IDL representation. More... | |
Length (double value) | |
A constructor from a value in double precision. More... | |
virtual | ~Length () |
The destructor. More... | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . More... | |
Length & | operator= (const Length &x) |
An assignment operator Length = Length. More... | |
Length & | operator= (const double d) |
An assignment operator Length = double. More... | |
Length & | operator+= (const Length &x) |
Operator increment and assign. More... | |
Length & | operator-= (const Length &x) |
Operator decrement and assign. More... | |
Length & | operator*= (const double x) |
Operator multiply and assign. More... | |
Length & | operator/= (const double x) |
Operator divide and assign. More... | |
Length | operator+ (const Length &x) const |
Addition operator. More... | |
Length | operator- (const Length &x) const |
Substraction operator. More... | |
Length | operator* (const double x) const |
Multiplication operator. More... | |
Length | operator/ (const double x) const |
Division operator. More... | |
bool | operator< (const Length &x) const |
Comparison operator. More... | |
bool | operator> (const Length &x) const |
Comparison operator. More... | |
bool | operator<= (const Length &x) const |
Comparison operator. More... | |
bool | operator>= (const Length &x) const |
Comparison operator. More... | |
bool | operator== (const Length &x) const |
Comparision operator. More... | |
bool | equals (const Length &x) const |
Comparison method. More... | |
bool | operator!= (const Length &x) const |
Comparison operator. More... | |
bool | isZero () const |
Comparison method. More... | |
Length | operator- () const |
Unary operator. More... | |
Length | operator+ () const |
Unary operator. More... | |
std::string | toString () const |
Converts into a string. More... | |
std::string | toStringI () const |
Idem toString. More... | |
operator std::string () const | |
Conversion operator. More... | |
double | get () const |
Return the double precision value of the Length. More... | |
asdmIDLTypes::IDLLength | toIDLLength () const |
Return the IDLLength representation of the Length. More... | |
Static Public Member Functions | |
static double | fromString (const std::string &s) |
A static method equivalent to the constructor from a string. More... | |
static std::string | toString (double) |
Conversion into string. More... | |
static Length | getLength (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. More... | |
static void | toBin (const std::vector< Length > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Length to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< Length > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Length to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< std::vector< Length > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Length to a EndianOSStream. More... | |
static Length | fromBin (EndianIStream &eis) |
Read the binary representation of an Length from a EndianIStream and use the read value to set an Length. More... | |
static std::vector< Length > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Length from an EndianIStream and use the read value to set a vector of Length. More... | |
static std::vector < std::vector< Length > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Length from an EndianIStream and use the read value to set a vector of vector of Length. More... | |
static std::vector < std::vector< std::vector < Length > > > | from3DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of vector of Length from an EndianIStream and use the read value to set a vector of vector of vector of Length. More... | |
static std::string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Length. More... | |
Private Attributes | |
double | value |
Friends | |
Length | operator* (double d, const Length &x) |
Overloading of multiplication operator. More... | |
std::ostream & | operator<< (std::ostream &os, const Length &x) |
Overloading of << to output the value an Length on an ostream. More... | |
std::istream & | operator>> (std::istream &is, Length &x) |
Overloading of >> to read an Length from an istream. More... | |
The Length class implements a quantity of length in meters.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
static |
Read the binary representation of a vector of Length from an EndianIStream and use the read value to set a vector of Length.
eis | a reference to the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of Length from an EndianIStream and use the read value to set a vector of vector of Length.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of vector of Length from an EndianIStream and use the read value to set a vector of vector of vector of Length.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of an Length from a EndianIStream and use the read value to set an Length.
eis | the EndianStream to be read |
|
static |
A static method equivalent to the constructor from a string.
s | a string?. |
|
inline |
|
static |
Parse the next (string) token of a StringTokenizer into an angle.
st | a reference to a StringTokenizer. |
bool asdm::Length::isZero | ( | ) | const |
Comparison method.
Test nullity.
|
inline |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 412 of file Length.h.
References casa::vpf::toString().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void asdm::Length::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
|
static |
Write the binary representation of a vector of Length to a EndianOSStream.
angle | the vector of Length to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of Length to a EndianOSStream.
angle | the vector of vector of Length to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of vector of Length to a EndianOSStream.
angle | the vector of vector of vector of Length to be written |
eoss | the EndianOSStream to be written to |
|
inline |
|
static |
Conversion into string.
The resulting string contains the representation of the value of this Length.
|
inline |
Converts into a string.
Definition at line 415 of file Length.h.
References value.
Referenced by toStringI().
|
inline |
|
inlinestatic |
Returns the abbreviated name of the unit implicitely associated to any Length.
Definition at line 445 of file Length.h.
Referenced by casa::MS2ASDM::unitASDMLength().
|
friend |
|
friend |
Overloading of >> to read an Length from an istream.
|
private |
Definition at line 313 of file Length.h.
Referenced by equals(), get(), operator!=(), asdm::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), asdm::operator<<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), asdm::operator>>(), toIDLLength(), toString(), and toStringI().