ADTF  v2.14.3
adtf_util Namespace Reference

The adtf_util defines the namespace for all functionality that is provided by the definitions and the default implementations within the library adtfutilXXX.a/ adtfutilXXX.lib. More...

Classes

struct  a_utils_enable_if
 template for SFINAE selection of the right constructor More...
 
struct  a_utils_enable_if< true, T >
 
struct  a_utils_size_of_helper
 template for handling sizeof(void) in SFINAE below (required for Visual Studio) More...
 
struct  a_utils_size_of_helper< tVoid >
 
class  cAbstractBitArray
 Bitfield manipulation. More...
 
class  cAsyncMemoryBlock
 Thread safe smart pointer for raw memory blocks. More...
 
class  cAtomicCounter
 This helper class can be used as an atomic integer counter variable. More...
 
class  cBase64
 Class for encode and decode with base64. More...
 
class  cBitArrayIntel
 Bitfield manipulation. More...
 
class  cBitArrayMotorola
 Bitfield manipulation. More...
 
class  cCommandLine
 Command line processing. More...
 
class  cConsoleLogParser
 This class provides the functionality to parse a console log message. More...
 
class  cCPUUsage
 This helper classes can be used to determine the current CPU usage. More...
 
class  cCriticalSection
 Critical section class. More...
 
class  cCyclicThread
 Cyclic thread that will call its thread function periodically. More...
 
class  cDatagramSocket
 Datagram socket class. More...
 
class  cDate
 Date class. More...
 
class  cDateTime
 Date and time class. More...
 
class  cDOM
 cDOM implements a XML parser which can be used to read in XML files and perform simple (!) queries. More...
 
class  cDOMElement
 representation for an element of the cDom More...
 
class  cDynamicLinkage
 System or platform specific functions for loading shared libraries. More...
 
class  cEvent
 Event class. More...
 
class  cExceptionHandler
 The cExceptionHandler class provides static methods for registration and unregistration of a exception handler for unhandled exceptions. More...
 
class  cFile
 File class. More...
 
class  cFileAttributes
 File attribute class. More...
 
class  cFileCompression
 Class for compressing and extracting files. More...
 
class  cFilename
 File name class. More...
 
class  cFileRingBuffer
 File-based ring buffer. More...
 
class  cFileSystem
 File system class. More...
 
class  cFreeList
 Free list implementation that is used by the lock-free containers. More...
 
class  cGUID
 The cGUID class provides static methods for generation of GUIDs. More...
 
class  cHashMap
 A Generic Template Hash Map Class. More...
 
class  cHighResTimer
 High resolution timer. More...
 
class  cHighResTimeSpan
 Class that measures timespans. More...
 
class  cHTMLConverter
 this class provides conversion methods between plain text strings and HTML strings More...
 
class  cImage
 Image and bitmap handling. More...
 
class  cIndexedFile
 Base class for all indexed file classes. More...
 
class  cIndexedFileAsyncWriter
 asynchrounous file writing More...
 
class  cIndexedFileChanger
 Class for changing the extension section of indexed files. More...
 
class  cIndexedFileHelper
 Helper class to access file information. More...
 
class  cIndexedFileReader
 Class for reading indexed files. More...
 
class  cIndexedFileWriter
 Class for writing indexed files. More...
 
class  cIndexReadTable
 Class for storing an index table of an indexed file. More...
 
class  cIndexWriteTable
 Class for storing an index table of an indexed file. More...
 
class  cIniFile
 INI file handling. More...
 
class  cLockFreeQueue
 Lock-free queue (FIFO) class that allows multiple writers and readers. More...
 
class  cLockFreeStack
 Lock-free stack class that allows multiple writers and readers. More...
 
class  cLogger
 cLogger class to hold the current LogLevel More...
 
class  cMacroResolver
 Class for resolving macros inside a string. More...
 
class  cManualEvent
 Manual event class. More...
 
class  cMD5Checksum
 Class for computing MD5 sums. More...
 
class  cMemoryBlock
 Memory block class. More...
 
class  cMemoryPtr
 
class  cMultiArray
 Multi dimensional array class template. More...
 
class  cMultiArrayIndex
 Multi dimensional index class used to dynamically address elements in a multi array. More...
 
