B2BITS FIX Antenna C++  2.27.0
Namespaces | Classes | Enumerations | Functions | Variables
Utils Namespace Reference

FIX Antenna Utils framework. More...

Namespaces

 Log
 Logging system namespace.
 

Classes

class  AutoPtr
 std::auto_ptr analogue with ability to delete object by object's method. More...
 
class  AutoPtr2
 std::auto_ptr analogue with ability to delete object by object's method. More...
 
struct  ConstMethodResolver
 Returns pointer to the mutable method of the class. More...
 
struct  ConstMethodResolver< const T >
 Returns pointer to the const method of the class. More...
 
class  CTGuard
 
class  Emptily
 Represents entity with two states - initialized and not initialized. More...
 
class  EmptyValue
 Class for empty value. More...
 
class  Exception
 Generic application exception. More...
 
class  Guard
 This template class employs a C++ idiom (described by Bjarne Stroustrup) that uses the constructor to acquire a resource automatically when an object of the class is created and uses the destructor to release the resource automatically when it goes out of scope. More...
 
class  InvalidParameterException
 Invalid parameter Exception. More...
 
class  MethodPtr0
 
class  MethodPtr1
 
class  MethodPtr2
 
class  MethodPtr3
 
class  NullableValue
 Represents entity with three states - undefined, empty and assigned. More...
 
class  ReferenceCounter
 A generic reference counter. More...
 
class  ReferenceCounterSharedPtr
 
class  StringUtils
 Encapsulates generic std::string processing methods. More...
 
class  StringUtils< char >
 Encapsulates ASCII std::string processing methods. More...
 
class  StringUtils< wchar_t >
 Encapsulates Unicode std::string processing methods. More...
 
class  UndefinedValue
 Class for undefined value. More...
 
class  Unlocker
 Used to temporary unlock mutex Unlocker<Mutex> unlocker (lock_); // guard constructor releases m_lock. More...
 

Enumerations

enum  ValueState { vsUndefined, vsEmpty, vsAssigned }
 Enumerates state of the NullableValue. More...
 

Functions

System::i64 V12_API atoi64 (const char *str) throw ()
 Converts a string to a 64-bit integer. More...
 
template<typename return_t , typename T , typename T2 >
MethodPtr0< return_t > bind (return_t(*func)(T *), T2 *pthis) throw ()
 
template<typename return_t , typename T , typename arg_t , typename T2 >
MethodPtr1< return_t, arg_t > bind (return_t(*func)(T *, arg_t), T2 *pthis) throw ()
 
template<typename return_t , typename T , typename T2 , typename arg1_t , typename arg2_t >
MethodPtr2< return_t, arg1_t, arg2_t > bind (return_t(*func)(T *, arg1_t, arg2_t), T2 *pthis) throw ()
 
template<typename return_t , typename T , typename T2 , typename arg1_t , typename arg2_t , typename arg3_t >
MethodPtr3< return_t, arg1_t, arg2_t, arg3_t > bind (return_t(*func)(T *, arg1_t, arg2_t, arg3_t), T2 *pthis) throw ()
 
template<typename T >
void deleteObject (T const *obj)
 Destroys object using operator delete. More...
 
template<typename T >
void destroyObject (T const *obj)
 Destroys object using release method. More...
 
template<class Elem , class Traits , typename T >
std::basic_ostream< Elem, Traits > & operator<< (std::basic_ostream< Elem, Traits > &s, const NullableValue< T > &rv)
 
template<typename T >
std::ostream & operator<< (std::ostream &s, const Emptily< T > &rv)
 
template<typename T >
void releaseNonConstObject (T const *obj)
 Destroys object using release method. More...
 
template<typename T >
void releaseObject (T const *obj)
 Destroys object using release method. More...
 
int V12_API stricmp (const char *string1, const char *string2) throw ()
 Performs a lowercase comparison of strings. More...
 
int V12_API strnicmp (const char *string1, const char *string2, std::size_t count) throw ()
 This function is called to make a case-insensitive comparison of two ANSI strings. More...
 
int V12_API strtoi (const char *str, std::size_t size) throw ()
 Converts a string to a 16-bit integer. More...
 
System::i16 V12_API strtoi16 (const char *str, std::size_t size) throw ()
 Converts a string to a 16-bit integer. More...
 
System::i32 V12_API strtoi32 (const char *str, std::size_t size) throw ()
 Converts a string to a 32-bit integer. More...
 
System::i64 V12_API strtoi64 (const char *str, std::size_t size) throw ()
 Converts a string to a 64-bit integer. More...
 
unsigned int V12_API strtou (const char *str, std::size_t size) throw ()
 Converts a string to a 16-bit integer. More...
 
System::u16 V12_API strtou16 (const char *str, std::size_t size) throw ()
 Converts a string to a 16-bit unsigned integer. More...
 
System::u32 V12_API strtou32 (const char *str, std::size_t size) throw ()
 Converts a string to a 32-bit unsigned integer. More...
 
System::u64 V12_API strtou64 (const char *str, std::size_t size) throw ()
 Converts a string to a 64-bit unsigned integer. More...
 
template<typename T >
void swap (T &a, T &b)
 
int V12_API wstrnicmp (const wchar_t *string1, const wchar_t *string2, std::size_t count) throw ()
 Compare characters of two strings without regard to case. More...
 
int V12_API wstrtoi (const wchar_t *string) throw ()
 Converts a wide-character std::string to an integer. More...
 
int V12_API wstrtoi (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 16-bit integer. More...
 
System::i16 V12_API wstrtoi16 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 16-bit integer. More...
 
System::i32 V12_API wstrtoi32 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 32-bit integer. More...
 
System::i64 V12_API wstrtoi64 (const wchar_t *str) throw ()
 Converts a string to a 64-bit integer. More...
 
System::i64 V12_API wstrtoi64 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 64-bit integer. More...
 
unsigned int V12_API wstrtou (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 16-bit unsigned integer. More...
 
System::u16 V12_API wstrtou16 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 16-bit unsigned integer. More...
 
System::u32 V12_API wstrtou32 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 32-bit unsigned integer. More...
 
System::u64 V12_API wstrtou64 (const wchar_t *str, std::size_t size) throw ()
 Converts a string to a 64-bit unsigned integer. More...
 

Variables

EmptyValue empty
 Represents empty value. More...
 
UndefinedValue undefined
 Represents undefined value. More...
 

Detailed Description

FIX Antenna Utils framework.

Utility namespace.

Useful classes and methods.

Enumeration Type Documentation

◆ ValueState

Enumerates state of the NullableValue.

Enumerator
vsUndefined 
vsEmpty 
vsAssigned 

Function Documentation

◆ atoi64()

System::i64 V12_API Utils::atoi64 ( const char *  str)
throw (
)

Converts a string to a 64-bit integer.

Referenced by Utils::StringUtils< char >::toInt64().

◆ bind() [1/4]

template<typename return_t , typename T , typename T2 >
MethodPtr0<return_t> Utils::bind ( return_t(*)(T *)  func,
T2 *  pthis 
)
throw (
)

◆ bind() [2/4]

template<typename return_t , typename T , typename arg_t , typename T2 >
MethodPtr1<return_t, arg_t> Utils::bind ( return_t(*)(T *, arg_t)  func,
T2 *  pthis 
)
throw (
)

◆ bind() [3/4]

template<typename return_t , typename T , typename T2 , typename arg1_t , typename arg2_t >
MethodPtr2<return_t, arg1_t, arg2_t> Utils::bind ( return_t(*)(T *, arg1_t, arg2_t)  func,
T2 *  pthis 
)
throw (
)

◆ bind() [4/4]

template<typename return_t , typename T , typename T2 , typename arg1_t , typename arg2_t , typename arg3_t >
MethodPtr3<return_t, arg1_t, arg2_t, arg3_t> Utils::bind ( return_t(*)(T *, arg1_t, arg2_t, arg3_t)  func,
T2 *  pthis 
)
throw (
)

◆ deleteObject()

template<typename T >
void Utils::deleteObject ( T const *  obj)
inline

Destroys object using operator delete.

◆ destroyObject()

template<typename T >
void Utils::destroyObject ( T const *  obj)
inline

Destroys object using release method.

◆ operator<<() [1/2]

template<class Elem , class Traits , typename T >
std::basic_ostream<Elem, Traits>& Utils::operator<< ( std::basic_ostream< Elem, Traits > &  s,
const NullableValue< T > &  rv 
)
inline

◆ operator<<() [2/2]

template<typename T >
std::ostream& Utils::operator<< ( std::ostream &  s,
const Emptily< T > &  rv 
)
inline

◆ releaseNonConstObject()

template<typename T >
void Utils::releaseNonConstObject ( T const *  obj)
inline

Destroys object using release method.

◆ releaseObject()

template<typename T >
void Utils::releaseObject ( T const *  obj)
inline

Destroys object using release method.

◆ stricmp()

int V12_API Utils::stricmp ( const char *  string1,
const char *  string2 
)
throw (
)

Performs a lowercase comparison of strings.

◆ strnicmp()

int V12_API Utils::strnicmp ( const char *  string1,
const char *  string2,
std::size_t  count 
)
throw (
)

This function is called to make a case-insensitive comparison of two ANSI strings.

Referenced by Utils::StringUtils< char >::strnicmp().

◆ strtoi()

int V12_API Utils::strtoi ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit integer.

Referenced by Utils::StringUtils< char >::toInt().

◆ strtoi16()

System::i16 V12_API Utils::strtoi16 ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit integer.

Referenced by Utils::StringUtils< char >::toInt16().

◆ strtoi32()

System::i32 V12_API Utils::strtoi32 ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 32-bit integer.

Referenced by Utils::StringUtils< char >::toInt32().

◆ strtoi64()

System::i64 V12_API Utils::strtoi64 ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 64-bit integer.

Referenced by Utils::StringUtils< char >::toInt64().

◆ strtou()

unsigned int V12_API Utils::strtou ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit integer.

Referenced by Utils::StringUtils< char >::toUInt().

◆ strtou16()

System::u16 V12_API Utils::strtou16 ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit unsigned integer.

Referenced by Utils::StringUtils< char >::toUInt16().

◆ strtou32()

System::u32 V12_API Utils::strtou32 ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 32-bit unsigned integer.

Referenced by Utils::StringUtils< char >::toUInt32().

◆ strtou64()

System::u64 V12_API Utils::strtou64 ( const char *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 64-bit unsigned integer.

Referenced by Utils::StringUtils< char >::toUInt64().

◆ swap()

template<typename T >
void Utils::swap ( T &  a,
T &  b 
)

◆ wstrnicmp()

int V12_API Utils::wstrnicmp ( const wchar_t *  string1,
const wchar_t *  string2,
std::size_t  count 
)
throw (
)

Compare characters of two strings without regard to case.

Referenced by Utils::StringUtils< wchar_t >::strnicmp().

◆ wstrtoi() [1/2]

int V12_API Utils::wstrtoi ( const wchar_t *  string)
throw (
)

Converts a wide-character std::string to an integer.

Referenced by Utils::StringUtils< wchar_t >::toInt(), and Utils::StringUtils< wchar_t >::toInt32().

◆ wstrtoi() [2/2]

int V12_API Utils::wstrtoi ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit integer.

◆ wstrtoi16()

System::i16 V12_API Utils::wstrtoi16 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit integer.

Referenced by Utils::StringUtils< wchar_t >::toInt16().

◆ wstrtoi32()

System::i32 V12_API Utils::wstrtoi32 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 32-bit integer.

Referenced by Utils::StringUtils< wchar_t >::toInt32().

◆ wstrtoi64() [1/2]

System::i64 V12_API Utils::wstrtoi64 ( const wchar_t *  str)
throw (
)

Converts a string to a 64-bit integer.

Referenced by Utils::StringUtils< wchar_t >::toInt64().

◆ wstrtoi64() [2/2]

System::i64 V12_API Utils::wstrtoi64 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 64-bit integer.

◆ wstrtou()

unsigned int V12_API Utils::wstrtou ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit unsigned integer.

Referenced by Utils::StringUtils< wchar_t >::toUInt().

◆ wstrtou16()

System::u16 V12_API Utils::wstrtou16 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 16-bit unsigned integer.

Referenced by Utils::StringUtils< wchar_t >::toUInt16().

◆ wstrtou32()

System::u32 V12_API Utils::wstrtou32 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 32-bit unsigned integer.

Referenced by Utils::StringUtils< wchar_t >::toUInt32().

◆ wstrtou64()

System::u64 V12_API Utils::wstrtou64 ( const wchar_t *  str,
std::size_t  size 
)
throw (
)

Converts a string to a 64-bit unsigned integer.

Referenced by Utils::StringUtils< wchar_t >::toUInt64().

Variable Documentation

◆ empty

EmptyValue Utils::empty

Represents empty value.

◆ undefined

UndefinedValue Utils::undefined

Represents undefined value.