casa
$Rev:20696$
|
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. | |
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. | |
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. | |
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.
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] |
The nullary constructor (default).
asdm::Length::Length | ( | const Length & | ) |
The copy constructor.
asdm::Length::Length | ( | const string & | s | ) |
A constructor from a string representation.
The string passed in argument must be parsable into a double precision number to express the value in radian of the angle.
s | a string. |
asdm::Length::Length | ( | const IDLLength & | idlLength | ) |
A constructor from a CORBA/IDL representation.
idlLength | a cons ref to an IDLLength. |
asdm::Length::Length | ( | double | value | ) |
A constructor from a value in double precision.
The value passed in argument defines the value of the Length in radian.
virtual asdm::Length::~Length | ( | ) | [virtual] |
The destructor.
bool asdm::Length::equals | ( | const Length & | x | ) | const [inline] |
bool asdm::Length::equals | ( | const Length & | x | ) | const |
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<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<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 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 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?. |
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] |
double asdm::Length::get | ( | ) | const |
Return the double precision value of the Length.
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. |
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.
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().
asdm::Length::operator string | ( | ) | const |
Conversion operator.
Converts into a string.
bool asdm::Length::operator!= | ( | const Length & | x | ) | const |
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 | ) | const |
Multiplication operator.
x | a value in double precision. |
Length & asdm::Length::operator*= | ( | const double | x | ) | [inline] |
Length& asdm::Length::operator*= | ( | const double | x | ) |
Operator multiply and assign.
x | a value in double precision. |
Addition operator.
x | a const reference to a Length. |
Length asdm::Length::operator+ | ( | ) | const |
Unary operator.
Unary plus.
Length asdm::Length::operator+ | ( | ) | const [inline] |
Operator increment and assign.
x | a const reference to an Length. |
Substraction operator.
x | a const reference to a Length. |
Length asdm::Length::operator- | ( | ) | const |
Unary operator.
Opposite.
Length asdm::Length::operator- | ( | ) | const [inline] |
Operator decrement and assign.
x | a const reference to an Length. |
Length asdm::Length::operator/ | ( | const double | x | ) | const [inline] |
Length asdm::Length::operator/ | ( | const double | x | ) | const |
Division operator.
d | a value in double precision. |
Length& asdm::Length::operator/= | ( | const double | x | ) |
Operator divide and assign.
x | a valye in double precision. |
Length & asdm::Length::operator/= | ( | const double | x | ) | [inline] |
bool asdm::Length::operator< | ( | const Length & | x | ) | const |
bool asdm::Length::operator< | ( | const Length & | x | ) | const [inline] |
bool asdm::Length::operator<= | ( | const Length & | x | ) | const |
bool asdm::Length::operator<= | ( | const Length & | x | ) | const [inline] |
Length& asdm::Length::operator= | ( | const double | d | ) |
An assignment operator Length = double.
d | a value in double precision. |
Length & asdm::Length::operator= | ( | const double | d | ) | [inline] |
bool asdm::Length::operator== | ( | const Length & | x | ) | const |
bool asdm::Length::operator== | ( | const Length & | x | ) | const [inline] |
bool asdm::Length::operator> | ( | const Length & | x | ) | const |
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 |
void asdm::Length::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
void asdm::Length::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
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 |
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 |
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< 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< 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< 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 |
IDLLength asdm::Length::toIDLLength | ( | ) | const |
Return the IDLLength representation of the Length.
IDLLength asdm::Length::toIDLLength | ( | ) | const [inline] |
static string asdm::Length::toString | ( | double | ) | [static] |
Conversion into string.
The resulting string contains the representation of the value of this Length.
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::toString | ( | ) | const |
Converts into a string.
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().
string asdm::Length::toStringI | ( | ) | const [inline] |
string asdm::Length::toStringI | ( | ) | const |
Idem toString.
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().
static string asdm::Length::unit | ( | ) | [static] |
Returns the abbreviated name of the unit implicitely associated to any Length.
ostream& operator<< | ( | ostream & | os, |
const Length & | x | ||
) | [friend] |
ostream& operator<< | ( | ostream & | os, |
const Length & | x | ||
) | [friend] |
istream& operator>> | ( | istream & | is, |
Length & | x | ||
) | [friend] |
Overloading of >> to read an Length from an istream.
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!=(), asdm::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), asdm::operator<<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), asdm::operator>>(), toIDLLength(), toString(), and toStringI().