class  cParserHelper
 Parser helper. More...
 
class  cReadSynchronizer
 Synchronizer class for acquiring a read lock of a cReadWriteMutex. More...
 
class  cReadWriteMutex
 The cReadWriteMutex class implements a Read Write Lock. More...
 
class  cRegularExpression
 Regular expressions. More...
 
class  cRegularExpressionArg
 Regular expression argument class. More...
 
class  cRegularExpressionResolver
 Class for resolving regular expression inside a filename or path. More...
 
class  cSemaphore
 Semaphore class. More...
 
class  cSerialDevice
 Class for accessing serial devices. More...
 
class  cServerSocket
 TCP Server socket class. More...
 
class  cSocket
 Socket class. More...
 
class  cStatistics
 Simple statistics. More...
 
class  cStdMath
 Class for standard math operations. More...
 
class  cStreamSocket
 TCP Client socket class. More...
 
class  cString
 Class for string handling. More...
 
struct  cStringCompareFunc
 Compare function for stl container e.g. More...
 
class  cStringList
 String list class. More...
 
class  cStringMap
 String map class. More...
 
struct  cStringNoCaseCompareFunc
 Compare function for stl container e.g. More...
 
class  cStringPiece
 Class that represents string pieces. More...
 
class  cStringTable
 String table. More...
 
class  cSynchronizer
 Synchronizer class. More...
 
class  cSystem
 System or platform specific functions. More...
 
class  cThread
 Thread class encapsulate the operating system dependent implementation of using Threads. More...
 
class  cTickCounter
 CPU Tick Counter class This class may be used for testing purposes. More...
 
class  cTime
 Time class. More...
 
class  cTimer
 Class for timer. More...
 
class  cTimeSynchronizer
 Time synchronization helper class for synchronizing value from an external clock to internal clock values. More...
 
class  cUnitConversion
 Class for unit conversions. More...
 
class  cUrl
 Class for general URL representation, handling and verification against the IETF-STD66. More...
 
class  cUtilsError
 The Error class will provide further information on Error Codes and there description. More...
 
class  cVariant
 Variant class which can handle all base data types. More...
 
class  cVariantMap
 Variant map class. More...
 
class  cWriteSynchronizer
 Synchronizer class for acquiring a write lock of a cReadWriteMutex. More...
 
class  IImage
 Image and bitmap handling. More...
 
class  IIndexedFile
 Indexed file interface. More...
 
class  IThreadFunc
 Interface for thread function. More...
 
class  ITimerFunc
 Interface for thread function. More...
 
class  IWaitableObject
 Generic waitable object interface. More...
 
struct  string_compare_func
 Compare function for stl container e.g. More...
 
struct  string_nocasecompare_func
 Compare function for stl container e.g. More...
 
struct  tBitmapFileHeader
 This structure defines the file header used to load and save a bitmap. More...
 
struct  tCallStack
 Respresentation for a Call stack trace. More...
 
union  tFOURCC
 The FOURCC type is used as identifier for video compression codecs. More...
 
struct  xml_string_compare_func
 compare function for stl containers, e.g. More...
 

Typedefs

typedef int tSocketHandle
 work with platform undependend typedefinitions for socket handlers
 
typedef int tSocketH
 Internally used type of socket handle.
 
typedef socklen_t tSocketLength
 work with platform undependend typedefinitions for the size of sockets
 
typedef cBitArrayIntel cBitArray
 for compatibility to old version
 
typedef int tFileHandle
 The type tFileHandle is used internally only.
 
typedef cMultiArrayIndex cMultiArrayDimensions
 Type to specify array dimensions. More...
 
typedef std::map< std::string, std::string, string_nocasecompare_funcstring_map
 Type of string map.
 
typedef std::list< std::string > string_list
 Type of string list.
 
typedef std::list< cStringtStringList
 list of containing cStrings
 
typedef std::list< cString >::const_iterator cStringListIterator
 short typedefinition for cString lists iterators
 
typedef std::list< cString >::const_reverse_iterator cStringListReverseIterator
 short typedefinition for cString lists reverse iterators
 
typedef std::map< cString, cString, cStringCompareFunctStringMap
 definition of string maps containing cStrings for key and value
 
