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