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.

Static Public Member Functions

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 ()

Static Private Member Functions

static const ByteOrdermachineEndianity ()

Private Attributes

std::string name_
int endianity_

Detailed Description

A class to represent byte order information.

Definition at line 107 of file Misc.h.


Constructor & Destructor Documentation

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:
s the 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::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",

Member Data Documentation

Definition at line 110 of file Misc.h.

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

Definition at line 134 of file Misc.h.

Definition at line 109 of file Misc.h.

Definition at line 111 of file Misc.h.

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

Definition at line 133 of file Misc.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1