casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
asdm::AngularRate Class Reference

The AngularRate class implements a quantity of AngularRate in radians per second. More...

#include <AngularRate.h>

Public Member Functions

 AngularRate ()
 The nullary constructor (default). More...
 
 AngularRate (const AngularRate &)
 The copy constructor. More...
 
 AngularRate (const std::string &s)
 A constructor from a string representation. More...
 
 AngularRate (const asdmIDLTypes::IDLAngularRate &idlAngularRate)
 A constructor from a CORBA/IDL representation. More...
 
 AngularRate (double value)
 A constructor from a value in double precision. More...
 
virtual ~AngularRate ()
 The destructor. More...
 
void toBin (EndianOSStream &eoss)
 Write the binary representation of this to an EndianOSStream . More...
 
AngularRateoperator= (const AngularRate &x)
 An assignment operator AngularRate = AngularRate. More...
 
AngularRateoperator= (const double d)
 An assignment operator AngularRate = double. More...
 
AngularRateoperator+= (const AngularRate &x)
 Operator increment and assign. More...
 
AngularRateoperator-= (const AngularRate &x)
 Operator decrement and assign. More...
 
AngularRateoperator*= (const double x)
 Operator multiply and assign. More...
 
AngularRateoperator/= (const double x)
 Operator divide and assign. More...
 
AngularRate operator+ (const AngularRate &x) const
 Addition operator. More...
 
AngularRate operator- (const AngularRate &x) const
 Substraction operator. More...
 
AngularRate operator* (const double x) const
 Multiplication operator. More...
 
AngularRate operator/ (const double x) const
 Division operator. More...
 
bool operator< (const AngularRate &x) const
 Comparison operator. More...
 
bool operator> (const AngularRate &x) const
 Comparison operator. More...
 
bool operator<= (const AngularRate &x) const
 Comparison operator. More...
 
bool operator>= (const AngularRate &x) const
 Comparison operator. More...
 
bool operator== (const AngularRate &x) const
 Comparision operator. More...
 
bool equals (const AngularRate &x) const
 Comparison method. More...
 
bool operator!= (const AngularRate &x) const
 Comparison operator. More...
 
bool isZero () const
 Comparison method. More...
 
AngularRate operator- () const
 Unary operator. More...
 
AngularRate 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 AngularRate. More...
 
asdmIDLTypes::IDLAngularRate toIDLAngularRate () const
 Return the IDLAngularRate representation of the AngularRate. 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 AngularRate getAngularRate (StringTokenizer &st) throw (NumberFormatException)
 Parse the next (string) token of a StringTokenizer into an angle. More...
 
static void toBin (const std::vector< AngularRate > &angle, EndianOSStream &eoss)
 Write the binary representation of a vector of AngularRate to a EndianOSStream. More...
 
static void toBin (const std::vector< std::vector< AngularRate > > &angle, EndianOSStream &eoss)
 Write the binary representation of a vector of vector of AngularRate to a EndianOSStream. More...
 
static void toBin (const std::vector< std::vector< std::vector< AngularRate > > > &angle, EndianOSStream &eoss)
 Write the binary representation of a vector of vector of vector of AngularRate to a EndianOSStream. More...
 
static AngularRate fromBin (EndianIStream &eis)
 Read the binary representation of an AngularRate from a EndianIStream and use the read value to set an AngularRate. More...
 
static std::vector< AngularRatefrom1DBin (EndianIStream &eis)
 Read the binary representation of a vector of AngularRate from an EndianIStream and use the read value to set a vector of AngularRate. More...
 
static std::vector
< std::vector< AngularRate > > 
from2DBin (EndianIStream &eis)
 Read the binary representation of a vector of vector of AngularRate from an EndianIStream and use the read value to set a vector of vector of AngularRate. More...
 
static std::vector
< std::vector< std::vector
< AngularRate > > > 
from3DBin (EndianIStream &eis)
 Read the binary representation of a vector of vector of vector of AngularRate from an EndianIStream and use the read value to set a vector of vector of vector of AngularRate. More...
 
static std::string unit ()
 Returns the abbreviated name of the unit implicitely associated to any AngularRate. More...
 

Private Attributes

double value
 

Friends

AngularRate operator* (double d, const AngularRate &x)
 Overloading of multiplication operator. More...
 
std::ostream & operator<< (std::ostream &os, const AngularRate &x)
 Overloading of << to output the value an AngularRate on an ostream. More...
 
std::istream & operator>> (std::istream &is, AngularRate &x)
 Overloading of >> to read an AngularRate from an istream. More...
 

Detailed Description

The AngularRate class implements a quantity of AngularRate in radians per second.

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 53 of file AngularRate.h.

Constructor & Destructor Documentation

asdm::AngularRate::AngularRate ( )
inline

