casa
5.7.0-16
|
The Pressure class implements a quantity of pressure in hectopascals. More...
#include <Pressure.h>
Public Member Functions | |
Pressure () | |
The nullary constructor (default). More... | |
Pressure (const Pressure &) | |
The copy constructor. More... | |
Pressure (const std::string &s) | |
A constructor from a string representation. More... | |
Pressure (const asdmIDLTypes::IDLPressure &idlPressure) | |
A constructor from a CORBA/IDL representation. More... | |
Pressure (double value) | |
A constructor from a value in double precision. More... | |
virtual | ~Pressure () |
The destructor. More... | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . More... | |
Pressure & | operator= (const Pressure &x) |
An assignment operator Pressure = Pressure. More... | |
Pressure & | operator= (const double d) |
An assignment operator Pressure = double. More... | |
Pressure & | operator+= (const Pressure &x) |
Operator increment and assign. More... | |
Pressure & | operator-= (const Pressure &x) |
Operator decrement and assign. More... | |
Pressure & | operator*= (const double x) |
Operator multiply and assign. More... | |
Pressure & | operator/= (const double x) |
Operator divide and assign. More... | |
Pressure | operator+ (const Pressure &x) const |
Addition operator. More... | |
Pressure | operator- (const Pressure &x) const |
Substraction operator. More... | |
Pressure | operator* (const double x) const |
Multiplication operator. More... | |
Pressure | operator/ (const double x) const |
Division operator. More... | |
bool | operator< (const Pressure &x) const |
Comparison operator. More... | |
bool | operator> (const Pressure &x) const |
Comparison operator. More... | |
bool | operator<= (const Pressure &x) const |
Comparison operator. More... | |
bool | operator>= (const Pressure &x) const |
Comparison operator. More... | |
bool | operator== (const Pressure &x) const |
Comparision operator. More... | |
bool | equals (const Pressure &x) const |
Comparison method. More... | |
bool | operator!= (const Pressure &x) const |
Comparison operator. More... | |
bool | isZero () const |
Comparison method. More... | |
Pressure | operator- () const |
Unary operator. More... | |
Pressure | 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 Pressure. More... | |
asdmIDLTypes::IDLPressure | toIDLPressure () const |
Return the IDLPressure representation of the Pressure. 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 Pressure | getPressure (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. More... | |
static void | toBin (const std::vector< Pressure > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Pressure to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< Pressure > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Pressure to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< std::vector< Pressure > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Pressure to a EndianOSStream. More... | |
static Pressure | fromBin (EndianIStream &eis) |
Read the binary representation of an Pressure from a EndianIStream and use the read value to set an Pressure. More... | |
static std::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. More... | |
static std::vector < std::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. More... | |
static std::vector < std::vector< std::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. More... | |
static std::string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Pressure. More... | |
Private Attributes | |
double | value |
Friends | |
Pressure | operator* (double d, const Pressure &x) |
Overloading of multiplication operator. More... | |
std::ostream & | operator<< (std::ostream &os, const Pressure &x) |
Overloading of << to output the value an Pressure on an ostream. More... | |
std::istream & | operator>> (std::istream &is, Pressure &x) |
Overloading of >> to read an Pressure from an istream. More... | |
The Pressure class implements a quantity of pressure in hectopascals.
Definition at line 53 of file Pressure.h.
|
inline |
The nullary constructor (default).
Pressure constructors.
Definition at line 316 of file Pressure.h.
|
inline |
The copy constructor.
Definition at line 318 of file Pressure.h.
|
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 324 of file Pressure.h.
|
inline |
A constructor from a CORBA/IDL representation.
idlPressure | a cons ref to an IDLPressure. |
Definition at line 321 of file Pressure.h.
|
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 326 of file Pressure.h.
|
inlinevirtual |
|
inline |
Comparison method.
Equality.
x | a const reference to a Pressure. |
Definition at line 391 of file Pressure.h.
References value.
|
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 |
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 |
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 |
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 |
A static method equivalent to the constructor from a string.
s | a string?. |
|
inline |
Return the double precision value of the Pressure.
Definition at line 421 of file Pressure.h.
References value.
|
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.
|
inline |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 412 of file Pressure.h.
References casa::vpf::toString().
|
inline |
Comparison operator.
Not-equal.
x | a const reference to a Pressure. |
Definition at line 397 of file Pressure.h.
References value.
|
inline |
Multiplication operator.
x | a value in double precision. |
Definition at line 368 of file Pressure.h.
References value.
|
inline |
Operator multiply and assign.
x | a value in double precision. |
Definition at line 349 of file Pressure.h.
References value.
Addition operator.
arithmetic functions
x | a const reference to a Pressure. |
Definition at line 358 of file Pressure.h.
References value.
|
inline |
Operator increment and assign.
assignment with arithmetic operators
x | a const reference to an Pressure. |
Definition at line 341 of file Pressure.h.
References value.
Substraction operator.
x | a const reference to a Pressure. |
Definition at line 363 of file Pressure.h.
References value.
|
inline |
Unary operator.
unary - and + operators
Opposite.
Definition at line 401 of file Pressure.h.
References value.
Operator decrement and assign.
x | a const reference to an Pressure. |
Definition at line 345 of file Pressure.h.
References value.
|
inline |
Division operator.
d | a value in double precision. |
Definition at line 373 of file Pressure.h.
References value.
|
inline |
Operator divide and assign.
x | a valye in double precision. |
Definition at line 353 of file Pressure.h.
References value.
|
inline |
Comparison operator.
comparison operators
Less-than.
x | a const reference to a Pressure. |
Definition at line 379 of file Pressure.h.
References value.
|
inline |
Comparison operator.
Less-than or equal.
x | a const reference to a Pressure. |
Definition at line 385 of file Pressure.h.
References value.
|
inline |
An assignment operator Pressure = double.
assignment operator
d | a value in double precision. |
Definition at line 336 of file Pressure.h.
References value.
|
inline |
Comparision operator.
Equal-to.
x | a const reference to a Pressure. |
Definition at line 394 of file Pressure.h.
References value.
|
inline |
Comparison operator.
Greater-than.
x | a const reference to a Pressure. |
Definition at line 382 of file Pressure.h.
References value.
|
inline |
Comparison operator.
Greater-than or equal.
x | a const reference to a Pressure. |
Definition at line 388 of file Pressure.h.
References value.
void asdm::Pressure::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 Pressure to a EndianOSStream.
angle | the vector of Pressure to be written |
eoss | the EndianOSStream to be written to |
|
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 |
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 |
|
inline |
Return the IDLPressure representation of the Pressure.
Definition at line 425 of file Pressure.h.
References value.
|
static |
Conversion into string.
The resulting string contains the representation of the value of this Pressure.
|
inline |
Converts into a string.
Definition at line 415 of file Pressure.h.
References value.
Referenced by toStringI().
|
inline |
|
inlinestatic |
Returns the abbreviated name of the unit implicitely associated to any Pressure.
Definition at line 445 of file Pressure.h.
|
friend |
|
friend |
Overloading of >> to read an Pressure from an istream.
|
private |
Definition at line 313 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().