asdm::Angle Class Reference

#include <Angle.h>

List of all members.


Detailed Description

The Angle class implements a quantity of angle in radians.

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 72 of file Angle.h.

Public Member Functions

 Angle ()
 Angle constructors.
 Angle (const Angle &)
 Angle (const string &s)
 Angle (const IDLAngle &)
 Angle (double value)
virtual ~Angle ()
 Angle destructor.
void toBin (EndianOSStream &eoss)
 Write the binary representation of this to an EndianOSStream.
Angleoperator= (const Angle &)
 assignment operator
Angleoperator= (const double)
 assignment operator
Angleoperator+= (const Angle &)
 assignment with arithmetic operators
Angleoperator-= (const Angle &)
Angleoperator *= (const double)
Angleoperator/= (const double)
Angle operator+ (const Angle &) const
 arithmetic functions
Angle operator- (const Angle &) const
Angle operator * (const double) const
Angle operator/ (const double) const
bool operator< (const Angle &) const
 comparison operators
bool operator> (const Angle &) const
bool operator<= (const Angle &) const
bool operator>= (const Angle &) const
bool operator== (const Angle &) const
bool equals (const Angle &) const
bool operator!= (const Angle &) const
bool isZero () const
Angle operator- () const
 unary - and + operators
Angle operator+ () const
string toString () const
string toStringI () const
 operator string () const
 Conversion functions.
double get () const
IDLAngle toIDLAngle () const

Static Public Member Functions

static double fromString (const string &)
static string toString (double)
static Angle getAngle (StringTokenizer &t) throw (NumberFormatException)
static void toBin (const vector< Angle > &angle, EndianOSStream &eoss)
 Write the binary representation of a vector of Angle to a EndianOSStream.
static void toBin (const vector< vector< Angle > > &angle, EndianOSStream &eoss)
 Write the binary representation of a vector of vector of Angle to a EndianOSStream.
static void toBin (const vector< vector< vector< Angle > > > &angle, EndianOSStream &eoss)
 Write the binary representation of a vector of vector of vector of Angle to a EndianOSStream.
static Angle fromBin (EndianISStream &eiss)
 Read the binary representation of an Angle from a EndianISStream and use the read value to set an Angle.
static vector< Anglefrom1DBin (EndianISStream &eiss)
 Read the binary representation of a vector of Angle from an EndianISStream and use the read value to set a vector of Angle.
static vector< vector< Angle > > from2DBin (EndianISStream &eiss)
 Read the binary representation of a vector of vector of Angle from an EndianISStream and use the read value to set a vector of vector of Angle.
static vector< vector< vector<
Angle > > > 
from3DBin (EndianISStream &eiss)
 Read the binary representation of a vector of vector of vector of Angle from an EndianISStream and use the read value to set a vector of vector of vector of Angle.
static string unit ()

Private Attributes

double value

Friends

Angle operator * (double, const Angle &)
 Friend functions.
ostream & operator<< (ostream &, const Angle &)
istream & operator>> (istream &, Angle &)


Constructor & Destructor Documentation

asdm::Angle::Angle (  )  [inline]

Angle constructors.

Definition at line 190 of file Angle.h.

asdm::Angle::Angle ( const Angle  )  [inline]

Definition at line 193 of file Angle.h.

asdm::Angle::Angle ( const string &  s  )  [inline]

Definition at line 201 of file Angle.h.

asdm::Angle::Angle ( const IDLAngle &   )  [inline]

Definition at line 197 of file Angle.h.

asdm::Angle::Angle ( double  value  )  [inline]

Definition at line 204 of file Angle.h.

asdm::Angle::~Angle (  )  [inline, virtual]

Angle destructor.

Definition at line 208 of file Angle.h.


Member Function Documentation

static double asdm::Angle::fromString ( const string &   )  [static]

static string asdm::Angle::toString ( double   )  [static]

static Angle asdm::Angle::getAngle ( StringTokenizer t  )  throw (NumberFormatException) [static]

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

Write the binary representation of this to an EndianOSStream.

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

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

Parameters:
angle the vector of Angle to be written
eoss the EndianOSStream to be written to

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

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

Parameters:
angle the vector of vector of Angle to be written
eoss the EndianOSStream to be written to

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

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

