casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Attributes | Friends
asdm::Pressure Class Reference

The Pressure class implements a quantity of pressure in hectopascals. More...

#include <Pressure.h>

List of all members.

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 .
Pressureoperator= (const Pressure &x)
 An assignment operator Pressure = Pressure.
Pressureoperator= (const double d)
 An assignment operator Pressure = double.
Pressureoperator+= (const Pressure &x)
 Operator increment and assign.
Pressureoperator-= (const Pressure &x)
 Operator decrement and assign.
Pressureoperator*= (const double x)
 Operator multiply and assign.
Pressureoperator/= (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 .
Pressureoperator= (const Pressure &x)
 An assignment operator Pressure = Pressure.
Pressureoperator= (const double d)
 An assignment operator Pressure = double.
Pressureoperator+= (const Pressure &x)
 Operator increment and assign.
Pressureoperator-= (const Pressure &x)
 Operator decrement and assign.
Pressureoperator*= (const double x)
 Operator multiply and assign.
Pressureoperator/= (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< Pressurefrom1DBin (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< Pressurefrom1DBin (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.

Detailed Description

The Pressure class implements a quantity of pressure in hectopascals.

Version:
1.00 Jan. 7, 2005
Author:
Allen Farris
Version:
1.1 Aug 8, 2006
Author:
Michel Caillat added toBin/fromBin methods.

Definition at line 59 of file Pressure.h.


Constructor & Destructor Documentation

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.

Parameters:
sa string.

Definition at line 330 of file Pressure.h.

asdm::Pressure::Pressure ( const IDLPressure &  idlPressure) [inline]

A constructor from a CORBA/IDL representation.

Parameters:
idlPressurea 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 destructor.

Pressure destructor.

Definition at line 335 of file Pressure.h.

The nullary constructor (default).

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.

Parameters:
sa string.
asdm::Pressure::Pressure ( const IDLPressure &  idlPressure)

A constructor from a CORBA/IDL representation.

Parameters:
idlPressurea 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.


Member Function Documentation

bool asdm::Pressure::equals ( const Pressure x) const [inline]

Comparison method.

Equality.

Parameters:
xa const reference to a Pressure.

Definition at line 397 of file Pressure.h.

References value.

bool asdm::Pressure::equals ( const Pressure x) const

Comparison method.

Equality.

Parameters:
xa const reference to a Pressure.
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.

Parameters:
eisa reference to the EndianIStream to be read
Returns:
a vector of Pressure
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.

Parameters:
eisa reference to the EndianIStream to be read
Returns:
a vector of Pressure
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.

Parameters:
eisthe EndianIStream to be read
Returns:
a vector of vector of Pressure
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.

Parameters:
eisthe EndianIStream to be read
Returns:
a vector of vector of Pressure
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.

Parameters:
eisthe EndianIStream to be read
Returns:
a vector of vector of vector of Pressure
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.

Parameters:
eisthe EndianIStream to be read
Returns:
a vector of vector of vector of Pressure
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.

Parameters:
eisthe EndianStream to be read
Returns:
an Pressure
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.

Parameters:
eisthe EndianStream to be read
Returns:
an Pressure
static double asdm::Pressure::fromString ( const string &  s) [static]

A static method equivalent to the constructor from a string.

Parameters:
sa string?.
static double asdm::Pressure::fromString ( const string &  s) [static]

A static method equivalent to the constructor from a string.

Parameters:
sa string?.
double asdm::Pressure::get ( ) const [inline]

Return the double precision value of the Pressure.

Returns:
double

Definition at line 427 of file Pressure.h.

References value.

double asdm::Pressure::get ( ) const

Return the double precision value of the Pressure.

Returns:
double

Parse the next (string) token of a StringTokenizer into an angle.

Parameters:
sta reference to a StringTokenizer.
Returns:
an Pressure.

Parse the next (string) token of a StringTokenizer into an angle.

Parameters:
sta reference to a StringTokenizer.
Returns:
an Pressure.
bool asdm::Pressure::isZero ( ) const

Comparison method.

Test nullity.

Returns:
a bool.
bool asdm::Pressure::isZero ( ) const

Comparison method.

Test nullity.

Returns:
a bool.
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

Comparison operator.

Not-equal.

Parameters:
xa const reference to a Pressure.
bool asdm::Pressure::operator!= ( const Pressure x) const [inline]

Comparison operator.

Not-equal.

Parameters:
xa 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.

Parameters:
xa value in double precision.

Definition at line 374 of file Pressure.h.

References value.

Pressure asdm::Pressure::operator* ( const double  x) const

Multiplication operator.

Parameters:
xa value in double precision.
Pressure & asdm::Pressure::operator*= ( const double  x) [inline]

Operator multiply and assign.

Parameters:
xa 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.

Parameters:
xa value in double precision.
Pressure asdm::Pressure::operator+ ( const Pressure x) const [inline]

Addition operator.

arithmetic functions

Parameters:
xa const reference to a Pressure.

Definition at line 364 of file Pressure.h.

References value.

Pressure asdm::Pressure::operator+ ( const Pressure x) const

Addition operator.

Parameters:
xa const reference to a Pressure.
Pressure asdm::Pressure::operator+ ( ) const

Unary operator.

Unary plus.

Pressure asdm::Pressure::operator+ ( ) const [inline]

Unary operator.

Unary plus.

Definition at line 412 of file Pressure.h.

References value.

Pressure& asdm::Pressure::operator+= ( const Pressure x)

Operator increment and assign.

Parameters:
xa const reference to an Pressure.
Pressure & asdm::Pressure::operator+= ( const Pressure x) [inline]

Operator increment and assign.

assignment with arithmetic operators

Parameters:
xa const reference to an Pressure.

Definition at line 347 of file Pressure.h.

References value.

Pressure asdm::Pressure::operator- ( const Pressure x) const [inline]

Substraction operator.

Parameters:
xa const reference to a Pressure.

Definition at line 369 of file Pressure.h.

References value.

Pressure asdm::Pressure::operator- ( const Pressure x) const

Substraction operator.

Parameters:
xa 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.

Pressure& asdm::Pressure::operator-= ( const Pressure x)

Operator decrement and assign.

Parameters:
xa const reference to an Pressure.
Pressure & asdm::Pressure::operator-= ( const Pressure x) [inline]

Operator decrement and assign.

Parameters:
xa 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.

Parameters:
da value in double precision.

Definition at line 379 of file Pressure.h.

References value.

Pressure asdm::Pressure::operator/ ( const double  x) const

Division operator.

Parameters:
da value in double precision.
Pressure& asdm::Pressure::operator/= ( const double  x)

Operator divide and assign.

Parameters:
xa valye in double precision.
Pressure & asdm::Pressure::operator/= ( const double  x) [inline]

Operator divide and assign.

Parameters:
xa valye in double precision.

Definition at line 359 of file Pressure.h.

References value.

bool asdm::Pressure::operator< ( const Pressure x) const

Comparison operator.

Less-than.

Parameters:
xa const reference to a Pressure.
bool asdm::Pressure::operator< ( const Pressure x) const [inline]

Comparison operator.

comparison operators

Less-than.

Parameters:
xa const reference to a Pressure.

Definition at line 385 of file Pressure.h.

References value.

bool asdm::Pressure::operator<= ( const Pressure x) const

Comparison operator.

Less-than or equal.

Parameters:
xa const reference to a Pressure.
bool asdm::Pressure::operator<= ( const Pressure x) const [inline]

Comparison operator.

Less-than or equal.

Parameters:
xa const reference to a Pressure.

Definition at line 391 of file Pressure.h.

References value.

Pressure & asdm::Pressure::operator= ( const Pressure x) [inline]

An assignment operator Pressure = Pressure.

assignment operator

Parameters:
xa const reference to an Pressure.

Definition at line 337 of file Pressure.h.

References value.

Pressure& asdm::Pressure::operator= ( const Pressure x)

An assignment operator Pressure = Pressure.

Parameters:
xa const reference to an Pressure.
Pressure& asdm::Pressure::operator= ( const double  d)

An assignment operator Pressure = double.

Parameters:
da value in double precision.
Pressure & asdm::Pressure::operator= ( const double  d) [inline]

An assignment operator Pressure = double.

assignment operator

Parameters:
da value in double precision.

Definition at line 342 of file Pressure.h.

References value.

bool asdm::Pressure::operator== ( const Pressure x) const

Comparision operator.

Equal-to.

Parameters:
xa const reference to a Pressure.
bool asdm::Pressure::operator== ( const Pressure x) const [inline]

Comparision operator.

Equal-to.

Parameters:
xa const reference to a Pressure.

Definition at line 400 of file Pressure.h.

References value.

bool asdm::Pressure::operator> ( const Pressure x) const

Comparison operator.

Greater-than.

Parameters:
xa const reference to a Pressure.
bool asdm::Pressure::operator> ( const Pressure x) const [inline]

Comparison operator.

Greater-than.

Parameters:
xa 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.

Parameters:
xa const reference to a Pressure.

Definition at line 394 of file Pressure.h.

References value.

bool asdm::Pressure::operator>= ( const Pressure x) const

Comparison operator.

Greater-than or equal.

Parameters:
xa const reference to a Pressure.

Write the binary representation of this to an EndianOSStream .

Parameters:
eossa reference to an EndianOSStream .

Write the binary representation of this to an EndianOSStream .

Parameters:
eossa 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.

Parameters:
anglethe vector of Pressure to be written
eossthe 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.

Parameters:
anglethe vector of Pressure to be written
eossthe 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.

Parameters:
anglethe vector of vector of Pressure to be written
eossthe 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.

Parameters:
anglethe vector of vector of Pressure to be written
eossthe 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.

Parameters:
anglethe vector of vector of vector of Pressure to be written
eossthe 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.

Parameters:
anglethe vector of vector of vector of Pressure to be written
eossthe EndianOSStream to be written to
IDLPressure asdm::Pressure::toIDLPressure ( ) const

Return the IDLPressure representation of the Pressure.

Returns:
IDLPressure
IDLPressure asdm::Pressure::toIDLPressure ( ) const [inline]

Return the IDLPressure representation of the Pressure.

Returns:
IDLPressure

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.

Returns:
string
static string asdm::Pressure::toString ( double  ) [static]

Conversion into string.

The resulting string contains the representation of the value of this Pressure.

Returns:
string
string asdm::Pressure::toString ( ) const

Converts into a string.

Returns:
a string containing the representation of a the value in double precision.
string asdm::Pressure::toString ( ) const [inline]

Converts into a string.

Returns:
a string containing the representation of a the value in double precision.

Definition at line 421 of file Pressure.h.

References value.

Referenced by operator string(), and toStringI().

string asdm::Pressure::toStringI ( ) const [inline]

Idem toString.

Definition at line 424 of file Pressure.h.

References toString(), and value.

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.

Returns:
string

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.

Returns:
string

Friends And Related Function Documentation

Pressure operator* ( double  d,
const Pressure x 
) [friend]

Overloading of multiplication operator.

Parameters:
da value in double precision .
xa const reference to a Pressure .
Returns:
a Pressure
Pressure operator* ( double  d,
const Pressure x 
) [friend]

Overloading of multiplication operator.

Parameters:
da value in double precision .
xa const reference to a Pressure .
Returns:
a Pressure

Overloading of multiplication operator.

Parameters:
da value in double precision .
xa const reference to a Pressure .
Returns:
a Pressure
ostream& operator<< ( ostream &  os,
const Pressure x 
) [friend]

Overloading of << to output the value an Pressure on an ostream.

Parameters:
osa reference to the ostream to be written on.
xa const reference to a Pressure.
ostream& operator<< ( ostream &  os,
const Pressure x 
) [friend]

Overloading of << to output the value an Pressure on an ostream.

Parameters:
osa reference to the ostream to be written on.
xa const reference to a Pressure.
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.


Member Data Documentation

double asdm::Pressure::value [private]

The documentation for this class was generated from the following files: