Dev Essential
Loading...
Searching...
No Matches
ddl::dd::ByteOrderConversion Class Reference

ByteOrder Conversion utility. More...

#include <dd_common_types.h>

Static Public Member Functions

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

Detailed Description

ByteOrder Conversion utility.

Member Function Documentation

◆ fromString()

static ByteOrder ddl::dd::ByteOrderConversion::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 ddl::dd::ByteOrderConversion::toString ( ByteOrder byte_order)
static

convert byte_order to a string.

Parameters
byte_orderthe byte_order to convert
Returns
std::string

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