typedef std::map< cString, cVariant, cStringCompareFunctVariantMap
 Type of map of strings to objects of type cVariant.
 
typedef cDOMElementcDOMElementRef
 own data type for cDOMElement pointers
 
typedef std::list< cDOMElementcDOMElementList
 own data type for cDOMElement lists
 
typedef std::list< cDOMElement * > cDOMElementRefList
 own data type for cDOMElement pointers lists
 
typedef cDOMElementList::iterator cDOMElementItor
 iterator type for cDOMElementList
 
typedef cDOMElementList::const_iterator cDOMElementItorConst
 constant iterator type for cDOMElementList
 
typedef cDOMElementRefList::iterator cDOMElementRefItor
 iterator type for cDOMElementRefList
 
typedef cDOMElementRefList::const_iterator cDOMElementRefItorConst
 constant iterator type for cDOMElementRefList
 
typedef std::map< cString, cString, xml_string_compare_funccDOMAttributes
 own data type for cDOM Attributes
 
typedef bool(* tA_UTILS_LogOutputFunction) (const tChar *pcMessage, const tChar *pcLevel, const tChar *pcModuleName, tUInt32 u32Line, tResult stCode)
 Definition of the log output function which is used.
 
typedef bool(* tA_UTILS_LogOutputFunctionRaw) (const tChar *pcText)
 Definition of the raw log output function.
 
typedef tBool(* fnRegExpParser) (const tChar *str, tInt n, tVoid *dest)
 Type of regular expression parser function.
 
typedef cCriticalSection cMutex
 Mutex class.
 

Enumerations

enum  tVariantType {
  VT_Empty = 0x0000, VT_Null = 0x0001, VT_Bool = 0x0002, VT_Int8 = 0x0004,
  VT_UInt8 = 0x0008, VT_Int16 = 0x0010, VT_UInt16 = 0x0020, VT_Int32 = 0x0040,
  VT_UInt32 = 0x0080, VT_Float32 = 0x0100, VT_Float64 = 0x0200, VT_String = 0x0400,
  VT_Int64 = 0x0800, VT_UInt64 = 0x1000, VT_Array = 0x10000000
}
 Enumeration of variant types.
 
enum  tLogLevel {
  LOG_LVL_NONE = 0, LOG_LVL_EXCEPTION = 1, LOG_LVL_ERROR = 2, LOG_LVL_WARNING = 3,
  LOG_LVL_INFO = 4, LOG_LVL_DUMP = 5
}
 internal integer to represent the LogLevels
 
enum  tTimerFlags {
  TI_NONE = 0x00, TI_HIGH_PRIORITY = 0x01, TI_REALTIME_PRIORITY = 0x02, TI_SUSPENDED = 0x04,
  TI_CLOCK_MONOTONIC = 0x08, TI_CLOCK_REALTIME = 0x10
}
 Flags enumeration to control timer creation. More...
 

Functions

tBool operator== (const cMultiArrayIndex &o_A, const cMultiArrayIndex &o_B)
 Comparison operator. More...
 
tBool operator!= (const cMultiArrayIndex &o_A, const cMultiArrayIndex &o_B)
 Comparison operator. More...
 
template<typename T >
cString MultiArrayToString (const cMultiArray< T > &oArray)
 Base templated function to serialize a cMultiArray into a string. More...
 
template<>
cString MultiArrayToString< tInt > (const cMultiArray< tInt > &oArray)
 tInt specialization for the MultiArrayToString function More...
 
template<>
cString MultiArrayToString< tFloat32 > (const cMultiArray< tFloat32 > &oArray)
 tFloat32 specialization for the MultiArrayToString function More...
 
template<>
cString MultiArrayToString< tFloat64 > (const cMultiArray< tFloat64 > &oArray)
 tFloat64 specialization for the MultiArrayToString function More...
 
template<typename T >
tResult ParseMultiArrayFromString (const cString &strRepr, cMultiArray< T > &arrDest)
 Base templated function to parse a cMultiArray from a string representation. More...
 
template<>
tResult ParseMultiArrayFromString< tInt > (const cString &strRepr, cMultiArray< tInt > &arrDest)
 tInt specialization for the ParseMultiArrayFromString function More...
 