Parameters:
angle the vector of vector of vector of Angle to be written
eoss the EndianOSStream to be written to

static Angle asdm::Angle::fromBin ( EndianISStream eiss  )  [static]

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

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

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

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

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

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

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

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

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

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

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

Angle & asdm::Angle::operator= ( const Angle  )  [inline]

assignment operator

Definition at line 211 of file Angle.h.

References value.

Angle & asdm::Angle::operator= ( const   double  )  [inline]

assignment operator

Definition at line 217 of file Angle.h.

References value.

Angle & asdm::Angle::operator+= ( const Angle  )  [inline]

assignment with arithmetic operators

Definition at line 223 of file Angle.h.

References value.

Angle & asdm::Angle::operator-= ( const Angle  )  [inline]

Definition at line 228 of file Angle.h.

References value.

Angle & asdm::Angle::operator *= ( const   double  )  [inline]

Definition at line 233 of file Angle.h.

References value.

Angle & asdm::Angle::operator/= ( const   double  )  [inline]

Definition at line 238 of file Angle.h.

References value.

Angle asdm::Angle::operator+ ( const Angle  )  const [inline]

arithmetic functions

Definition at line 244 of file Angle.h.

References value.

Angle asdm::Angle::operator- ( const Angle  )  const [inline]

Definition at line 250 of file Angle.h.

References value.

Angle asdm::Angle::operator * ( const   double  )  const [inline]

Definition at line 255 of file Angle.h.

References value.

Angle asdm::Angle::operator/ ( const   double  )  const [inline]

Definition at line 261 of file Angle.h.

References value.

bool asdm::Angle::operator< ( const Angle  )  const [inline]

comparison operators

Definition at line 268 of file Angle.h.

References value.

bool asdm::Angle::operator> ( const Angle  )  const [inline]

Definition at line 272 of file Angle.h.

References value.

bool asdm::Angle::operator<= ( const Angle  )  const [inline]

Definition at line 276 of file Angle.h.

References value.

bool asdm::Angle::operator>= ( const Angle  )  const [inline]

Definition at line 280 of file Angle.h.

References value.

bool asdm::Angle::operator== ( const Angle  )  const [inline]

Definition at line 289 of file Angle.h.

References value.

bool asdm::Angle::equals ( const Angle  )  const [inline]

Definition at line 284 of file Angle.h.

References value.

bool asdm::Angle::operator!= ( const Angle  )  const [inline]

Definition at line 293 of file Angle.h.

References value.

bool asdm::Angle::isZero (  )  const

Angle asdm::Angle::operator- (  )  const [inline]

unary - and + operators

Definition at line 298 of file Angle.h.

References value.

Angle asdm::Angle::operator+ (  )  const [inline]

Definition at line 304 of file Angle.h.

References value.

string asdm::Angle::toString (  )  const [inline]

Definition at line 315 of file Angle.h.

References value.

Referenced by operator string(), and toStringI().

string asdm::Angle::toStringI (  )  const [inline]

Definition at line 319 of file Angle.h.

References toString(), and value.

asdm::Angle::operator string (  )  const [inline]

Conversion functions.

Definition at line 311 of file Angle.h.

References toString().

double asdm::Angle::get (  )  const [inline]

Definition at line 323 of file Angle.h.

References value.

IDLAngle asdm::Angle::toIDLAngle (  )  const [inline]

Definition at line 328 of file Angle.h.

References value.

string asdm::Angle::unit (  )  [inline, static]

Definition at line 353 of file Angle.h.


Friends And Related Function Documentation

Angle operator * ( double  ,
const Angle  
) [friend]

Friend functions.

ostream& operator<< ( ostream &  ,
const Angle  
) [friend]

istream& operator>> ( istream &  ,
Angle  
) [friend]


Member Data Documentation

double asdm::Angle::value [private]

Definition at line 185 of file Angle.h.

Referenced by equals(), get(), asdm::operator *(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), asdm::operator<<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), asdm::operator>>(), toIDLAngle(), toString(), and toStringI().


The documentation for this class was generated from the following file:
Generated on Thu Aug 27 21:23:04 2009 for NRAOCASA by  doxygen 1.5.1