casa
$Rev:20696$
|
The Pressure class implements a quantity of pressure in hectopascals. More...
#include <Pressure.h>
Public Member Functions | |
Pressure () | |
The nullary constructor (default). | |
Pressure (const Pressure &) | |
The copy constructor. | |
Pressure (const string &s) | |
A constructor from a string representation. | |
Pressure (const IDLPressure &idlPressure) | |
A constructor from a CORBA/IDL representation. | |
Pressure (double value) | |
A constructor from a value in double precision. | |
virtual | ~Pressure () |
The destructor. | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . | |
Pressure & | operator= (const Pressure &x) |
An assignment operator Pressure = Pressure. | |
Pressure & | operator= (const double d) |
An assignment operator Pressure = double. | |
Pressure & | operator+= (const Pressure &x) |
Operator increment and assign. | |
Pressure & | operator-= (const Pressure &x) |
Operator decrement and assign. | |
Pressure & | operator*= (const double x) |
Operator multiply and assign. | |
Pressure & | operator/= (const double x) |
Operator divide and assign. | |
Pressure | operator+ (const Pressure &x) const |
Addition operator. | |
Pressure | operator- (const Pressure &x) const |
Substraction operator. | |
Pressure | operator* (const double x) const |
Multiplication operator. | |
Pressure | operator/ (const double x) const |
Division operator. | |
bool | operator< (const Pressure &x) const |
Comparison operator. | |
bool | operator> (const Pressure &x) const |
Comparison operator. | |
bool | operator<= (const Pressure &x) const |
Comparison operator. | |
bool | operator>= (const Pressure &x) const |
Comparison operator. | |
bool | operator== (const Pressure &x) const |
Comparision operator. | |
bool | equals (const Pressure &x) const |
Comparison method. | |
bool | operator!= (const Pressure &x) const |
Comparison operator. | |
bool | isZero () const |
Comparison method. | |
Pressure | operator- () const |
Unary operator. | |
Pressure | 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 Pressure. | |
IDLPressure | toIDLPressure () const |
Return the IDLPressure representation of the Pressure. | |
Pressure () | |
The nullary constructor (default). | |
Pressure (const Pressure &) | |
The copy constructor. | |
Pressure (const string &s) | |
A constructor from a string representation. | |
Pressure (const IDLPressure &idlPressure) | |
A constructor from a CORBA/IDL representation. | |
Pressure (double value) | |
A constructor from a value in double precision. | |
virtual | ~Pressure () |
The destructor. | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . | |
Pressure & | operator= (const Pressure &x) |
An assignment operator Pressure = Pressure. | |
Pressure & | operator= (const double d) |
An assignment operator Pressure = double. | |
Pressure & | operator+= (const Pressure &x) |
Operator increment and assign. | |
Pressure & | operator-= (const Pressure &x) |
Operator decrement and assign. | |
Pressure & | operator*= (const double x) |
Operator multiply and assign. | |
Pressure & | operator/= (const double x) |
Operator divide and assign. | |
Pressure | operator+ (const Pressure &x) const |
Addition operator. | |
Pressure | operator- (const Pressure &x) const |
Substraction operator. | |
Pressure | operator* (const double x) const |
Multiplication operator. | |
Pressure | operator/ (const double x) const |
Division operator. | |
bool | operator< (const Pressure &x) const |
Comparison operator. | |
bool | operator> (const Pressure &x) const |
Comparison operator. | |
bool | operator<= (const Pressure &x) const |
Comparison operator. | |
bool | operator>= (const Pressure &x) const |
Comparison operator. | |
bool | operator== (const Pressure &x) const |
Comparision operator. | |
bool | equals (const Pressure &x) const |
Comparison method. | |
bool | operator!= (const Pressure &x) const |
Comparison operator. | |
bool | isZero () const |
Comparison method. | |
Pressure | operator- () const |
Unary operator. | |
Pressure | 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 Pressure. | |
IDLPressure | toIDLPressure () const |
Return the IDLPressure representation of the Pressure. | |
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 Pressure | getPressure (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. | |
static void | toBin (const vector< Pressure > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Pressure to a EndianOSStream. | |
static void | toBin (const vector< vector< Pressure > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Pressure to a EndianOSStream. | |
static void | toBin (const vector< vector< vector< Pressure > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Pressure to a EndianOSStream. | |
static Pressure | fromBin (EndianIStream &eis) |
Read the binary representation of an Pressure from a EndianIStream and use the read value to set an Pressure. | |
static vector< Pressure > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Pressure from an EndianIStream and use the read value to set a vector of Pressure. | |
static vector< vector< Pressure > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of Pressure. | |
static vector< vector< vector < Pressure > > > | from3DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of vector of Pressure. | |
static string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Pressure. | |
static double | fromString (const string &s) |
A static method equivalent to the constructor from a string. | |
static string | toString (double) |
Conversion into string. | |
static Pressure | getPressure (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. | |
static void | toBin (const vector< Pressure > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Pressure to a EndianOSStream. | |
static void | toBin (const vector< vector< Pressure > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Pressure to a EndianOSStream. | |
static void | toBin (const vector< vector< vector< Pressure > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Pressure to a EndianOSStream. | |
static Pressure | fromBin (EndianIStream &eis) |
Read the binary representation of an Pressure from a EndianIStream and use the read value to set an Pressure. | |
static vector< Pressure > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Pressure from an EndianIStream and use the read value to set a vector of Pressure. | |
static vector< vector< Pressure > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of Pressure. | |
static vector< vector< vector < Pressure > > > | from3DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of vector of Pressure. | |
static string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Pressure. | |
Private Attributes | |
double | value |
Friends | |
Pressure | operator* (double d, const Pressure &x) |
Overloading of multiplication operator. | |
ostream & | operator<< (ostream &os, const Pressure &x) |
Overloading of << to output the value an Pressure on an ostream. | |
istream & | operator>> (istream &is, Pressure &x) |
Overloading of >> to read an Pressure from an istream. | |
Pressure | operator* (double d, const Pressure &x) |
Overloading of multiplication operator. | |
ostream & | operator<< (ostream &os, const Pressure &x) |
Overloading of << to output the value an Pressure on an ostream. | |
istream & | operator>> (istream &is, Pressure &x) |
Overloading of >> to read an Pressure from an istream. |
The Pressure class implements a quantity of pressure in hectopascals.
Definition at line 59 of file Pressure.h.
asdm::Pressure::Pressure | ( | ) | [inline] |
The nullary constructor (default).
Pressure constructors.
Definition at line 322 of file Pressure.h.
asdm::Pressure::Pressure | ( | const Pressure & | t | ) | [inline] |
The copy constructor.
Definition at line 324 of file Pressure.h.
asdm::Pressure::Pressure | ( | const string & | s | ) | [inline] |
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. |
Definition at line 330 of file Pressure.h.
asdm::Pressure::Pressure | ( | const IDLPressure & | idlPressure | ) | [inline] |
A constructor from a CORBA/IDL representation.
idlPressure | a cons ref to an IDLPressure. |
Definition at line 327 of file Pressure.h.
asdm::Pressure::Pressure | ( | double | value | ) | [inline] |
A constructor from a value in double precision.
The value passed in argument defines the value of the Pressure in radian.
Definition at line 332 of file Pressure.h.
asdm::Pressure::~Pressure | ( | ) | [inline, virtual] |
The nullary constructor (default).
asdm::Pressure::Pressure | ( | const Pressure & | ) |
The copy constructor.
asdm::Pressure::Pressure | ( | 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::Pressure::Pressure | ( | const IDLPressure & | idlPressure | ) |
A constructor from a CORBA/IDL representation.
idlPressure | a cons ref to an IDLPressure. |
asdm::Pressure::Pressure | ( | double | value | ) |
A constructor from a value in double precision.
The value passed in argument defines the value of the Pressure in radian.
virtual asdm::Pressure::~Pressure | ( | ) | [virtual] |
The destructor.
bool asdm::Pressure::equals | ( | const Pressure & | x | ) | const [inline] |
Comparison method.
Equality.
x | a const reference to a Pressure. |
Definition at line 397 of file Pressure.h.
References value.
bool asdm::Pressure::equals | ( | const Pressure & | x | ) | const |
static vector<Pressure> asdm::Pressure::from1DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of Pressure from an EndianIStream and use the read value to set a vector of Pressure.
eis | a reference to the EndianIStream to be read |
static vector<Pressure> asdm::Pressure::from1DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of Pressure from an EndianIStream and use the read value to set a vector of Pressure.
eis | a reference to the EndianIStream to be read |
static vector<vector<Pressure> > asdm::Pressure::from2DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of Pressure.
eis | the EndianIStream to be read |
static vector<vector<Pressure> > asdm::Pressure::from2DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of Pressure.
eis | the EndianIStream to be read |
static vector<vector<vector<Pressure> > > asdm::Pressure::from3DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of vector of Pressure.
eis | the EndianIStream to be read |
static vector<vector<vector<Pressure> > > asdm::Pressure::from3DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of vector of vector of Pressure from an EndianIStream and use the read value to set a vector of vector of vector of Pressure.
eis | the EndianIStream to be read |
static Pressure asdm::Pressure::fromBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of an Pressure from a EndianIStream and use the read value to set an Pressure.
eis | the EndianStream to be read |
static Pressure asdm::Pressure::fromBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of an Pressure from a EndianIStream and use the read value to set an Pressure.
eis | the EndianStream to be read |
static double asdm::Pressure::fromString | ( | const string & | s | ) | [static] |
A static method equivalent to the constructor from a string.
s | a string?. |
static double asdm::Pressure::fromString | ( | const string & | s | ) | [static] |
A static method equivalent to the constructor from a string.
s | a string?. |
double asdm::Pressure::get | ( | ) | const [inline] |
Return the double precision value of the Pressure.
Definition at line 427 of file Pressure.h.
References value.
double asdm::Pressure::get | ( | ) | const |
Return the double precision value of the Pressure.
static Pressure asdm::Pressure::getPressure | ( | StringTokenizer & | st | ) | throw (NumberFormatException) [static] |
Parse the next (string) token of a StringTokenizer into an angle.
st | a reference to a StringTokenizer. |
static Pressure asdm::Pressure::getPressure | ( | StringTokenizer & | st | ) | throw (NumberFormatException) [static] |
Parse the next (string) token of a StringTokenizer into an angle.
st | a reference to a StringTokenizer. |
bool asdm::Pressure::isZero | ( | ) | const |
Comparison method.
Test nullity.
bool asdm::Pressure::isZero | ( | ) | const |
Comparison method.
Test nullity.
asdm::Pressure::operator string | ( | ) | const [inline] |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 418 of file Pressure.h.
References toString().
asdm::Pressure::operator string | ( | ) | const |
Conversion operator.
Converts into a string.
bool asdm::Pressure::operator!= | ( | const Pressure & | x | ) | const |
bool asdm::Pressure::operator!= | ( | const Pressure & | x | ) | const [inline] |
Comparison operator.
Not-equal.
x | a const reference to a Pressure. |
Definition at line 403 of file Pressure.h.
References value.
Pressure asdm::Pressure::operator* | ( | const double | x | ) | const [inline] |
Multiplication operator.
x | a value in double precision. |
Definition at line 374 of file Pressure.h.
References value.
Pressure asdm::Pressure::operator* | ( | const double | x | ) | const |
Multiplication operator.
x | a value in double precision. |
Pressure & asdm::Pressure::operator*= | ( | const double | x | ) | [inline] |
Operator multiply and assign.
x | a value in double precision. |
Definition at line 355 of file Pressure.h.
References value.
Pressure& asdm::Pressure::operator*= | ( | const double | x | ) |
Operator multiply and assign.
x | a value in double precision. |
Addition operator.
arithmetic functions
x | a const reference to a Pressure. |
Definition at line 364 of file Pressure.h.
References value.
Addition operator.
x | a const reference to a Pressure. |
Pressure asdm::Pressure::operator+ | ( | ) | const |
Unary operator.
Unary plus.
Pressure asdm::Pressure::operator+ | ( | ) | const [inline] |
Operator increment and assign.
x | a const reference to an Pressure. |
Operator increment and assign.
assignment with arithmetic operators
x | a const reference to an Pressure. |
Definition at line 347 of file Pressure.h.
References value.
Substraction operator.
x | a const reference to a Pressure. |
Definition at line 369 of file Pressure.h.
References value.
Substraction operator.
x | a const reference to a Pressure. |
Pressure asdm::Pressure::operator- | ( | ) | const |
Unary operator.
Opposite.
Pressure asdm::Pressure::operator- | ( | ) | const [inline] |
Unary operator.
unary - and + operators
Opposite.
Definition at line 407 of file Pressure.h.
References value.
Operator decrement and assign.
x | a const reference to an Pressure. |
Operator decrement and assign.
x | a const reference to an Pressure. |
Definition at line 351 of file Pressure.h.
References value.
Pressure asdm::Pressure::operator/ | ( | const double | x | ) | const [inline] |
Division operator.
d | a value in double precision. |
Definition at line 379 of file Pressure.h.
References value.
Pressure asdm::Pressure::operator/ | ( | const double | x | ) | const |
Division operator.
d | a value in double precision. |
Pressure& asdm::Pressure::operator/= | ( | const double | x | ) |
Operator divide and assign.
x | a valye in double precision. |
Pressure & asdm::Pressure::operator/= | ( | const double | x | ) | [inline] |
Operator divide and assign.
x | a valye in double precision. |
Definition at line 359 of file Pressure.h.
References value.
bool asdm::Pressure::operator< | ( | const Pressure & | x | ) | const |
bool asdm::Pressure::operator< | ( | const Pressure & | x | ) | const [inline] |
Comparison operator.
comparison operators
Less-than.
x | a const reference to a Pressure. |
Definition at line 385 of file Pressure.h.
References value.
bool asdm::Pressure::operator<= | ( | const Pressure & | x | ) | const |
bool asdm::Pressure::operator<= | ( | const Pressure & | x | ) | const [inline] |
Comparison operator.
Less-than or equal.
x | a const reference to a Pressure. |
Definition at line 391 of file Pressure.h.
References value.
Pressure& asdm::Pressure::operator= | ( | const double | d | ) |
An assignment operator Pressure = double.
d | a value in double precision. |
Pressure & asdm::Pressure::operator= | ( | const double | d | ) | [inline] |
An assignment operator Pressure = double.
assignment operator
d | a value in double precision. |
Definition at line 342 of file Pressure.h.
References value.
bool asdm::Pressure::operator== | ( | const Pressure & | x | ) | const |
bool asdm::Pressure::operator== | ( | const Pressure & | x | ) | const [inline] |
Comparision operator.
Equal-to.
x | a const reference to a Pressure. |
Definition at line 400 of file Pressure.h.
References value.
bool asdm::Pressure::operator> | ( | const Pressure & | x | ) | const |
bool asdm::Pressure::operator> | ( | const Pressure & | x | ) | const [inline] |
Comparison operator.
Greater-than.
x | a const reference to a Pressure. |
Definition at line 388 of file Pressure.h.
References value.
bool asdm::Pressure::operator>= | ( | const Pressure & | x | ) | const [inline] |
Comparison operator.
Greater-than or equal.
x | a const reference to a Pressure. |
Definition at line 394 of file Pressure.h.
References value.
bool asdm::Pressure::operator>= | ( | const Pressure & | x | ) | const |
void asdm::Pressure::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
void asdm::Pressure::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
static void asdm::Pressure::toBin | ( | const vector< Pressure > & | angle, |
EndianOSStream & | eoss | ||
) | [static] |
Write the binary representation of a vector of Pressure to a EndianOSStream.
angle | the vector of Pressure to be written |
eoss | the EndianOSStream to be written to |
static void asdm::Pressure::toBin | ( | const vector< Pressure > & | angle, |
EndianOSStream & | eoss | ||
) | [static] |
Write the binary representation of a vector of Pressure to a EndianOSStream.
angle | the vector of Pressure to be written |
eoss | the EndianOSStream to be written to |
static void asdm::Pressure::toBin | ( | const vector< vector< Pressure > > & | angle, |
EndianOSStream & | eoss | ||
) | [static] |
Write the binary representation of a vector of vector of Pressure to a EndianOSStream.
angle | the vector of vector of Pressure to be written |
eoss | the EndianOSStream to be written to |
static void asdm::Pressure::toBin | ( | const vector< vector< Pressure > > & | angle, |
EndianOSStream & | eoss | ||
) | [static] |
Write the binary representation of a vector of vector of Pressure to a EndianOSStream.
angle | the vector of vector of Pressure to be written |
eoss | the EndianOSStream to be written to |
static void asdm::Pressure::toBin | ( | const vector< vector< vector< Pressure > > > & | angle, |
EndianOSStream & | eoss | ||
) | [static] |
Write the binary representation of a vector of vector of vector of Pressure to a EndianOSStream.
angle | the vector of vector of vector of Pressure to be written |
eoss | the EndianOSStream to be written to |
static void asdm::Pressure::toBin | ( | const vector< vector< vector< Pressure > > > & | angle, |
EndianOSStream & | eoss | ||
) | [static] |
Write the binary representation of a vector of vector of vector of Pressure to a EndianOSStream.
angle | the vector of vector of vector of Pressure to be written |
eoss | the EndianOSStream to be written to |
IDLPressure asdm::Pressure::toIDLPressure | ( | ) | const |
Return the IDLPressure representation of the Pressure.
IDLPressure asdm::Pressure::toIDLPressure | ( | ) | const [inline] |
Return the IDLPressure representation of the Pressure.
Definition at line 431 of file Pressure.h.
References value.
static string asdm::Pressure::toString | ( | double | ) | [static] |
Conversion into string.
The resulting string contains the representation of the value of this Pressure.
static string asdm::Pressure::toString | ( | double | ) | [static] |
Conversion into string.
The resulting string contains the representation of the value of this Pressure.
string asdm::Pressure::toString | ( | ) | const |
Converts into a string.
string asdm::Pressure::toString | ( | ) | const [inline] |
Converts into a string.
Definition at line 421 of file Pressure.h.
References value.
Referenced by operator string(), and toStringI().
string asdm::Pressure::toStringI | ( | ) | const [inline] |
string asdm::Pressure::toStringI | ( | ) | const |
Idem toString.
string asdm::Pressure::unit | ( | ) | [inline, static] |
Returns the abbreviated name of the unit implicitely associated to any Pressure.
Definition at line 451 of file Pressure.h.
static string asdm::Pressure::unit | ( | ) | [static] |
Returns the abbreviated name of the unit implicitely associated to any Pressure.
ostream& operator<< | ( | ostream & | os, |
const Pressure & | x | ||
) | [friend] |
ostream& operator<< | ( | ostream & | os, |
const Pressure & | x | ||
) | [friend] |
istream& operator>> | ( | istream & | is, |
Pressure & | x | ||
) | [friend] |
Overloading of >> to read an Pressure from an istream.
istream& operator>> | ( | istream & | is, |
Pressure & | x | ||
) | [friend] |
Overloading of >> to read an Pressure from an istream.
double asdm::Pressure::value [private] |
Definition at line 319 of file Pressure.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>>(), toIDLPressure(), toString(), and toStringI().