template<>
tResult ParseMultiArrayFromString< tFloat32 > (const cString &strRepr, cMultiArray< tFloat32 > &arrDest)
 tFloat32 specialization for the ParseMultiArrayFromString function More...
 
template<>
tResult ParseMultiArrayFromString< tFloat64 > (const cString &strRepr, cMultiArray< tFloat64 > &arrDest)
 tFloat64 specialization for the ParseMultiArrayFromString function More...
 
tBool operator== (const tChar *str1, const cString &str2)
 String compare if equal. More...
 
tBool operator!= (const tChar *str1, const cString &str2)
 String compare if not equal. More...
 
tBool operator< (const tChar *str1, const cString &str2)
 String compare if less than. More...
 
tBool operator> (const tChar *str1, const cString &str2)
 String compare if greater than. More...
 
tBool operator<= (const tChar *str1, const cString &str2)
 String compare if less or equal than. More...
 
tBool operator>= (const tChar *str1, const cString &str2)
 String compare if greater or equal than. More...
 
tBool operator== (const std::string &str1, const cString &str2))
 String compare if equal. More...
 
tBool operator!= (const std::string &str1, const cString &str2))
 String compare if not equal. More...
 
tBool operator< (const std::string &str1, const cString &str2))
 String compare if less than. More...
 
tBool operator> (const std::string &str1, const cString &str2))
 String compare if greater than. More...
 
tBool operator<= (const std::string &str1, const cString &str2))
 String compare if less or equal than. More...
 
tBool operator>= (const std::string &str1, const cString &str2))
 String compare if greater or equal than. More...
 
tBool operator== (const cString &str1, const std::string &str2))
 String compare if equal. More...
 
tBool operator!= (const cString &str1, const std::string &str2))
 String compare if not equal. More...
 
tBool operator< (const cString &str1, const std::string &str2))
 String compare if less than. More...
 
tBool operator> (const cString &str1, const std::string &str2))
 String compare if greater than. More...
 
tBool operator<= (const cString &str1, const std::string &str2))
 String compare if less or equal than. More...
 
tBool operator>= (const cString &str1, const std::string &str2))
 String compare if greater or equal than. More...
 
std::string operator+ (const std::string &s1, const std::string &s2))
 String combine function. More...
 
std::string operator+ (const std::string &s1, const char *s2))
 String combine function. More...
 
void _fnLogOutputRaw (const tChar *pcMessage)
 Internally used logging function. More...
 
void _fnLogOutput (const tChar *strMessage, tLogLevel nLogLevel, const tChar *strModuleName, tUInt32 u32Line, tResult stCode)
 Internally used logging function. More...
 
void _fnLogRegister (tA_UTILS_LogOutputFunction pfnLog)
 Internally used function to register log output function. More...
 
void _fnLogUnregister (tA_UTILS_LogOutputFunction pfnLog)
 Internally used function to unregister log output function. More...
 
void _fnLogRegisterRaw (tA_UTILS_LogOutputFunctionRaw pfnLog)
 Internally used function to register raw log output function. More...
 
void _fnLogUnregisterRaw (tA_UTILS_LogOutputFunctionRaw pfnLog)
 Internally used function to unregister raw log output function. More...
 
cString__strget (const tChar *strId)
 Use this function to access single elements of the global string table. More...
 
cString __strfmt (const tChar *strId,...)
 Use this function to access single elements of the global string table. More...
 
tInt32 AtomicIncrement (tInt32 volatile *pVariable)
 Increments the value of an integer variable in a thread safe manner. More...
 
tInt32 AtomicDecrement (tInt32 volatile *pVariable)
 Decrements the value of an integer variable one in a thread safe manner. More...
 
tInt32 AtomicAdd (tInt32 volatile *pVariable, tInt32 nValue)
 Adds a value to an integer variable in a thread safe manner. More...
 
tBool AtomicCompareExchange (tInt32 volatile *pAddress, tInt32 nNewValue, tInt32 nExpectedValue)
 This function performs an atomic compare and swap operation: More...
 
template<class BasicType >
tBool AtomicCompareExchange (volatile BasicType *pAddress, const BasicType &nNewValue, const BasicType &nExpectedValue)
 This function performs an atomic compare and swap operation: More...
 
