AnCH Framework  0.1
Another C++ Hack Framework
Namespaces | Classes | Functions
anch Namespace Reference

AnCH framework base namespace. More...

Namespaces

 crypto
 Cryptography namespace.
 
 date
 Date namespace.
 
 device
 Device management namespace.
 
 events
 Events management namespace.
 
 file
 Files and directories management namespace.
 
 logger
 Logger namespace.
 
 network
 Network namespace.
 
 resource
 Resources namespace.
 
 sql
 SQL namespace.
 

Classes

struct  LessPtrCompare
 Less comparator based on object address. More...
 
class  ResourcePool
 Generic resource pool utility class. More...
 
class  Singleton
 Meyers' singleton implemtation. More...
 
class  ThreadPool
 Thread pool utility class. More...
 
class  TimeoutException
 Timeout exception. More...
 
class  Uuid
 UUID generator and parser. More...
 

Functions

template<typename N >
convert (const std::string &str) throw (std::bad_cast)
 
template<typename T >
void byteSwap (T src, uint8_t *dest)
 
bool isBigEndian ()
 
bool isLittleEndian ()
 

Detailed Description

AnCH framework base namespace.

Contains utility classes from AnCH utils library.

Function Documentation

template<typename T >
void anch::byteSwap ( src,
uint8_t *  dest 
)
inline

Switch data endianness.

Parameters
srcthe object to convert
destthe converted bytes
Since
0.1
Author
Vincent Lachenal
template<typename N >
N anch::convert ( const std::string &  str)
throw (std::bad_cast
)

Performs strict conversion from std::string to number

Parameters
strthe string to convert
Returns
the number
Exceptions
std::bad_castconversion error
bool anch::isBigEndian ( )
inline

Check if system is in big endian bytes order.

Returns
true if system is big endian, false otherwise
Since
0.1
Author
Vincent Lachenal
bool anch::isLittleEndian ( )
inline

Check if system is in little endian bytes order.

Returns
true if system is little endian, false otherwise
Since
0.1
Author
Vincent Lachenal