asdm::Speed Class Reference

#include <Speed.h>

List of all members.


Detailed Description

The Speed class implements a quantity of speed in meters per second.

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)
 Speed (const Speed &)
 Speed (const string &s)
 Speed (const IDLSpeed &)
 Speed (double value)
Speedoperator= (const Speed &)
Speedoperator= (const double)
Speedoperator+= (const Speed &)
Speedoperator-= (const Speed &)
Speedoperator *= (const double)
Speedoperator/= (const double)
Speed operator+ (const Speed &) const
Speed operator- (const Speed &) const
Speed operator * (const double) const
Speed operator/ (const double) const
bool operator< (const Speed &) const
bool operator> (const Speed &) const
bool operator<= (const Speed &) const
bool operator>= (const Speed &) const
bool operator== (const Speed &) const
bool equals (const Speed &) const
bool operator!= (const Speed &) const
bool isZero () const
Speed operator- () const
Speed operator+ () const
string toString () const
string toStringI () const
 operator string () const
double get () const
IDLSpeed toIDLSpeed () const

Static Public Member Functions

static double fromString (const string &)
static string toString (double)
static Speed getSpeed (StringTokenizer &t) throw (NumberFormatException)
static void toBin (const vector< Speed > &speed, EndianOSStream &eoss)
static void toBin (const vector< vector< Speed > > &speed, EndianOSStream &eoss)
static void toBin (const vector< vector< vector< Speed > > > &speed, EndianOSStream &eoss)
static Speed fromBin (EndianISStream &eiss)
static vector< Speedfrom1DBin (EndianISStream &eiss)
static vector< vector< Speed > > from2DBin (EndianISStream &eiss)
static vector< vector< vector<
Speed > > > 
from3DBin (EndianISStream &eiss)
static string unit ()

Friends

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


Member Function Documentation

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

Write the binary representation of this to a EndianOSStream.

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

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

Parameters:
speed the vector of Speed to be written
eoss the EndianOSStream to be written to

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

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

Parameters:
speed the vector of vector of Speed to be written
eoss the EndianOSStream to be written to

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

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

Parameters:
speed the vector of vector of vector of Speed to be written
eoss the EndianOSStream to be written to

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

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

Parameters:
eiss the EndianISStream to be read
Returns:
an Speed

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

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

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

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

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

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

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

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

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


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