tVoid MemoryBarrier ()
 This method will help ensure that all memory reads and writes will have been performed before this function returns. More...
 

Variables

const tSize MEMPTR_WRONG_SIZE_PARAM_MASK = (tSize)1 << (sizeof(tSize)*8-1)
 Memory utility class.
 

Detailed Description

The adtf_util defines the namespace for all functionality that is provided by the definitions and the default implementations within the library adtfutilXXX.a/ adtfutilXXX.lib.

Typedef Documentation

Type to specify array dimensions.

You create a 2x3 array by passing a cMultiArrayDimensions(2, 3) to the cMultiArray constructor. Only difference to cMultiArrayIndex is that the index is zero-based whereas the dimension specification is done starting with 1

Definition at line 182 of file multiarray.h.

Enumeration Type Documentation

Flags enumeration to control timer creation.

Enumerator
TI_NONE 

nothing is set.

TI_HIGH_PRIORITY 

will set the timer priority immediately to high when creating.

TI_REALTIME_PRIORITY 

will set the timer priority class immediately to real time when creating.

TI_SUSPENDED 

will create a timer in suspended mode

TI_CLOCK_MONOTONIC 

The system's monotonic clock will be used instead of the ADTF clock.

This means a timestamp that has been started during bootup and increases strictly linearly, unaffected by any external factors. It guarantees constant advances tick by tick and should be chosen for high-precision timings.

TI_CLOCK_REALTIME 

The system's realtime clock will be used instead of the ADTF clock.

This clock represents the current system time as set by the user, the BIOS or through NTP. It is the system's best guess as to what time it currently is (including, for instance, compensation for clock drifting). However, due to its changeability it may leap forwards and backwards at any time and is thus not ideal for high-precision timings. This clock mode is NOT to be confused with real-time threading and priorities!

Definition at line 22 of file timer.h.

Function Documentation

cString adtf_util::__strfmt ( const tChar strId,
  ... 
)

Use this function to access single elements of the global string table.

The string will be used as format string to create the output string.

Parameters
strId[in] Key value of string to be fetched.
Returns
New string
cString& adtf_util::__strget ( const tChar strId)

Use this function to access single elements of the global string table.

Parameters
strId[in] Key value of string to be fetched.
Returns
Reference to string table element.
void adtf_util::_fnLogOutput ( const tChar strMessage,
tLogLevel  nLogLevel,
const tChar strModuleName,
tUInt32  u32Line,
tResult  stCode 
)

Internally used logging function.

Parameters
strMessageLog message
nLogLevelLog level (enum A_UTILS_NS::tLogLevel)
strModuleNameModule name
u32LineSource code line number
stCodeResult code
void adtf_util::_fnLogOutputRaw ( const tChar pcMessage)

Internally used logging function.

Parameters
pcMessageLog message
void adtf_util::_fnLogRegister ( tA_UTILS_LogOutputFunction  pfnLog)

Internally used function to register log output function.

Parameters
pfnLogPointer to log output function
void adtf_util::_fnLogRegisterRaw ( tA_UTILS_LogOutputFunctionRaw  pfnLog)

Internally used function to register raw log output function.

Parameters
pfnLogPointer to raw log output function
void adtf_util::_fnLogUnregister ( tA_UTILS_LogOutputFunction  pfnLog)

Internally used function to unregister log output function.

Parameters
pfnLogPointer to log output function
void adtf_util::_fnLogUnregisterRaw ( tA_UTILS_LogOutputFunctionRaw  pfnLog)

Internally used function to unregister raw log output function.

Parameters
pfnLogPointer to raw log output function
tInt32 adtf_util::AtomicAdd ( tInt32 volatile *  pVariable,
tInt32  nValue 
)

Adds a value to an integer variable in a thread safe manner.

The variable must be aligned on a 32-bit boundary; otherwise, this function will behave unpredictably on multiprocessor x86 systems.

Parameters
pVariable[in,out] Pointer to integer variable to be modified.
nValue[in] Value to be added to the variable.
Returns
The function returns the resulting value of the variable.
This method is real-time safe.
See The ADTF Real-Time Extension.

Referenced by cAtomicCounter::operator+=(), and cAtomicCounter::operator-=().

