casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
asdm::ByteOrder Class Reference

A class to represent byte order information. More...

#include <Misc.h>

List of all members.

Public Member Functions

std::string toString () const
 Returns a string representation of this.
std::string toString () const
 Returns a string representation of this.

Static Public Member Functions

static const ByteOrderfromString (const std::string &s)
 Convert a string to a const ByteOrder*.
static const ByteOrderfromString (const std::string &s)
 Convert a string to a const ByteOrder*.

Static Public Attributes

static const ByteOrderLittle_Endian
static const ByteOrderBig_Endian
static const ByteOrderMachine_Endianity

Private Member Functions

 ByteOrder (const std::string &name, int endianity)
virtual ~ByteOrder ()
 ByteOrder (const std::string &name, int endianity)
virtual ~ByteOrder ()

Static Private Member Functions

static const ByteOrdermachineEndianity ()
static const ByteOrdermachineEndianity ()

Private Attributes

std::string name_
int endianity_

Detailed Description

A class to represent byte order information.

Definition at line 106 of file Misc.h.


Constructor & Destructor Documentation

asdm::ByteOrder::ByteOrder ( const std::string &  name,
int  endianity 
) [private]
virtual asdm::ByteOrder::~ByteOrder ( ) [private, virtual]
asdm::ByteOrder::ByteOrder ( const std::string &  name,
int  endianity 
) [private]
virtual asdm::ByteOrder::~ByteOrder ( ) [private, virtual]

Member Function Documentation

static const ByteOrder* asdm::ByteOrder::fromString ( const std::string &  s) [static]

Convert a string to a const ByteOrder*.

Parameters:
sthe input string.
Returns:
a const pointer to a ByteOrder for which the toString() method returns a string == to the input string, or 0 if no such instance of ByteOrder exists.

Referenced by asdm::TableStreamReader< T, R >::open().

static const ByteOrder* asdm::ByteOrder::fromString ( const std::string &  s) [static]

Convert a string to a const ByteOrder*.

Parameters:
sthe input string.
Returns:
a const pointer to a ByteOrder for which the toString() method returns a string == to the input string, or 0 if no such instance of ByteOrder exists.
static const ByteOrder* asdm::ByteOrder::machineEndianity ( ) [static, private]
static const ByteOrder* asdm::ByteOrder::machineEndianity ( ) [static, private]
std::string asdm::ByteOrder::toString ( ) const

Returns a string representation of this.

  • Little_Endian is returned as "Little_Endian",
  • Big_Endian is returned as "Big_Endian",
std::string asdm::ByteOrder::toString ( ) const

Returns a string representation of this.

  • Little_Endian is returned as "Little_Endian",
  • Big_Endian is returned as "Big_Endian",

Member Data Documentation

static const ByteOrder * asdm::ByteOrder::Big_Endian [static]

Definition at line 109 of file Misc.h.

Referenced by asdm::TableStreamReader< T, R >::open().

Definition at line 133 of file Misc.h.

static const ByteOrder * asdm::ByteOrder::Little_Endian [static]

Definition at line 108 of file Misc.h.

Definition at line 110 of file Misc.h.

std::string asdm::ByteOrder::name_ [private]

Definition at line 132 of file Misc.h.


The documentation for this class was generated from the following files: