casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
asdm::ByteOrder Class Reference

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

#include <Misc.h>

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

static const ByteOrderLittle_Endian
 
static const ByteOrderBig_Endian
 
static const ByteOrderMachine_Endianity
 

Private Member Functions

 ByteOrder (const std::string &name)
 
virtual ~ByteOrder ()
 

Static Private Member Functions

static const ByteOrdermachineEndianity ()
 

Private Attributes

std::string name_
 

Detailed Description

A class to represent byte order information.

Definition at line 115 of file Misc.h.

Constructor & Destructor Documentation

asdm::ByteOrder::ByteOrder ( const std::string &  name)
private
virtual asdm::ByteOrder::~ByteOrder ( )
privatevirtual

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::machineEndianity ( )
staticprivate
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

const ByteOrder* asdm::ByteOrder::Big_Endian
static

Definition at line 118 of file Misc.h.

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

const ByteOrder* asdm::ByteOrder::Little_Endian
static

Definition at line 117 of file Misc.h.

const ByteOrder* asdm::ByteOrder::Machine_Endianity
static

Definition at line 119 of file Misc.h.

std::string asdm::ByteOrder::name_
private

Definition at line 141 of file Misc.h.


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