tBool adtf_util::AtomicCompareExchange ( tInt32 volatile *  pAddress,
tInt32  nNewValue,
tInt32  nExpectedValue 
)

This function performs an atomic compare and swap operation:

  1. Comparison of the specified integer variable with 'nExpectedValue'.
  2. If the outcome of the comparison is true: 'nNewValue' will be stored in the variable. Otherwise the value of the variable will not be modified.

There is a template defined for use with other types than tInt32.

Parameters
pAddress[in,out] Pointer to integer variable to be modified.
nExpectedValue[in] Expected value of the variable.
nNewValue[in] New value to be stored in the variable.
Returns
tTrue when the value was set, tFalse otherwise
This method is real-time safe.
See The ADTF Real-Time Extension.
tBool adtf_util::AtomicCompareExchange ( volatile BasicType *  pAddress,
const BasicType &  nNewValue,
const BasicType &  nExpectedValue 
)
inline

This function performs an atomic compare and swap operation:

  1. Comparison of the specified integer variable with 'nExpectedValue'.
  2. If the outcome of the comparison is true: 'nNewValue' will be stored in the variable. Otherwise the value of the variable will not be modified.

There is a template defined for use with other types than tInt32.

Parameters
pAddress[in,out] Pointer to integer variable to be modified.
nExpectedValue[in] Expected value of the variable.
nNewValue[in] New value to be stored in the variable.
Returns
tTrue when the value was set, tFalse otherwise
This method is real-time safe.
See The ADTF Real-Time Extension.

Definition at line 108 of file atomic.h.

tInt32 adtf_util::AtomicDecrement ( tInt32 volatile *  pVariable)

Decrements the value of an integer variable one in a thread safe manner.

The variable must be aligned on a 32-bit boundary; otherwise, this function will behave unpredictably on multiprocessor x86 systems.

Parameters
pVariable[in,out] Pointer to integer variable to be modified.
Returns
The function returns the resulting value of the variable.
This method is real-time safe.
See The ADTF Real-Time Extension.

Referenced by cAtomicCounter::operator--().

tInt32 adtf_util::AtomicIncrement ( tInt32 volatile *  pVariable)

Increments the value of an integer variable in a thread safe manner.

The variable must be aligned on a 32-bit boundary; otherwise, this function will behave unpredictably on multiprocessor x86 systems.

Parameters
pVariable[in,out] Pointer to integer variable to be modified.
Returns
The function returns the resulting value of the variable.
This method is real-time safe.
See The ADTF Real-Time Extension.

Referenced by cAtomicCounter::operator++().

tVoid adtf_util::MemoryBarrier ( )
inline

This method will help ensure that all memory reads and writes will have been performed before this function returns.

It is especially useful when compiler optimzations may reorder memory access which might result in unexpected behaviour of multithreaded programs. It is similar to declaring variables 'volatile'.

Returns
void
This method is real-time safe.
See The ADTF Real-Time Extension.

Definition at line 127 of file atomic.h.

Referenced by cLockFreeQueue< T >::Pop(), and cLockFreeQueue< T >::Push().

cString adtf_util::MultiArrayToString ( const cMultiArray< T > &  oArray)

Base templated function to serialize a cMultiArray into a string.

Parameters
oArray[in] The array to serialize
Returns
Returns the string representation of the array
Note
Base case is not implemented! Simply add a specialized version for supported types

tFloat32 specialization for the MultiArrayToString function

Parameters
oArray[in] The array to serialize
Returns
Returns the string representation of the array

tFloat64 specialization for the MultiArrayToString function

Parameters
oArray[in] The array to serialize
Returns
Returns the string representation of the array

tInt specialization for the MultiArrayToString function

Parameters
oArray[in] The array to serialize
Returns
Returns the string representation of the array
tBool adtf_util::operator!= ( const cMultiArrayIndex o_A,
const cMultiArrayIndex o_B 
)

Comparison operator.

Parameters
o_A[in] First index
o_B[in] Second index
Returns
Returns true if a does not equal b
tBool adtf_util::operator!= ( const tChar str1,
const cString str2 
)

String compare if not equal.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if strings are not equal, tFalse otherwise
tBool adtf_util::operator!= ( const std::string &  str1,
const cString str2 
)