The nullary constructor (default).

AngularRate constructors.

Definition at line 316 of file AngularRate.h.

asdm::AngularRate::AngularRate ( const AngularRate t)
inline

The copy constructor.

Definition at line 318 of file AngularRate.h.

asdm::AngularRate::AngularRate ( const std::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 324 of file AngularRate.h.

asdm::AngularRate::AngularRate ( const asdmIDLTypes::IDLAngularRate &  idlAngularRate)
inline

A constructor from a CORBA/IDL representation.

Parameters
idlAngularRatea cons ref to an IDLAngularRate.

Definition at line 321 of file AngularRate.h.

asdm::AngularRate::AngularRate ( double  value)
inline

A constructor from a value in double precision.

The value passed in argument defines the value of the AngularRate in radian.

Definition at line 326 of file AngularRate.h.

asdm::AngularRate::~AngularRate ( )
inlinevirtual

The destructor.

AngularRate destructor.

Definition at line 329 of file AngularRate.h.

Member Function Documentation

bool asdm::AngularRate::equals ( const AngularRate x) const
inline

Comparison method.

Equality.

Parameters
xa const reference to a AngularRate.

Definition at line 391 of file AngularRate.h.

References value.

static std::vector<AngularRate> asdm::AngularRate::from1DBin ( EndianIStream eis)
static

Read the binary representation of a vector of AngularRate from an EndianIStream and use the read value to set a vector of AngularRate.

Parameters
eisa reference to the EndianIStream to be read
Returns
a vector of AngularRate
static std::vector<std::vector<AngularRate> > asdm::AngularRate::from2DBin ( EndianIStream eis)
static

Read the binary representation of a vector of vector of AngularRate from an EndianIStream and use the read value to set a vector of vector of AngularRate.

Parameters
eisthe EndianIStream to be read
Returns
a vector of vector of AngularRate
static std::vector<std::vector<std::vector<AngularRate> > > asdm::AngularRate::from3DBin ( EndianIStream eis)
static

Read the binary representation of a vector of vector of vector of AngularRate from an EndianIStream and use the read value to set a vector of vector of vector of AngularRate.

Parameters
eisthe EndianIStream to be read
Returns
a vector of vector of vector of AngularRate
static AngularRate asdm::AngularRate::fromBin ( EndianIStream eis)
static

Read the binary representation of an AngularRate from a EndianIStream and use the read value to set an AngularRate.

Parameters
eisthe EndianStream to be read
Returns
an AngularRate
static double asdm::AngularRate::fromString ( const std::string &  s)
static

A static method equivalent to the constructor from a string.

Parameters
sa string?.
double asdm::AngularRate::get ( ) const
inline

Return the double precision value of the AngularRate.

Returns
double

Definition at line 421 of file AngularRate.h.

References value.

static AngularRate asdm::AngularRate::getAngularRate ( StringTokenizer st)
throw (NumberFormatException
)
static

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

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

Comparison method.

Test nullity.

Returns
a bool.
asdm::AngularRate::operator std::string ( ) const
inline

Conversion operator.

Conversion functions.

Converts into a string.

Definition at line 412 of file AngularRate.h.

References casa::vpf::toString().

bool asdm::AngularRate::operator!= ( const AngularRate x) const
inline

Comparison operator.

Not-equal.

Parameters
xa const reference to a AngularRate.

Definition at line 397 of file AngularRate.h.

References value.

AngularRate asdm::AngularRate::operator* ( const double  x) const
inline

Multiplication operator.

Parameters
xa value in double precision.

Definition at line 368 of file AngularRate.h.

References value.

AngularRate & asdm::AngularRate::operator*= ( const double  x)
inline

Operator multiply and assign.

Parameters
xa value in double precision.

Definition at line 349 of file AngularRate.h.

References value.

AngularRate asdm::AngularRate::operator+ ( const AngularRate x) const
inline

Addition operator.

arithmetic functions

Parameters
xa const reference to a AngularRate.

Definition at line 358 of file AngularRate.h.

References value.

AngularRate asdm::AngularRate::operator+ ( ) const
inline

Unary operator.

Unary plus.

Definition at line 406 of file AngularRate.h.

References value.

AngularRate & asdm::AngularRate::operator+= ( const AngularRate x)
inline

Operator increment and assign.

assignment with arithmetic operators

Parameters
xa const reference to an AngularRate.

Definition at line 341 of file AngularRate.h.

References value.

AngularRate asdm::AngularRate::operator- ( const AngularRate x) const
inline

Substraction operator.

Parameters
xa const reference to a AngularRate.

Definition at line 363 of file AngularRate.h.

References value.

AngularRate asdm::AngularRate::operator- ( ) const
inline

Unary operator.

unary - and + operators

Opposite.

Definition at line 401 of file AngularRate.h.

References value.

AngularRate & asdm::AngularRate::operator-= ( const AngularRate x)
inline

Operator decrement and assign.

Parameters
xa const reference to an AngularRate.

Definition at line 345 of file AngularRate.h.

References value.

AngularRate asdm::AngularRate::operator/ ( const double  x) const
inline

Division operator.

Parameters
da value in double precision.

Definition at line 373 of file AngularRate.h.

References value.

AngularRate & asdm::AngularRate::operator/= ( const double  x)
inline

Operator divide and assign.

Parameters
xa valye in double precision.

Definition at line 353 of file AngularRate.h.

References value.

bool asdm::AngularRate::operator< ( const AngularRate x) const
inline

Comparison operator.

comparison operators

Less-than.

Parameters
xa const reference to a AngularRate.

Definition at line 379 of file AngularRate.h.

References value.

bool asdm::AngularRate::operator<= ( const AngularRate x) const
inline

Comparison operator.

Less-than or equal.

Parameters
xa const reference to a AngularRate.

Definition at line 385 of file AngularRate.h.

References value.

AngularRate & asdm::AngularRate::operator= ( const AngularRate x)
inline

An assignment operator AngularRate = AngularRate.

assignment operator

Parameters
xa const reference to an AngularRate.

Definition at line 331 of file AngularRate.h.

References value.

AngularRate & asdm::AngularRate::operator= ( const double  d)
inline

An assignment operator AngularRate = double.

assignment operator

Parameters
da value in double precision.

Definition at line 336 of file AngularRate.h.

References value.

bool asdm::AngularRate::operator== ( const AngularRate x) const
inline

Comparision operator.

Equal-to.

Parameters
xa const reference to a AngularRate.

Definition at line 394 of file AngularRate.h.

References value.

bool asdm::AngularRate::operator> ( const AngularRate x) const
inline

Comparison operator.

Greater-than.

Parameters
xa const reference to a AngularRate.

Definition at line 382 of file AngularRate.h.

References value.

bool asdm::AngularRate::operator>= ( const AngularRate x) const
inline

Comparison operator.

Greater-than or equal.

Parameters
xa const reference to a AngularRate.

Definition at line 388 of file AngularRate.h.

References value.

void asdm::AngularRate::toBin ( EndianOSStream eoss)

Write the binary representation of this to an EndianOSStream .

Parameters
eossa reference to an EndianOSStream .
static void asdm::AngularRate::toBin ( const std::vector< AngularRate > &  angle,
EndianOSStream eoss 
)
static

Write the binary representation of a vector of AngularRate to a EndianOSStream.

Parameters
anglethe vector of AngularRate to be written
eossthe EndianOSStream to be written to
static void asdm::AngularRate::toBin ( const std::vector< std::vector< AngularRate > > &  angle,
EndianOSStream eoss 
)
static

Write the binary representation of a vector of vector of AngularRate to a EndianOSStream.

Parameters
anglethe vector of vector of AngularRate to be written
eossthe EndianOSStream to be written to
static void asdm::AngularRate::toBin ( const std::vector< std::vector< std::vector< AngularRate > > > &  angle,
EndianOSStream eoss 
)
static

Write the binary representation of a vector of vector of vector of AngularRate to a EndianOSStream.

Parameters
anglethe vector of vector of vector of AngularRate to be written
eossthe EndianOSStream to be written to
asdmIDLTypes::IDLAngularRate asdm::AngularRate::toIDLAngularRate ( ) const
inline

Return the IDLAngularRate representation of the AngularRate.

Returns
IDLAngularRate

Definition at line 425 of file AngularRate.h.

References value.

static std::string asdm::AngularRate::toString ( double  )
static

Conversion into string.

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

Returns
string
std::string asdm::AngularRate::toString ( ) const
inline

Converts into a string.

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

Definition at line 415 of file AngularRate.h.

References value.

Referenced by toStringI().

std::string asdm::AngularRate::toStringI ( ) const
inline

Idem toString.

Definition at line 418 of file AngularRate.h.

References toString(), and value.

std::string asdm::AngularRate::unit ( )
inlinestatic

Returns the abbreviated name of the unit implicitely associated to any AngularRate.

Returns
string

Definition at line 445 of file AngularRate.h.

Referenced by casa::MS2ASDM::unitASDMAngularRate().

Friends And Related Function Documentation

AngularRate operator* ( double  d,
const AngularRate x 
)
friend

Overloading of multiplication operator.

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

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

Parameters
osa reference to the ostream to be written on.
xa const reference to a AngularRate.
std::istream& operator>> ( std::istream &  is,
AngularRate x 
)
friend

Overloading of >> to read an AngularRate from an istream.

Member Data Documentation

double asdm::AngularRate::value
private

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