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

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

Friends

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


Member Function Documentation

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

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

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

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

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

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

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

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

Write the binary representation of this to a EndianOSStream.


The documentation for this class was generated from the following file:
Generated on Tue Nov 18 17:43:46 2008 for ASDM C++ Implementation by doxygen 1.3.8