String compare if not equal.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if strings are not equal, tFalse otherwise
tBool adtf_util::operator!= ( const cString str1,
const std::string &  str2 
)

String compare if not equal.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if strings are not equal, tFalse otherwise
std::string adtf_util::operator+ ( const std::string &  s1,
const std::string &  s2 
)
inline

String combine function.

Parameters
[in]s1First string
[in]s2Second string
Returns
the combined string of s1 and s2

Definition at line 2018 of file string.h.

std::string adtf_util::operator+ ( const std::string &  s1,
const char *  s2 
)
inline

String combine function.

Parameters
[in]s1First string
[in]s2Second string
Returns
the combined string of s1 and s2

Definition at line 2032 of file string.h.

tBool adtf_util::operator< ( const tChar str1,
const cString str2 
)

String compare if less than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is less than str2, tFalse otherwise
tBool adtf_util::operator< ( const std::string &  str1,
const cString str2 
)

String compare if less than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is less than str2, tFalse otherwise
tBool adtf_util::operator< ( const cString str1,
const std::string &  str2 
)

String compare if less than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is less than str2, tFalse otherwise
tBool adtf_util::operator<= ( const tChar str1,
const cString str2 
)

String compare if less or equal than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is less or equal than str2, tFalse otherwise
tBool adtf_util::operator<= ( const std::string &  str1,
const cString str2 
)

String compare if less or equal than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is less or equal than str2, tFalse otherwise
tBool adtf_util::operator<= ( const cString str1,
const std::string &  str2 
)

String compare if less or equal than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is less or equal than str2, tFalse otherwise
tBool adtf_util::operator== ( const cMultiArrayIndex o_A,
const cMultiArrayIndex o_B 
)

Comparison operator.

Parameters
o_A[in] First index
o_B[in] Second index
Returns
Returns true if a equals b
tBool adtf_util::operator== ( const tChar str1,
const cString str2 
)

String compare if equal.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if strings are equal, tFalse otherwise
tBool adtf_util::operator== ( const std::string &  str1,
const cString str2 
)

String compare if equal.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if strings are equal, tFalse otherwise
tBool adtf_util::operator== ( const cString str1,
const std::string &  str2 
)

String compare if equal.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if strings are equal, tFalse otherwise
tBool adtf_util::operator> ( const tChar str1,
const cString str2 
)

String compare if greater than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is greater than str2, tFalse otherwise
tBool adtf_util::operator> ( const std::string &  str1,
const cString str2 
)

String compare if greater than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is greater than str2, tFalse otherwise
tBool adtf_util::operator> ( const cString str1,
const std::string &  str2 
)

String compare if greater than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is greater than str2, tFalse otherwise
tBool adtf_util::operator>= ( const tChar str1,
const cString str2 
)

String compare if greater or equal than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is greater or equal than str2, tFalse otherwise
tBool adtf_util::operator>= ( const std::string &  str1,
const cString str2 
)

String compare if greater or equal than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is greater or equal than str2, tFalse otherwise
tBool adtf_util::operator>= ( const cString str1,
const std::string &  str2 
)

String compare if greater or equal than.

Parameters
[in]str1First string
[in]str2Second string
Returns
tTrue if str1 is greater or equal than str2, tFalse otherwise
tResult adtf_util::ParseMultiArrayFromString ( const cString strRepr,
cMultiArray< T > &  arrDest 
)

Base templated function to parse a cMultiArray from a string representation.

Parameters
strRepr[in] The string to deserialize
arrDest[out] Destination array
Returns
Returns standard result

Base case is not implemented! Simply add a specialized version for supported types

tFloat32 specialization for the ParseMultiArrayFromString function

Parameters
strRepr[in] The string to deserialize
arrDest[out] Destination array
Returns
Returns standard result

tFloat64 specialization for the ParseMultiArrayFromString function

Parameters
strRepr[in] The string to deserialize
arrDest[out] Destination array
Returns
Returns standard result
tResult adtf_util::ParseMultiArrayFromString< tInt > ( const cString strRepr,
cMultiArray< tInt > &  arrDest 
)

tInt specialization for the ParseMultiArrayFromString function

Parameters
strRepr[in] The string to deserialize
arrDest[out] Destination array
Returns
Returns standard result

Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)