asdm::Length Class Reference

#include <Length.h>

List of all members.


Detailed Description

The Length class implements a quantity of length in meters.

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


Public Member Functions

void toBin (EndianOSStream &eoss)
 Length (const Length &)
 Length (const string &s)
 Length (const IDLLength &)
 Length (double value)
Lengthoperator= (const Length &)
Lengthoperator= (const double)
Lengthoperator+= (const Length &)
Lengthoperator-= (const Length &)
Lengthoperator *= (const double)
Lengthoperator/= (const double)
Length operator+ (const Length &) const
Length operator- (const Length &) const
Length operator * (const double) const
Length operator/ (const double) const
bool operator< (const Length &) const
bool operator> (const Length &) const
bool operator<= (const Length &) const
bool operator>= (const Length &) const
bool operator== (const Length &) const
bool equals (const Length &) const
bool operator!= (const Length &) const
bool isZero () const
Length operator- () const
Length operator+ () const
string toString () const
string toStringI () const
 operator string () const
double get () const
IDLLength toIDLLength () const

Static Public Member Functions

static double fromString (const string &)
static string toString (double)
static Length getLength (StringTokenizer &t) throw (NumberFormatException)
static void toBin (const vector< Length > &len, EndianOSStream &eoss)
static void toBin (const vector< vector< Length > > &len, EndianOSStream &eoss)
static void toBin (const vector< vector< vector< Length > > > &len, EndianOSStream &eoss)
static Length fromBin (EndianISStream &eiss)
static vector< Lengthfrom1DBin (EndianISStream &eiss)
static vector< vector< Length > > from2DBin (EndianISStream &eiss)
static vector< vector< vector<
Length > > > 
from3DBin (EndianISStream &eiss)
static string unit ()

Friends

Length operator * (double, const Length &)
ostream & operator<< (ostream &, const Length &)
istream & operator>> (istream &, Length &)


Member Function Documentation

void asdm::Length::toBin ( EndianOSStream &  eoss  ) 

Write the binary representation of this to a EndianOSStream.

static void asdm::Length::toBin ( const vector< Length > &  len,
EndianOSStream &  eoss 
) [static]

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

Parameters:
len the vector of Length to be written
eoss the EndianOSStream to be written to

static void asdm::Length::toBin ( const vector< vector< Length > > &  len,
EndianOSStream &  eoss 
) [static]

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

Parameters:
len 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 > > > &  len,
EndianOSStream &  eoss 
) [static]

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

Parameters:
len the vector of vector of vector of Length to be written
eoss the EndianOSStream to be written to

static Length asdm::Length::fromBin ( EndianISStream &  eiss  )  [static]

Read the binary representation of an Length from a EndianISStream and use the read value to set an Length.

Parameters:
eiss the EndianStream to be read
Returns:
an Length

static vector<Length> asdm::Length::from1DBin ( EndianISStream &  eiss  )  [static]

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

Parameters:
dis the EndianISStream to be read
Returns:
a vector of Length

static vector<vector<Length> > asdm::Length::from2DBin ( EndianISStream &  eiss  )  [static]

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

Parameters:
eiis the EndianISStream to be read
Returns:
a vector of vector of Length

static vector<vector<vector<Length> > > asdm::Length::from3DBin ( EndianISStream &  eiss  )  [static]

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

Parameters:
eiss the EndianISStream to be read
Returns:
a vector of vector of vector of Length


The documentation for this class was generated from the following file:
Generated on Thu Nov 29 16:46:50 2007 for ASDM C++ Implementation by  doxygen 1.5.1