asdm::Interval Class Reference

#include <Interval.h>

Inherited by asdm::ArrayTime, and asdm::UTCCorrection.

List of all members.


Detailed Description

The Interval class implements an interval of time in units of nanoseconds.

Version:
1.00 Jan. 7, 2005
Author:
Allen Farris


Public Member Functions

 Interval (const Interval &)
 Interval (const string &s)
 Interval (const IDLInterval &)
 Interval (long long value)
Intervaloperator= (const Interval &)
Intervaloperator= (const long long)
Intervaloperator+= (const Interval &)
Intervaloperator-= (const Interval &)
Intervaloperator *= (const long long)
Intervaloperator/= (const long long)
Interval operator+ (const Interval &) const
Interval operator- (const Interval &) const
Interval operator * (const long long) const
Interval operator/ (const long long) const
bool operator< (const Interval &) const
bool operator> (const Interval &) const
bool operator<= (const Interval &) const
bool operator>= (const Interval &) const
bool operator== (const Interval &) const
bool equals (const Interval &) const
bool operator!= (const Interval &) const
bool isZero () const
Interval operator- () const
Interval operator+ () const
string toString () const
string toStringI () const
void toBin (EndianOSStream &eoss)
 operator string () const
long long get () const
IDLInterval toIDLInterval () const

Static Public Member Functions

static long long fromString (const string &)
static string toString (long long)
static Interval getInterval (StringTokenizer &t) throw (NumberFormatException)
static void toBin (vector< Interval > interval, EndianOSStream &eoss)
static void toBin (vector< vector< Interval > > interval, EndianOSStream &eoss)
static Interval fromBin (EndianISStream &eiss)
static vector< Intervalfrom1DBin (EndianISStream &eiss)
static vector< vector< Interval > > from2DBin (EndianISStream &eiss)
static string unit ()

Friends

Interval operator * (long long, const Interval &)
ostream & operator<< (ostream &, const Interval &)
istream & operator>> (istream &, Interval &)


Member Function Documentation

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

Write the binary representation of this into an EndianOSStream

Parameters:
eoss 

Reimplemented in asdm::ArrayTime.

static void asdm::Interval::toBin ( vector< Interval interval,
EndianOSStream &  eoss 
) [static]

Write the binary representation of a vector of Interval into a EndianOSStream.

Parameters:
interval 
eoss 

static void asdm::Interval::toBin ( vector< vector< Interval > >  interval,
EndianOSStream &  eoss 
) [static]

Write the binary representation of a vector of vector of Interval into a EndianOSStream.

Parameters:
interval 
eoss 

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

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

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

Reimplemented in asdm::ArrayTime.

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

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

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

Reimplemented in asdm::ArrayTime.

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

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

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

Reimplemented in asdm::ArrayTime.


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