ADTF
ByteOrderConversion

ByteOrder Conversion utility. More...

Static Public Member Functions

static std::string toString (ByteOrder byte_order)
 convert byte_order to a string. More...
 
static ByteOrder fromString (const std::string &byte_order, const ByteOrder &default_val=ByteOrder::platform_not_supported)
 convert a string to a byte_order. More...
 

Detailed Description

ByteOrder Conversion utility.

Definition at line 165 of file dd_common_types.h.

Member Function Documentation

◆ fromString()

static ByteOrder fromString ( const std::string &  byte_order,
const ByteOrder default_val = ByteOrder::platform_not_supported 
)
static

convert a string to a byte_order.

Parameters
byte_orderthe byte_order string
default_valif not set or invalid, the default byte_order to return.
Returns
ByteOrder

◆ toString()

static std::string toString ( ByteOrder  byte_order)
static

convert byte_order to a string.

Parameters
byte_orderthe byte_order to convert
Returns
std::string

Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().