AnimatLab
2
Test
|
Namespace for the standard utility objects. More...
Classes | |
class | CMarkupSTL |
class | CStdColor |
Standard color class. More... | |
class | CStdCriticalSection |
Standard critical section. More... | |
class | CStdCriticalSectionInternal |
Standard critical section. More... | |
class | CStdErrorInfo |
Information about the standard error. More... | |
class | CStdFixed |
Standard fixed-point number class. More... | |
class | CStdFont |
Standard font. More... | |
class | CStdLookupTable |
Standard lookup table. More... | |
class | CStdPID |
Implements a basic PID control algorithm. More... | |
class | CStdPostFixEval |
Standard post fix evaluation class. More... | |
class | CStdSerialize |
Standard serialize class. More... | |
class | CStdVariable |
A variable that is used within the CStdPostFixEval class. More... | |
class | CStdVariant |
Standard variant type. More... | |
class | CStdXml |
A standard xml manipulation class. More... | |
class | IStdClassFactory |
Standard class factory. More... | |
Typedefs | |
typedef IStdClassFactory *(* | GetClassFactory) (void) |
typedef float | StdVector3[3] |
typedef float | StdVector4[4] |
Enumerations | |
enum | LockState { Locked, Unlocked } |
enum | StdLogLevel { StdLogNone = 0, StdLogError = 10, StdLogInfo = 20, StdLogDebug = 30, StdLogDetail = 40 } |
enum | StdVariantType { StdVtEmpty = -1, StdVtShort = 0, StdVtLong = 1, StdVtFloat = 2, StdVtDouble = 3, StdVtBool = 4, StdVtChar = 5, StdVtUChar = 6, StdVtUShort = 7, StdVtULong = 8, StdVtInt = 9, StdVtUInt = 10, StdVtString = 11 } |
Values that represent StdVariantType. | |
enum | TraceLevel { TraceNone = 0, TraceError = 10, TraceInfo = 20, TraceDebug = 30, TraceDetail = 40 } |
Functions | |
void | AddToErrorCallChain (CStdErrorInfo &oInfo, std::string strSourceFile, long lSourceLine) |
Adds to the error call chain. More... | |
unsigned long | bit_get (unsigned long x, int i) |
Gets a bit of x. More... | |
unsigned long | bit_put (unsigned long x, int i, unsigned long v) |
puts a bit in x. More... | |
bool | CompareDataPoints (CStdDPoint oPoint1, CStdDPoint oPoint2) |
Compare data points. More... | |
long | genrand_int31 (void) |
unsigned long | genrand_int32 (void) |
double | genrand_real1 (void) |
double | genrand_real2 (void) |
double | genrand_real3 (void) |
double | genrand_res53 (void) |
std::string | GetTraceFilePrefix () |
int | GetTraceLevel () |
void | init_by_array (unsigned long init_key[], int key_length) |
void | init_genrand (unsigned long s) |
bool | NotSpace (char c) |
Test if this is a space. More... | |
std::ostream & | operator<< (std::ostream &oOs, CStdSerialize *lpObj) |
writes to an output stream More... | |
std::ostream & | operator<< (std::ostream &oOs, CStdIPoint oPoint) |
writes to an output stream More... | |
std::ostream & | operator<< (std::ostream &oOs, CStdLPoint oPoint) |
writes to an output stream More... | |
std::ostream & | operator<< (std::ostream &oOs, CStdFPoint oPoint) |
writes to an output stream More... | |
std::ostream & | operator<< (std::ostream &oOs, CStdDPoint oPoint) |
writes to an output stream More... | |
void | SetTraceFilePrefix (LPCTSTR strFilePrefix) |
void | SetTraceLevel (const int nLevel) |
template<class Type > | |
const Type & | SSMAX (const Type &arg1, const Type &arg2) |
template<class Type > | |
const Type & | SSMIN (const Type &arg1, const Type &arg2) |
unsigned char | Std_BinaryToGreyCode (unsigned char cVal) |
Converts a binary value to grey code. More... | |
unsigned short | Std_BinaryToGreyCode (unsigned short iVal) |
Converts a binary value to grey code. More... | |
unsigned long | Std_BinaryToGreyCode (unsigned long lVal) |
Converts a binary value to grey code. More... | |
std::string | Std_ByteArrayToHexString (CStdArray< unsigned char > &aryBytes) |
Converts a byte array to hexadecimal string. More... | |
void | Std_ByteArrayToHexString (CStdArray< unsigned char > &aryBytes, std::string &strHex) |
Converts a byte array to hexadecimal string. More... | |
double | Std_CalculateDistance (CStdIPoint &ptA, CStdIPoint &ptB) |
Calculates the distance between two points. More... | |
double | Std_CalculateDistance (CStdLPoint &ptA, CStdLPoint &ptB) |
Calculates the distance between two points. More... | |
double | Std_CalculateDistance (CStdFPoint &ptA, CStdFPoint &ptB) |
Calculates the distance between two points. More... | |
double | Std_CalculateDistance (CStdDPoint &ptA, CStdDPoint &ptB) |
Calculates the distance between two points. More... | |
double | Std_CalculateDistance (float fltX1, float fltY1, float fltZ1, float fltX2, float fltY2, float fltZ2) |
std::string | Std_CheckString (std::string strVal) |
Converts a string to upper case and trims it. More... | |
std::string | Std_Combine (CStdArray< std::string > &aryParts, std::string strDelimiter) |
Combines an array of strings into a single string. More... | |
std::string | Std_ConstToVariantType (int iType) |
Standard constant to variant type. More... | |
void | Std_CopyBinarySection (CStdArray< unsigned char > &aryInData, long lStartInBit, CStdArray< unsigned char > &aryOutData, long lStartOutBit, long lBitLength) |
Copies a section of a byte array to a new position within the array. More... | |
std::string | Std_CreateAppID () |
Gets the standard create application identifier. More... | |
bool | Std_DirectoryExists (std::string strPath) |
Queries if a given directory exists. More... | |
double | Std_DRand (double low, double high) |
Generates a random number between two values. More... | |
std::string | Std_ExecutablePath () |
Finds the name and path of the current executable. More... | |
bool | Std_FileExists (std::string strFullPath) |
Finds if a given file exists. More... | |
void | Std_FlipBitInArray (CStdArray< unsigned char > &aryRawData, long lBit) |
Flips a bit within a byte array. More... | |
void | Std_FlipBitRangeInArray (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength) |
Flips all the bits within a section of a byte array. More... | |
float | Std_FRand (float low, float high) |
Generates a random number between two values. More... | |
void | Std_GetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, unsigned char &cOut) |
Gets a section of bits from a byte array. More... | |
void | Std_GetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, unsigned short &iOut) |
Gets a section of bits from a byte array. More... | |
void | Std_GetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, unsigned long &lOut) |
Gets a section of bits from a byte array. More... | |
void | Std_GetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, CStdArray< unsigned char > &aryOutData) |
Gets a section of bits from a byte array. More... | |
bool | Std_GetBitFromArray (CStdArray< unsigned char > &aryRawData, long lBit) |
Gets a single bit from a byte array. More... | |
long | Std_GetBitSize (CStdArray< unsigned char > &aryRawData) |
Gets the number of bits in a byte array. More... | |
unsigned char | Std_GetByteFromArray (CStdArray< unsigned char > &aryRawData, long lEndBit, long lBitsNeeded) |
Gets a single byte from a byte array. More... | |
CStdCriticalSection * | Std_GetCriticalSection () |
std::string | Std_GetLogFilePrefix () |
Gets the log file prefix. More... | |
unsigned long | Std_GetTick () |
Gets the time tick. More... | |
int | Std_GetTraceLevel () |
Gets the trace level. More... | |
unsigned char | Std_GreyCodeToBinary (unsigned char cVal) |
Converts a grey code to a binary value. More... | |
unsigned short | Std_GreyCodeToBinary (unsigned short iVal) |
Converts a grey code to a binary value. More... | |
unsigned long | Std_GreyCodeToBinary (unsigned long lVal) |
Converts a grey code to a binary value. More... | |
unsigned char | Std_HexCharToByte (char cVal) |
Converts a hexidecimal number to a byte. More... | |
void | Std_HexStringToByteArray (std::string strHex, CStdArray< unsigned char > &aryBytes) |
Converts a hex string to a byte array. More... | |
unsigned char * | Std_HexStringToByteArray (std::string strHex, long &lArraySize) |
Converts a hex string to a byte array. More... | |
unsigned char | Std_HexToByte (std::string strVal) |
Converts a hexidecimal number to a byte. More... | |
bool | Std_InValidRange (int iMinVal, int iMaxVal, int iVal, bool bThrowError, std::string strParamName) |
Tests whether a number is within a valid range. More... | |
bool | Std_InValidRange (long lMinVal, long lMaxVal, long lVal, bool bThrowError, std::string strParamName) |
Standard in valid range. More... | |
bool | Std_InValidRange (float fltMinVal, float fltMaxVal, float fltVal, bool bThrowError, std::string strParamName) |
Standard in valid range. More... | |
bool | Std_InValidRange (double dblMinVal, double dblMaxVal, double dblVal, bool bThrowError, std::string strParamName) |
Standard in valid range. More... | |
int | Std_IRand (int low, int high) |
Generates a random number between two values. More... | |
bool | Std_IsAboveMin (int iMinVal, int iVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is above a minimum value. More... | |
bool | Std_IsAboveMin (long lMinVal, long lVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is above a minimum value. More... | |
bool | Std_IsAboveMin (float fltMinVal, float fltVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is above a minimum value. More... | |
bool | Std_IsAboveMin (double dblMinVal, double dblVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is above a minimum value. More... | |
bool | Std_IsBelowMax (int iMaxVal, int iVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is below a maximum value. More... | |
bool | Std_IsBelowMax (long lMaxVal, long lVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is below a maximum value. More... | |
bool | Std_IsBelowMax (float fltMaxVal, float fltVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is below a maximum value. More... | |
bool | Std_IsBelowMax (double dblMaxVal, double dblVal, bool bThrowError, std::string strParamName, bool bInclusiveLimit) |
Tests if a number is below a maximum value. More... | |
bool | Std_IsBlank (std::string strVal) |
Trims a string and tests if a string is blank. More... | |
bool | Std_IsFullPath (std::string strPath) |
determines if this is a full path name. More... | |
bool | Std_IsIntegerType (std::string strVal) |
Tests if this string is an integer. More... | |
bool | Std_IsNumeric (std::string strVal) |
Tests if this string is a number. More... | |
std::string | Std_Left (std::string strVal, int iCount) |
Gets the left portion of a substring. More... | |
void | Std_LoadColor (CStdXml &oXml, std::string strParamName, float *aryColor, bool bThrowError) |
Loads a color. More... | |
void | Std_LoadColor (std::string strXml, std::string strParamName, float *aryColor, bool bThrowError) |
Loads a color. More... | |
bool | Std_LoadPoint (CStdXml &oXml, std::string strName, CStdIPoint &oPoint, bool bThrowError) |
Standard load point. More... | |
bool | Std_LoadPoint (CStdXml &oXml, std::string strName, CStdLPoint &oPoint, bool bThrowError) |
Standard load point. More... | |
bool | Std_LoadPoint (CStdXml &oXml, std::string strName, CStdFPoint &oPoint, bool bThrowError) |
Standard load point. More... | |
bool | Std_LoadPoint (CStdXml &oXml, std::string strName, CStdDPoint &oPoint, bool bThrowError) |
Standard load point. More... | |
void | Std_LoadPoint (CStdXml &oXml, int iIndex, CStdIPoint &oPoint) |
Standard load point. More... | |
void | Std_LoadPoint (CStdXml &oXml, int iIndex, CStdLPoint &oPoint) |
Standard load point. More... | |
void | Std_LoadPoint (CStdXml &oXml, int iIndex, CStdFPoint &oPoint) |
Standard load point. More... | |
void | Std_LoadPoint (CStdXml &oXml, int iIndex, CStdDPoint &oPoint) |
Standard load point. More... | |
long | Std_LoadRGB (CStdXml &oXml, std::string strParamName, bool bThrowError, long lDefault) |
Loads a color. More... | |
void | Std_Log (const int nLevel, bool bPrintHeader, LPCTSTR strFormat,...) |
void | Std_LogMsg (const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bPrintHeader) |
Logs a message,. More... | |
long | Std_LRand (long low, long high) |
Generates a random number between two values. More... | |
std::string | Std_NullStr (std::string strFormat) |
If string is blank it uses NULL instead. More... | |
bool | Std_ReadBinaryData (CStdArray< unsigned char > &aryBinaryData, long lLastBit, long &lStartBit, long lBitLength, unsigned char &cOut) |
Reads binary data from a byte array. More... | |
bool | Std_ReadBinaryData (CStdArray< unsigned char > &aryBinaryData, long lLastBit, long &lStartBit, long lBitLength, unsigned short &iOut) |
Reads binary data from a byte array. More... | |
bool | Std_ReadBinaryData (CStdArray< unsigned char > &aryBinaryData, long lLastBit, long &lStartBit, long lBitLength, unsigned long &lOut) |
Reads binary data from a byte array. More... | |
void | Std_RelayError (CStdErrorInfo oInfo, std::string strSourceFile, long lSourceLine) |
Standard relay error. More... | |
std::string | Std_Replace (std::string strVal, std::string strFind, std::string strReplace) |
Replaces a substring with another string. More... | |
void | Std_ResetLog () |
std::string | Std_RetrieveParam (int argc, const char **argv, std::string strParamName, bool bThrowError) |
long | Std_RGB (unsigned char iRed, unsigned char iGreen, unsigned char iBlue) |
Generates a long representation of a color. More... | |
std::string | Std_Right (std::string strVal, int iCount) |
Gets the right portion of a substring. More... | |
void | Std_SavePoint (CStdXml &oXml, std::string strName, CStdIPoint &oPoint) |
Standard save point. More... | |
void | Std_SavePoint (CStdXml &oXml, std::string strName, CStdLPoint &oPoint) |
Standard save point. More... | |
void | Std_SavePoint (CStdXml &oXml, std::string strName, CStdFPoint &oPoint) |
Standard save point. More... | |
void | Std_SavePoint (CStdXml &oXml, std::string strName, CStdDPoint &oPoint) |
Standard save point. More... | |
void | Std_SetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, unsigned char cIn) |
Replaces a section of a byte array with a new byte array. More... | |
void | Std_SetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, unsigned short iIn) |
Replaces a section of a byte array with a new byte array. More... | |
void | Std_SetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, unsigned long lIn) |
Replaces a section of a byte array with a new byte array. More... | |
void | Std_SetBinarySection (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, CStdArray< unsigned char > &aryInData) |
Replaces a section of a byte array with a new byte array. More... | |
void | Std_SetBitInArray (CStdArray< unsigned char > &aryRawData, long lBit, bool bVal) |
Sets a bit within an array. More... | |
void | Std_SetBitRangeInArray (CStdArray< unsigned char > &aryRawData, long lStartBit, long lBitLength, bool bVal) |
Sets an entire section within a byte array with a bit value. More... | |
void | Std_SetByteInArray (CStdArray< unsigned char > &aryRawData, unsigned char cIn, long lEndBit, long lBitsNeeded) |
Sets a byte within an array. More... | |
void | Std_SetFileTime (std::string strFilename) |
void | Std_SetLogFilePrefix (std::string strFilePrefix) |
Sets the log file prefix. More... | |
void | Std_SetLogLevel (const int iLevel) |
Sets the log level. More... | |
void | Std_SetTraceLevel (const int iVal) |
Sets teh trace level. More... | |
int | Std_Sign (float fltVal) |
Determines the sign of a number. More... | |
int | Std_Sign (float fltVal, float fltDefault) |
Determines the sign of a number. If the number is 0 then it uses the default value supplied. More... | |
void | Std_Sleep (unsigned long lMilliseconds) |
int | Std_Split (const std::string &input, const std::string &delimiter, CStdArray< std::string > &results) |
Splits a string into an array of subparts based on a delimiter. More... | |
void | Std_SplitPathAndFile (std::string &strFullPath, std::string &strPath, std::string &strFile) |
Splits the path from the actual filename. More... | |
void | Std_SRand (unsigned long lSeed) |
Sets the seed for generating a random number. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, unsigned char iVal) |
Standard throw error. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, unsigned short iVal) |
Standard throw error. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, int iVal) |
Standard throw error. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, long lVal) |
Standard throw error. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, float fltVal) |
Standard throw error. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, double dblVal) |
Standard throw error. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, std::string strVal) |
Standard throw error. More... | |
void | Std_ThrowError (long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strText) |
Standard throw error. More... | |
bool | Std_ToBool (int iVal) |
Converts a value toa bool. More... | |
bool | Std_ToBool (std::string strVal) |
Converts a value toa bool. More... | |
std::string | Std_ToLower (std::string strVal) |
Converts a string to lower case. More... | |
std::string | Std_ToStr (std::string strVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (const char *strVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (unsigned char iVal) |
Converts a value to a std::string. More... | |
std::string | Std_ToStr (unsigned short iVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (int iVal) |
Converts a value to a std::string. More... | |
std::string | Std_ToStr (unsigned int iVal) |
Converts a value to a std::string. More... | |
std::string | Std_ToStr (long lVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (unsigned long lVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (float fltVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (double dblVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (bool bVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (std::string strFormat, unsigned char iVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (std::string strFormat, unsigned short iVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (std::string strFormat, int iVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (std::string strFormat, long lVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (std::string strFormat, float fltVal) |
Converts a value to a string. More... | |
std::string | Std_ToStr (std::string strFormat, double dblVal) |
Converts a value to a string. More... | |
std::string | Std_ToUpper (std::string strVal) |
Converts a string to upper case. More... | |
void | Std_TraceMsg (const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader) |
Traces a message to the debugger window. More... | |
std::string | Std_Trim (std::string strVal) |
Trims a string. More... | |
std::string | Std_TrimLeft (std::string strVal) |
Standard trim left. More... | |
std::string | Std_TrimRight (std::string strVal) |
Standard trim right. More... | |
int | Std_VariantTypeToConst (std::string strType) |
Standard variant type to constant. More... | |
void | Std_WriteBinaryData (CStdArray< unsigned char > &aryBinaryData, long &lStartBit, long lBitLength, unsigned char cIn) |
Writes data to a byte array. More... | |
void | Std_WriteBinaryData (CStdArray< unsigned char > &aryBinaryData, long &lStartBit, long lBitLength, unsigned short iIn) |
Writes data to a byte array. More... | |
void | Std_WriteBinaryData (CStdArray< unsigned char > &aryBinaryData, long &lStartBit, long lBitLength, unsigned long lIn) |
Writes data to a byte array. More... | |
Variables | |
int | g_iAppID = 1000 |
Namespace for the standard utility objects.
void StdUtils::AddToErrorCallChain | ( | CStdErrorInfo & | oInfo, |
std::string | strSourceFile, | ||
long | lSourceLine | ||
) |
Adds to the error call chain.
[in,out] | oInfo | The error information. |
strSourceFile | The string source file. | |
lSourceLine | Source line. |
Definition at line 87 of file StdUtilFunctions.cpp.
References StdUtils::CStdErrorInfo::m_aryCallChain.
Referenced by Std_RelayError(), and Std_ThrowError().
unsigned long StdUtils::bit_get | ( | unsigned long | x, |
int | i | ||
) |
Gets a bit of x.
x | The x coordinate. |
i | The bit index. |
Definition at line 1863 of file StdUtilFunctions.cpp.
Referenced by Std_BinaryToGreyCode(), Std_GreyCodeToBinary(), and Std_SetByteInArray().
unsigned long StdUtils::bit_put | ( | unsigned long | x, |
int | i, | ||
unsigned long | v | ||
) |
puts a bit in x.
x | The x coordinate. |
i | The bit index. |
v | The new bit. |
Definition at line 1882 of file StdUtilFunctions.cpp.
Referenced by Std_BinaryToGreyCode(), and Std_GreyCodeToBinary().
bool StdUtils::CompareDataPoints | ( | CStdDPoint | oPoint1, |
CStdDPoint | oPoint2 | ||
) |
Compare data points.
oPoint1 | The first o point. |
oPoint2 | The second o point. |
Definition at line 93 of file StdLookupTable.cpp.
Referenced by StdUtils::CStdLookupTable::Initialize().
bool StdUtils::NotSpace | ( | char | c | ) |
Test if this is a space.
c | The character. |
Definition at line 912 of file StdUtilFunctions.cpp.
Referenced by Std_TrimLeft(), and Std_TrimRight().
std::ostream & StdUtils::operator<< | ( | std::ostream & | oOs, |
CStdSerialize * | lpObj | ||
) |
writes to an output stream
Definition at line 99 of file StdSerialize.cpp.
References StdUtils::CStdSerialize::Trace().
std::ostream & StdUtils::operator<< | ( | std::ostream & | oOs, |
CStdIPoint | oPoint | ||
) |
std::ostream & StdUtils::operator<< | ( | std::ostream & | oOs, |
CStdLPoint | oPoint | ||
) |
std::ostream & StdUtils::operator<< | ( | std::ostream & | oOs, |
CStdFPoint | oPoint | ||
) |
std::ostream & StdUtils::operator<< | ( | std::ostream & | oOs, |
CStdDPoint | oPoint | ||
) |
unsigned char StdUtils::Std_BinaryToGreyCode | ( | unsigned char | cVal | ) |
Converts a binary value to grey code.
cVal | The binary value. |
Definition at line 2788 of file StdUtilFunctions.cpp.
References bit_get(), and bit_put().
unsigned short StdUtils::Std_BinaryToGreyCode | ( | unsigned short | iVal | ) |
Converts a binary value to grey code.
iVal | The binary value. |
Definition at line 2815 of file StdUtilFunctions.cpp.
References bit_get(), and bit_put().
unsigned long StdUtils::Std_BinaryToGreyCode | ( | unsigned long | lVal | ) |
Converts a binary value to grey code.
lVal | The binary value. |
Definition at line 2841 of file StdUtilFunctions.cpp.
References bit_get(), and bit_put().
std::string StdUtils::Std_ByteArrayToHexString | ( | CStdArray< unsigned char > & | aryBytes | ) |
Converts a byte array to hexadecimal string.
[in,out] | aryBytes | The array in bytes. |
Definition at line 1901 of file StdUtilFunctions.cpp.
void StdUtils::Std_ByteArrayToHexString | ( | CStdArray< unsigned char > & | aryBytes, |
std::string & | strHex | ||
) |
Converts a byte array to hexadecimal string.
[in,out] | aryBytes | The array in bytes. |
[in,out] | strHex | The string hexadecimal. |
Definition at line 1918 of file StdUtilFunctions.cpp.
double StdUtils::Std_CalculateDistance | ( | CStdIPoint & | ptA, |
CStdIPoint & | ptB | ||
) |
Calculates the distance between two points.
[in,out] | ptA | The point a. |
[in,out] | ptB | The point b. |
Definition at line 455 of file StdSerialize.cpp.
Referenced by AnimatSim::Environment::Bodies::LineBase::CalculateLength(), and AnimatSim::Environment::Odor::CalculateOdorValue().
double StdUtils::Std_CalculateDistance | ( | CStdLPoint & | ptA, |
CStdLPoint & | ptB | ||
) |
Calculates the distance between two points.
[in,out] | ptA | The point a. |
[in,out] | ptB | The point b. |
Definition at line 471 of file StdSerialize.cpp.
double StdUtils::Std_CalculateDistance | ( | CStdFPoint & | ptA, |
CStdFPoint & | ptB | ||
) |
Calculates the distance between two points.
[in,out] | ptA | The point a. |
[in,out] | ptB | The point b. |
Definition at line 487 of file StdSerialize.cpp.
double StdUtils::Std_CalculateDistance | ( | CStdDPoint & | ptA, |
CStdDPoint & | ptB | ||
) |
Calculates the distance between two points.
[in,out] | ptA | The point a. |
[in,out] | ptB | The point b. |
Definition at line 503 of file StdSerialize.cpp.
std::string StdUtils::Std_CheckString | ( | std::string | strVal | ) |
Converts a string to upper case and trims it.
strVal | The string value. |
Definition at line 1793 of file StdUtilFunctions.cpp.
References Std_ToUpper(), and Std_Trim().
Referenced by AnimatSim::ActivatedItemMgr::Add(), AnimatSim::Charting::DataChart::AddColumn(), AnimatSim::Environment::Materials::AddItem(), OsgAnimatSim::Visualization::OsgScriptedSimulationWindow::AddItem(), VortexAnimatSim::Visualization::VsScriptedSimulationWindow::AddItem(), AnimatSim::Adapters::ContactAdapter::AddItem(), AnimatSim::Environment::LightManager::AddItem(), AnimatSim::Behavior::PhysicsNeuralModule::AddItem(), AnimatSim::Robotics::RobotInterface::AddItem(), AnimatSim::Robotics::RemoteControl::AddItem(), AnimatSim::Environment::Organism::AddItem(), AnimatSim::Environment::ContactSensor::AddItem(), FiringRateSim::FiringRateModule::AddItem(), FiringRateSim::Synapses::Synapse::AddItem(), AnimatCarlSim::CsNeuralModule::AddItem(), AnimatSim::Robotics::RobotIOControl::AddItem(), AnimatSim::Charting::DataChart::AddItem(), IntegrateFireSim::IntegrateFireNeuralModule::AddItem(), OsgAnimatSim::Visualization::OsgLinearPath::AddItem(), VortexAnimatSim::Visualization::OsgLinearPath::AddItem(), AnimatSim::Environment::Structure::AddItem(), FiringRateSim::Neurons::Neuron::AddItem(), IntegrateFireSim::Neuron::AddItem(), AnimatSim::Environment::RigidBody::AddItem(), AnimatSim::Simulator::AddItem(), AnimatSim::Behavior::NervousSystem::AddNeuralModule(), AnimatSim::Environment::Bodies::Mesh::CollisionMeshType(), AnimatSim::Simulator::ConvertDenominatorDistanceUnits(), AnimatSim::Simulator::ConvertDisplayMassUnits(), AnimatSim::Simulator::ConvertDistanceUnits(), AnimatSim::Simulator::ConvertMassUnits(), AnimatSim::Simulator::CreateObject(), AnimatCarlSim::CsNeuronDataColumn::DataType(), AnimatSim::ActivatedItemMgr::Find(), AnimatSim::Simulator::FindByID(), AnimatSim::Charting::DataChart::FindColumn(), AnimatCarlSim::CsNeuralModule::FindConnectionGenerator(), AnimatSim::Environment::Structure::FindJoint(), OsgAnimatSim::OsgMeshMgr::FindMesh(), AnimatSim::Behavior::NervousSystem::FindNeuralModule(), AnimatSim::Simulator::FindNeuralModuleFactory(), AnimatSim::Environment::OdorType::FindOdorSource(), AnimatSim::Simulator::FindOdorType(), AnimatSim::Simulator::FindOrganism(), AnimatSim::Environment::Structure::FindRigidBody(), AnimatSim::Simulator::FindStructure(), AnimatSim::Simulator::FindStructureFromAll(), AnimatSim::Recording::KeyFrame::GenerateID(), StdUtils::CStdXml::GetAttribBool(), StdUtils::CStdVariant::GetBool(), StdUtils::CStdXml::GetChildAttribBool(), StdUtils::CStdXml::GetChildBool(), RoboticsAnimatSim::Robotics::RobotInterfaces::RbLANWirelessInterface::GetDataPointer(), HybridInterfaceSim::Robotics::HiM110Actuator::GetDataPointer(), HybridInterfaceSim::Robotics::HiC884Controller::GetDataPointer(), HybridInterfaceSim::Robotics::HiSpike2::GetDataPointer(), FiringRateSim::Synapses::ModulatedSynapse::GetDataPointer(), AnimatSim::PidControl::GetDataPointer(), IntegrateFireSim::Synapses::Connexion::GetDataPointer(), FiringRateSim::Synapses::GatedSynapse::GetDataPointer(), VortexAnimatSim::Visualization::VsSimulationWindow::GetDataPointer(), RoboticsAnimatSim::Robotics::RobotIOControls::DynamixelUSB::RbDynamixelUSB::GetDataPointer(), OsgAnimatSim::Visualization::OsgSimulationWindow::GetDataPointer(), AnimatSim::ExternalStimuli::ExternalInputStimulus::GetDataPointer(), RoboticsAnimatSim::Robotics::RobotIOControls::Firmata::RbFirmataController::GetDataPointer(), AnimatSim::Robotics::RobotInterface::GetDataPointer(), VortexAnimatSim::ExternalStimuli::VsMotorVelocityStimulus::GetDataPointer(), AnimatSim::ExternalStimuli::VoltageClamp::GetDataPointer(), AnimatSim::ExternalStimuli::MotorStimulus::GetDataPointer(), AnimatSim::Robotics::PulsedLinkage::GetDataPointer(), AnimatSim::ExternalStimuli::InverseMuscleCurrent::GetDataPointer(), AnimatSim::Robotics::RemoteControl::GetDataPointer(), OsgAnimatSim::OsgSimulator::GetDataPointer(), AnimatSim::Behavior::ThreadedModule::GetDataPointer(), FiringRateSim::Neurons::PacemakerNeuron::GetDataPointer(), AnimatSim::Robotics::RobotPartInterface::GetDataPointer(), VortexAnimatSim::ExternalStimuli::VsForceStimulus::GetDataPointer(), AnimatSim::SimulationWindow::GetDataPointer(), AnimatSim::ExternalStimuli::ForceStimulus::GetDataPointer(), FiringRateSim::Synapses::Synapse::GetDataPointer(), AnimatSim::Robotics::RobotIOControl::GetDataPointer(), AnimatCarlSim::CsSpikingCurrentSynapse::GetDataPointer(), VortexAnimatSim::VsSimulator::GetDataPointer(), IntegrateFireSim::IonChannel::GetDataPointer(), AnimatSim::Robotics::RemoteControlLinkage::GetDataPointer(), AnimatSim::ExternalStimuli::CurrentStimulus::GetDataPointer(), AnimatSim::Behavior::NeuralModule::GetDataPointer(), AnimatSim::Environment::ConstraintLimit::GetDataPointer(), AnimatSim::Environment::Structure::GetDataPointer(), AnimatSim::Adapters::Adapter::GetDataPointer(), AnimatCarlSim::CsNeuronGroup::GetDataPointer(), FiringRateSim::Neurons::Neuron::GetDataPointer(), IntegrateFireSim::Neuron::GetDataPointer(), AnimatSim::Simulator::GetDataPointer(), AnimatSim::Environment::Joints::Prismatic::GetTargetDataTypeIndex(), AnimatSim::Environment::Joints::Hinge::GetTargetDataTypeIndex(), AnimatSim::Environment::RigidBody::GetTargetDataTypeIndex(), AnimatSim::AnimatBase::HasProperty(), AnimatSim::AnimatBase::ID(), AnimatSim::AnimatBase::Load(), AnimatSim::Robotics::RemoteControlLinkage::PropertyName(), AnimatSim::ActivatedItemMgr::Remove(), AnimatSim::Charting::DataChart::RemoveColumn(), AnimatSim::Environment::Materials::RemoveItem(), VortexAnimatSim::Visualization::VsScriptedSimulationWindow::RemoveItem(), OsgAnimatSim::Visualization::OsgScriptedSimulationWindow::RemoveItem(), AnimatSim::Adapters::ContactAdapter::RemoveItem(), AnimatSim::Environment::LightManager::RemoveItem(), AnimatSim::Behavior::PhysicsNeuralModule::RemoveItem(), AnimatSim::Robotics::RobotInterface::RemoveItem(), AnimatSim::Robotics::RemoteControl::RemoveItem(), AnimatSim::Environment::Organism::RemoveItem(), AnimatSim::Environment::ContactSensor::RemoveItem(), FiringRateSim::FiringRateModule::RemoveItem(), FiringRateSim::Synapses::Synapse::RemoveItem(), AnimatCarlSim::CsNeuralModule::RemoveItem(), AnimatSim::Robotics::RobotIOControl::RemoveItem(), AnimatSim::Charting::DataChart::RemoveItem(), IntegrateFireSim::IntegrateFireNeuralModule::RemoveItem(), OsgAnimatSim::Visualization::OsgLinearPath::RemoveItem(), VortexAnimatSim::Visualization::OsgLinearPath::RemoveItem(), AnimatSim::Environment::Structure::RemoveItem(), FiringRateSim::Neurons::Neuron::RemoveItem(), IntegrateFireSim::Neuron::RemoveItem(), AnimatSim::Environment::RigidBody::RemoveItem(), AnimatSim::Simulator::RemoveItem(), AnimatSim::Environment::Organism::RemoveRobotInterface(), RoboticsAnimatSim::Robotics::RobotInterfaces::RbLANWirelessInterface::SetData(), HybridInterfaceSim::Robotics::HiM110Actuator::SetData(), AnimatSim::Robotics::PassThroughLinkage::SetData(), VortexAnimatSim::Environment::VsConstraintRelaxation::SetData(), HybridInterfaceSim::Robotics::HiC884Controller::SetData(), AnimatSim::PidControl::SetData(), HybridInterfaceSim::Robotics::HiSpike2::SetData(), AnimatSim::ExternalStimuli::ExternalStimulus::SetData(), AnimatCarlSim::CsSynapseFull::SetData(), IntegrateFireSim::Synapses::ElectricalSynapse::SetData(), IntegrateFireSim::Synapses::Connexion::SetData(), FiringRateSim::Neurons::TonicNeuron::SetData(), AnimatSim::Link::SetData(), FiringRateSim::Synapses::GatedSynapse::SetData(), IntegrateFireSim::CaActivation::SetData(), FiringRateSim::Synapses::ModulateNeuronPropSynapse::SetData(), AnimatSim::ExternalStimuli::EnablerStimulus::SetData(), IntegrateFireSim::Synapses::NonSpikingChemicalSynapse::SetData(), AnimatCarlSim::CsNeuronDataColumn::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::DynamixelUSB::RbDynamixelUSB::SetData(), AnimatSim::Environment::OdorType::SetData(), AnimatCarlSim::CsSynapseIndividual::SetData(), VortexAnimatSim::Visualization::VsScriptedSimulationWindow::SetData(), OsgAnimatSim::Visualization::OsgScriptedSimulationWindow::SetData(), RoboticsAnimatSim::Environment::RbMaterialType::SetData(), AnimatSim::Environment::ConstraintRelaxation::SetData(), BulletAnimatSim::Environment::BlMaterialType::SetData(), AnimatSim::ExternalStimuli::ExternalInputStimulus::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::Firmata::RbFirmataController::SetData(), AnimatSim::Environment::Odor::SetData(), AnimatCarlSim::CsSpikeGeneratorGroup::SetData(), AnimatCarlSim::CsAdapter::SetData(), AnimatSim::Behavior::PhysicsNeuralModule::SetData(), AnimatSimPy::ScriptProcessorPy::SetData(), AnimatSim::Robotics::RobotInterface::SetData(), BulletAnimatSim::Environment::BlConstraintRelaxation::SetData(), FiringRateSim::Neurons::BistableNeuron::SetData(), AnimatSim::Environment::Organism::SetData(), VortexAnimatSim::ExternalStimuli::VsMotorVelocityStimulus::SetData(), AnimatSim::Environment::ConstraintFriction::SetData(), AnimatSim::ExternalStimuli::VoltageClamp::SetData(), AnimatSim::ExternalStimuli::MotorStimulus::SetData(), AnimatSim::Robotics::PulsedLinkage::SetData(), FiringRateSim::FiringRateModule::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::Firmata::RbFirmataHingeServo::SetData(), AnimatSim::Adapters::PropertyControlAdapter::SetData(), AnimatSim::ExternalStimuli::PropertyControlStimulus::SetData(), AnimatSim::Robotics::RemoteControl::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::RbAnimatSerial::SetData(), AnimatSim::Node::SetData(), OsgAnimatSim::Visualization::ControlPoint::SetData(), VortexAnimatSim::Visualization::ControlPoint::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::RbXBeeCommander::SetData(), FiringRateSim::Neurons::PacemakerNeuron::SetData(), AnimatSim::Robotics::RobotPartInterface::SetData(), IntegrateFireSim::Synapses::SpikingChemicalSynapse::SetData(), VortexAnimatSim::ExternalStimuli::VsForceStimulus::SetData(), AnimatSim::ExternalStimuli::ForceStimulus::SetData(), AnimatSim::SimulationWindow::SetData(), FiringRateSim::Neurons::RandomNeuron::SetData(), AnimatCarlSim::CsSynapseGroup::SetData(), FiringRateSim::Synapses::Synapse::SetData(), AnimatSim::Charting::DataColumn::SetData(), AnimatSim::Environment::Light::SetData(), AnimatCarlSim::CsNeuralModule::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::DynamixelUSB::RbDynamixelUSBServo::SetData(), AnimatSim::Robotics::RobotIOControl::SetData(), AnimatCarlSim::CsSpikingCurrentSynapse::SetData(), AnimatSim::ActivatedItem::SetData(), IntegrateFireSim::IonChannel::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::Firmata::RbFirmataDynamixelServo::SetData(), AnimatSim::Charting::DataChart::SetData(), AnimatSim::Robotics::RemoteControlLinkage::SetData(), AnimatSim::ExternalStimuli::CurrentStimulus::SetData(), VortexAnimatSim::Environment::VsMaterialType::SetData(), IntegrateFireSim::IntegrateFireNeuralModule::SetData(), OsgAnimatSim::Visualization::OsgLinearPath::SetData(), VortexAnimatSim::Visualization::OsgLinearPath::SetData(), AnimatSim::Environment::ConstraintLimit::SetData(), AnimatSim::Environment::Structure::SetData(), AnimatSim::Adapters::Adapter::SetData(), AnimatCarlSim::CsNeuronGroup::SetData(), FiringRateSim::Neurons::Neuron::SetData(), IntegrateFireSim::Neuron::SetData(), and AnimatSim::Simulator::SetData().
std::string StdUtils::Std_Combine | ( | CStdArray< std::string > & | aryParts, |
std::string | strDelimiter | ||
) |
Combines an array of strings into a single string.
[in,out] | aryParts | The array of string parts. |
strDelimiter | The string delimiter. |
Definition at line 874 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ConstToVariantType | ( | int | iType | ) |
Standard constant to variant type.
iType | The type. |
Definition at line 750 of file StdUtilFunctions.cpp.
Referenced by StdUtils::CStdVariant::Save(), StdUtils::CStdVariant::Trace(), and StdUtils::CStdVariant::VariantTypeName().
void StdUtils::Std_CopyBinarySection | ( | CStdArray< unsigned char > & | aryInData, |
long | lStartInBit, | ||
CStdArray< unsigned char > & | aryOutData, | ||
long | lStartOutBit, | ||
long | lBitLength | ||
) |
Copies a section of a byte array to a new position within the array.
[in,out] | aryInData | Input raw byte array. |
lStartInBit | The start bit to begin the copy. | |
[in,out] | aryOutData | Output raw byte array. |
lStartOutBit | The start bit of where to place the copy. | |
lBitLength | Bit length of the copy. |
Definition at line 2476 of file StdUtilFunctions.cpp.
References Std_GetBinarySection(), and Std_SetBinarySection().
std::string StdUtils::Std_CreateAppID | ( | ) |
Gets the standard create application identifier.
Definition at line 69 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::AnimatBase::AnimatBase().
bool StdUtils::Std_DirectoryExists | ( | std::string | strPath | ) |
Queries if a given directory exists.
strPath | Full pathname of the string file. |
Definition at line 3270 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::CreateSimulator().
double StdUtils::Std_DRand | ( | double | low, |
double | high | ||
) |
Generates a random number between two values.
low | The low value for the random number. |
high | The high value for the random number. |
Definition at line 1320 of file StdUtilFunctions.cpp.
Referenced by FiringRateSim::Neurons::RandomNeuron::HighCurrentOn(), FiringRateSim::Neurons::RandomNeuron::LowCurrentOn(), and StdUtils::CStdPostFixEval::Solve().
std::string StdUtils::Std_ExecutablePath | ( | ) |
Finds the name and path of the current executable.
Definition at line 3312 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::CreateSimulator().
bool StdUtils::Std_FileExists | ( | std::string | strFullPath | ) |
Finds if a given file exists.
strFullPath | Full pathname of the string full file. |
Definition at line 3285 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::CreateSimulator(), and AnimatSim::Simulator::LoadAnimatModuleName().
void StdUtils::Std_FlipBitInArray | ( | CStdArray< unsigned char > & | aryRawData, |
long | lBit | ||
) |
Flips a bit within a byte array.
[in,out] | aryRawData | Raw byte array. |
lBit | The bit to flip. |
Definition at line 2580 of file StdUtilFunctions.cpp.
References Std_GetBitFromArray(), and Std_SetBitInArray().
Referenced by Std_FlipBitRangeInArray().
void StdUtils::Std_FlipBitRangeInArray | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength | ||
) |
Flips all the bits within a section of a byte array.
[in,out] | aryRawData | Raw byte array. |
lStartBit | The start bit of the section to flip. | |
lBitLength | Bit length of the section. |
Definition at line 2598 of file StdUtilFunctions.cpp.
References Std_FlipBitInArray(), and Std_IsAboveMin().
float StdUtils::Std_FRand | ( | float | low, |
float | high | ||
) |
Generates a random number between two values.
low | The low value for the random number. |
high | The high value for the random number. |
Definition at line 1305 of file StdUtilFunctions.cpp.
Referenced by FiringRateSim::Neurons::Neuron::StepSimulation().
void StdUtils::Std_GetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
unsigned char & | cOut | ||
) |
Gets a section of bits from a byte array.
GetBinarySection Documentation Assume we have a byte array of ByteArray = "5A05AA58607AEA3A9F69F97A1B17139A8AC0735C" of hex values. The GetBinarySection functions retrieve sections of that byte array on BIT boundaries and not on byte boundaries. In other words you can tell it to get 10 bits starting at bit position 19 and return it to me as a 2 byte short. It works on the basic assumption that the right hand side of the binary data is the least significant bit. However, when you tell it the bit position where you want to start reading from the most signfigant bit is numbered 0. So lets setup some examples to show what it will return. The binray data shown below is the 5AA58 section, the first bit shown is number 12 and the last bit is 31. 12 19 31 | | | .... 0101 1010 1010 0101 1000 .... 5 A A 5 8 GetBinarySection(m_aryBinaryData, 12, 16, iOut); iOut = 0x5AA5 GetBinarySection(m_aryBinaryData, 19, 6, cOut); cOut = 0x14 GetBinarySection(m_aryBinaryData, 19, 10, iOut); iOut = 0x014B 0001 0100 1011 GetBinarySection(m_aryBinaryData, 19, 11, iOut); iOut = 0x0296 0010 1001 0110 when it starts filling in the returned value it starts at the end of the section it is retrieving and fills it in backwards so that the least signifigant value in the section is the least significant bit in the value. If the section is too small to completely fill the bytes of the variable then the remaining bits are set to zero.
[in,out] | aryRawData | Raw byte array. |
lStartBit | The start bit of the section we will retrieve. | |
lBitLength | Bit length of the section to retrieve. | |
[in,out] | cOut | The output section. |
Definition at line 2098 of file StdUtilFunctions.cpp.
References Std_InValidRange().
Referenced by Std_CopyBinarySection(), Std_GetBinarySection(), and Std_ReadBinaryData().
void StdUtils::Std_GetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
unsigned short & | iOut | ||
) |
Gets a section of bits from a byte array.
GetBinarySection Documentation Assume we have a byte array of ByteArray = "5A05AA58607AEA3A9F69F97A1B17139A8AC0735C" of hex values. The GetBinarySection functions retrieve sections of that byte array on BIT boundaries and not on byte boundaries. In other words you can tell it to get 10 bits starting at bit position 19 and return it to me as a 2 byte short. It works on the basic assumption that the right hand side of the binary data is the least significant bit. However, when you tell it the bit position where you want to start reading from the most signfigant bit is numbered 0. So lets setup some examples to show what it will return. The binray data shown below is the 5AA58 section, the first bit shown is number 12 and the last bit is 31. 12 19 31 | | | .... 0101 1010 1010 0101 1000 .... 5 A A 5 8 GetBinarySection(m_aryBinaryData, 12, 16, iOut); iOut = 0x5AA5 GetBinarySection(m_aryBinaryData, 19, 6, cOut); cOut = 0x14 GetBinarySection(m_aryBinaryData, 19, 10, iOut); iOut = 0x014B 0001 0100 1011 GetBinarySection(m_aryBinaryData, 19, 11, iOut); iOut = 0x0296 0010 1001 0110 when it starts filling in the returned value it starts at the end of the section it is retrieving and fills it in backwards so that the least signifigant value in the section is the least significant bit in the value. If the section is too small to completely fill the bytes of the variable then the remaining bits are set to zero.
[in,out] | aryRawData | Raw byte array. |
lStartBit | The start bit of the section we will retrieve. | |
lBitLength | Bit length of the section to retrieve. | |
[in,out] | iOut | The output section. |
Definition at line 2143 of file StdUtilFunctions.cpp.
References Std_GetBinarySection(), and Std_InValidRange().
void StdUtils::Std_GetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
unsigned long & | lOut | ||
) |
Gets a section of bits from a byte array.
GetBinarySection Documentation Assume we have a byte array of ByteArray = "5A05AA58607AEA3A9F69F97A1B17139A8AC0735C" of hex values. The GetBinarySection functions retrieve sections of that byte array on BIT boundaries and not on byte boundaries. In other words you can tell it to get 10 bits starting at bit position 19 and return it to me as a 2 byte short. It works on the basic assumption that the right hand side of the binary data is the least significant bit. However, when you tell it the bit position where you want to start reading from the most signfigant bit is numbered 0. So lets setup some examples to show what it will return. The binray data shown below is the 5AA58 section, the first bit shown is number 12 and the last bit is 31. 12 19 31 | | | .... 0101 1010 1010 0101 1000 .... 5 A A 5 8 GetBinarySection(m_aryBinaryData, 12, 16, iOut); iOut = 0x5AA5 GetBinarySection(m_aryBinaryData, 19, 6, cOut); cOut = 0x14 GetBinarySection(m_aryBinaryData, 19, 10, iOut); iOut = 0x014B 0001 0100 1011 GetBinarySection(m_aryBinaryData, 19, 11, iOut); iOut = 0x0296 0010 1001 0110 when it starts filling in the returned value it starts at the end of the section it is retrieving and fills it in backwards so that the least signifigant value in the section is the least significant bit in the value. If the section is too small to completely fill the bytes of the variable then the remaining bits are set to zero.
[in,out] | aryRawData | Raw byte array. |
lStartBit | The start bit of the section we will retrieve. | |
lBitLength | Bit length of the section to retrieve. | |
[in,out] | lOut | The output section. |
Definition at line 2196 of file StdUtilFunctions.cpp.
References Std_GetBinarySection(), and Std_InValidRange().
void StdUtils::Std_GetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
CStdArray< unsigned char > & | aryOutData | ||
) |
Gets a section of bits from a byte array.
GetBinarySection Documentation Assume we have a byte array of ByteArray = "5A05AA58607AEA3A9F69F97A1B17139A8AC0735C" of hex values. The GetBinarySection functions retrieve sections of that byte array on BIT boundaries and not on byte boundaries. In other words you can tell it to get 10 bits starting at bit position 19 and return it to me as a 2 byte short. It works on the basic assumption that the right hand side of the binary data is the least significant bit. However, when you tell it the bit position where you want to start reading from the most signfigant bit is numbered 0. So lets setup some examples to show what it will return. The binray data shown below is the 5AA58 section, the first bit shown is number 12 and the last bit is 31. 12 19 31 | | | .... 0101 1010 1010 0101 1000 .... 5 A A 5 8 GetBinarySection(m_aryBinaryData, 12, 16, iOut); iOut = 0x5AA5 GetBinarySection(m_aryBinaryData, 19, 6, cOut); cOut = 0x14 GetBinarySection(m_aryBinaryData, 19, 10, iOut); iOut = 0x014B 0001 0100 1011 GetBinarySection(m_aryBinaryData, 19, 11, iOut); iOut = 0x0296 0010 1001 0110 when it starts filling in the returned value it starts at the end of the section it is retrieving and fills it in backwards so that the least signifigant value in the section is the least significant bit in the value. If the section is too small to completely fill the bytes of the variable then the remaining bits are set to zero.
[in,out] | aryRawData | Raw byte array. |
lStartBit | The start bit of the section we will retrieve. | |
lBitLength | Bit length of the section to retrieve. | |
[in,out] | aryOutData | The output section. |
Definition at line 2249 of file StdUtilFunctions.cpp.
References Std_GetByteFromArray(), and Std_InValidRange().
bool StdUtils::Std_GetBitFromArray | ( | CStdArray< unsigned char > & | aryRawData, |
long | lBit | ||
) |
Gets a single bit from a byte array.
[in,out] | aryRawData | The raw byte array. |
lBit | The bit to retrieve. |
Definition at line 2320 of file StdUtilFunctions.cpp.
Referenced by Std_FlipBitInArray(), and Std_GetByteFromArray().
long StdUtils::Std_GetBitSize | ( | CStdArray< unsigned char > & | aryRawData | ) |
Gets the number of bits in a byte array.
[in,out] | aryRawData | Raw byte array. |
Definition at line 2061 of file StdUtilFunctions.cpp.
unsigned char StdUtils::Std_GetByteFromArray | ( | CStdArray< unsigned char > & | aryRawData, |
long | lEndBit, | ||
long | lBitsNeeded | ||
) |
Gets a single byte from a byte array.
[in,out] | aryRawData | The raw byte array. |
lEndBit | The end bit. | |
lBitsNeeded | The number of bits to retrieve. |
Definition at line 2291 of file StdUtilFunctions.cpp.
References Std_GetBitFromArray(), and Std_InValidRange().
Referenced by Std_GetBinarySection().
std::string StdUtils::Std_GetLogFilePrefix | ( | ) |
Gets the log file prefix.
Definition at line 3066 of file StdUtilFunctions.cpp.
unsigned long StdUtils::Std_GetTick | ( | ) |
Gets the time tick.
Definition at line 3179 of file StdUtilFunctions.cpp.
int StdUtils::Std_GetTraceLevel | ( | ) |
Gets the trace level.
Definition at line 3016 of file StdUtilFunctions.cpp.
unsigned char StdUtils::Std_GreyCodeToBinary | ( | unsigned char | cVal | ) |
Converts a grey code to a binary value.
cVal | The grey code value. |
Definition at line 2868 of file StdUtilFunctions.cpp.
References bit_get(), and bit_put().
unsigned short StdUtils::Std_GreyCodeToBinary | ( | unsigned short | iVal | ) |
Converts a grey code to a binary value.
iVal | The grey code value. |
Definition at line 2898 of file StdUtilFunctions.cpp.
References bit_get(), and bit_put().
unsigned long StdUtils::Std_GreyCodeToBinary | ( | unsigned long | lVal | ) |
Converts a grey code to a binary value.
lVal | The grey code value. |
Definition at line 2929 of file StdUtilFunctions.cpp.
References bit_get(), and bit_put().
unsigned char StdUtils::Std_HexCharToByte | ( | char | cVal | ) |
Converts a hexidecimal number to a byte.
cVal | The value. |
Definition at line 2033 of file StdUtilFunctions.cpp.
Referenced by Std_HexStringToByteArray(), and Std_HexToByte().
void StdUtils::Std_HexStringToByteArray | ( | std::string | strHex, |
CStdArray< unsigned char > & | aryBytes | ||
) |
Converts a hex string to a byte array.
strHex | The hexadecimal string. | |
[in,out] | aryBytes | The array of bytes. |
Definition at line 1943 of file StdUtilFunctions.cpp.
References Std_HexCharToByte().
unsigned char * StdUtils::Std_HexStringToByteArray | ( | std::string | strHex, |
long & | lArraySize | ||
) |
Converts a hex string to a byte array.
strHex | The hexadecimal string. | |
[in,out] | lArraySize | Size of the array. |
Definition at line 1975 of file StdUtilFunctions.cpp.
References Std_HexCharToByte().
unsigned char StdUtils::Std_HexToByte | ( | std::string | strVal | ) |
Converts a hexidecimal number to a byte.
strVal | The string value. |
Definition at line 2008 of file StdUtilFunctions.cpp.
References Std_HexCharToByte(), Std_Left(), Std_Right(), and Std_ToUpper().
bool StdUtils::Std_InValidRange | ( | int | iMinVal, |
int | iMaxVal, | ||
int | iVal, | ||
bool | bThrowError, | ||
std::string | strParamName | ||
) |
Tests whether a number is within a valid range.
iMinVal | The minimum value. |
iMaxVal | The maximum value. |
iVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
Definition at line 1337 of file StdUtilFunctions.cpp.
Referenced by StdUtils::CStdColor::a(), AnimatSim::Environment::MovableItem::Alpha(), AnimatSim::Environment::RigidBody::AngularVelocityDamping(), AnimatSim::Charting::DataColumn::AppendSpaces(), StdUtils::CStdColor::b(), AnimatSim::Environment::Bodies::LinearHillMuscle::B(), AnimatSim::Environment::MovableItem::CollisionsAlpha(), AnimatSim::Environment::RigidBody::FoodEnergyContent(), AnimatSim::Environment::RigidBody::FoodQuantity(), AnimatSim::Environment::RigidBody::FoodReplenishRate(), StdUtils::CStdColor::g(), AnimatSim::Environment::ContactSensor::GetReceptiveField(), AnimatSim::Environment::MovableItem::GraphicsAlpha(), AnimatSim::Environment::Bodies::LinearHillStretchReceptor::IaDischargeConstant(), AnimatSim::Environment::Bodies::LinearHillMuscle::IbDischargeConstant(), AnimatSim::Environment::Bodies::LinearHillStretchReceptor::IIDischargeConstant(), AnimatSim::Environment::MovableItem::JointsAlpha(), AnimatSim::Environment::Bodies::LinearHillMuscle::Kpe(), AnimatSim::Environment::Bodies::LinearHillMuscle::Kse(), AnimatSim::Environment::RigidBody::LinearVelocityDamping(), StdUtils::CStdFont::Load(), IntegrateFireSim::IntegrateFireNeuralModule::LoadInternal(), AnimatSim::Environment::RigidBody::MaxFoodQuantity(), AnimatSim::Gains::LengthTensionGain::MinPeLengthPercentage(), AnimatSim::Gains::LengthTensionGain::PeLengthPercentage(), StdUtils::CStdColor::r(), AnimatSim::Environment::MovableItem::ReceptiveFieldsAlpha(), FiringRateSim::Neurons::Neuron::RelativeAccommodation(), RoboticsAnimatSim::Environment::RbMaterialType::Restitution(), BulletAnimatSim::Environment::BlMaterialType::Restitution(), VortexAnimatSim::Environment::VsMaterialType::Restitution(), AnimatSim::Environment::MovableItem::Shininess(), AnimatSim::Environment::MovableItem::SimulationAlpha(), Std_GetBinarySection(), Std_GetByteFromArray(), Std_LoadColor(), Std_LoadRGB(), Std_ReadBinaryData(), Std_SetBinarySection(), and Std_SetByteInArray().
bool StdUtils::Std_InValidRange | ( | long | lMinVal, |
long | lMaxVal, | ||
long | lVal, | ||
bool | bThrowError, | ||
std::string | strParamName | ||
) |
Standard in valid range.
lMinVal | The minimum value. |
lMaxVal | The maximum value. |
lVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
Definition at line 1376 of file StdUtilFunctions.cpp.
bool StdUtils::Std_InValidRange | ( | float | fltMinVal, |
float | fltMaxVal, | ||
float | fltVal, | ||
bool | bThrowError, | ||
std::string | strParamName | ||
) |
Standard in valid range.
fltMinVal | The minimum value. |
fltMaxVal | The maximum value. |
fltVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
Definition at line 1415 of file StdUtilFunctions.cpp.
bool StdUtils::Std_InValidRange | ( | double | dblMinVal, |
double | dblMaxVal, | ||
double | dblVal, | ||
bool | bThrowError, | ||
std::string | strParamName | ||
) |
Standard in valid range.
dblMinVal | The double minimum value. |
dblMaxVal | The double maximum value. |
dblVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
Definition at line 1454 of file StdUtilFunctions.cpp.
int StdUtils::Std_IRand | ( | int | low, |
int | high | ||
) |
Generates a random number between two values.
low | The low value for the random number. |
high | The high value for the random number. |
Definition at line 1269 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::GenerateAutoSeed(), and FiringRateSim::Neurons::RandomNeuron::RandomNeuron().
bool StdUtils::Std_IsAboveMin | ( | int | iMinVal, |
int | iVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is above a minimum value.
iMinVal | The minimum value. |
iVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1645 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::AngularCompliance(), AnimatSim::Simulator::AngularDamping(), AnimatSim::Simulator::AngularKineticLoss(), AnimatSim::Environment::MotorizedJoint::AssistCountdown(), AnimatSim::Environment::Bodies::Stomach::BaseConsumptionRate(), AnimatSim::Environment::RigidBody::BuoyancyScale(), AnimatSim::ExternalStimuli::CurrentStimulus::BurstOffDuration(), AnimatSim::ExternalStimuli::CurrentStimulus::BurstOnDuration(), FiringRateSim::Neurons::Neuron::Cn(), AnimatSim::Environment::ConstraintFriction::Coefficient(), AnimatSim::Charting::DataChart::CollectInterval(), AnimatSim::Charting::DataColumn::ColumnIndex(), VortexAnimatSim::Environment::VsMaterialType::Compliance(), AnimatSim::Environment::Bodies::Stomach::ConsumptionRate(), AnimatSim::ExternalStimuli::CurrentStimulus::CycleOffDuration(), AnimatSim::ExternalStimuli::CurrentStimulus::CycleOnDuration(), AnimatSim::Environment::ConstraintRelaxation::Damping(), BulletAnimatSim::Environment::BlConstraintRelaxation::Damping(), AnimatSim::Environment::ConstraintLimit::Damping(), VortexAnimatSim::Environment::VsMaterialType::Damping(), AnimatSim::Environment::Bodies::Spring::Damping(), AnimatSim::Adapters::Adapter::DelayBufferInterval(), FiringRateSim::Synapses::Synapse::DelayInterval(), AnimatSim::Environment::RigidBody::Density(), AnimatSim::Simulator::DesiredFrameRate(), AnimatSim::Environment::OdorType::DiffusionConstant(), AnimatSim::Simulator::EndSimTime(), AnimatSim::Simulator::EndSimTimeSlice(), BulletAnimatSim::Environment::BlConstraintRelaxation::EqPos(), IntegrateFireSim::Synapses::SpikingChemicalSynapse::FacilitationDecay(), FiringRateSim::Neurons::Neuron::Fmin(), VortexAnimatSim::Environment::VsMaterialType::FrictionAngularNormal(), VortexAnimatSim::Environment::VsMaterialType::FrictionAngularNormalMax(), RoboticsAnimatSim::Environment::RbMaterialType::FrictionAngularPrimary(), BulletAnimatSim::Environment::BlMaterialType::FrictionAngularPrimary(), VortexAnimatSim::Environment::VsMaterialType::FrictionAngularPrimary(), VortexAnimatSim::Environment::VsMaterialType::FrictionAngularPrimaryMax(), VortexAnimatSim::Environment::VsMaterialType::FrictionAngularSecondary(), VortexAnimatSim::Environment::VsMaterialType::FrictionAngularSecondaryMax(), BulletAnimatSim::Environment::BlMaterialType::FrictionLinearPrimary(), RoboticsAnimatSim::Environment::RbMaterialType::FrictionLinearPrimary(), VortexAnimatSim::Environment::VsMaterialType::FrictionLinearPrimary(), VortexAnimatSim::Environment::VsMaterialType::FrictionLinearPrimaryMax(), VortexAnimatSim::Environment::VsMaterialType::FrictionLinearSecondary(), VortexAnimatSim::Environment::VsMaterialType::FrictionLinearSecondaryMax(), FiringRateSim::Neurons::Neuron::Gain(), AnimatSim::Recording::KeyFrame::GenerateID(), FiringRateSim::Neurons::Neuron::Gn(), AnimatSim::Environment::Bodies::Cylinder::Height(), AnimatSim::Environment::Bodies::Cone::Height(), AnimatSim::Environment::Bodies::Box::Height(), AnimatSim::Environment::Bodies::Box::HeightSections(), AnimatSim::Adapters::Adapter::InitIODisableDuration(), AnimatSim::Environment::Bodies::Torus::InsideRadius(), AnimatSim::Environment::Bodies::Sphere::LatitudeSegments(), AnimatSim::Environment::Light::LatitudeSegments(), AnimatSim::Environment::Bodies::Ellipsoid::LatSegments(), AnimatSim::Environment::Bodies::Box::Length(), AnimatSim::Environment::Bodies::Box::LengthSections(), AnimatSim::Environment::Bodies::Plane::LengthSegments(), AnimatSim::Environment::Light::LightNumber(), AnimatSim::Simulator::LinearCompliance(), AnimatSim::Simulator::LinearDamping(), AnimatSim::Simulator::LinearKineticLoss(), AnimatSim::Environment::Bodies::Ellipsoid::LongSegments(), AnimatSim::Environment::Bodies::Sphere::LongtitudeSegments(), AnimatSim::Environment::Light::LongtitudeSegments(), VortexAnimatSim::Environment::VsConstraintRelaxation::Loss(), AnimatSim::Environment::ConstraintFriction::Loss(), AnimatSim::Gains::Gain::LowerLimit(), AnimatSim::Environment::Bodies::Cone::LowerRadius(), AnimatSim::Environment::RigidBody::Magnus(), AnimatSim::Environment::Bodies::Ellipsoid::MajorRadius(), AnimatSim::Environment::Bodies::Stomach::MaxEnergyLevel(), AnimatSim::Environment::ConstraintFriction::MaxForce(), AnimatSim::Environment::MotorizedJoint::MaxForce(), AnimatSim::Environment::RigidBody::MaxHydroForce(), AnimatSim::Environment::RigidBody::MaxHydroTorque(), AnimatSim::Environment::Bodies::MuscleBase::MaxTension(), AnimatSim::Environment::MotorizedJoint::MaxVelocity(), AnimatSim::Environment::Bodies::Mouth::MinFoodRadius(), AnimatSim::Environment::Bodies::Ellipsoid::MinorRadius(), AnimatSim::Simulator::MouseSpringDamping(), AnimatSim::Simulator::MouseSpringStiffness(), AnimatSim::Environment::Bodies::Spring::NaturalLength(), AnimatSim::Environment::Bodies::Torus::OutsideRadius(), AnimatSim::Simulator::PhysicsStepInterval(), AnimatSim::Simulator::PhysicsSubsteps(), AnimatSim::Robotics::RobotInterface::PhysicsTimeStep(), AnimatSim::Simulator::PhysicsTimeStep(), AnimatSim::Environment::Odor::Quantity(), AnimatSim::Environment::Bodies::Cylinder::Radius(), AnimatSim::Environment::Bodies::Sphere::Radius(), AnimatSim::Environment::Bodies::Sensor::Radius(), AnimatSim::Environment::Light::Radius(), AnimatSim::Environment::ConstraintLimit::Restitution(), AnimatSim::Environment::Bodies::Torus::Rings(), AnimatSim::Adapters::Adapter::RobotIOScale(), AnimatSim::Charting::DataColumn::RowIndex(), AnimatSim::Environment::MotorizedJoint::ServoGain(), AnimatSim::Environment::Bodies::Cylinder::Sides(), AnimatSim::Environment::Bodies::Torus::Sides(), AnimatSim::Environment::Bodies::Cone::Sides(), AnimatSim::Environment::Joint::Size(), AnimatSim::Environment::Structure::Size(), VortexAnimatSim::Environment::VsMaterialType::SlideAngularNormal(), VortexAnimatSim::Environment::VsMaterialType::SlideAngularPrimary(), VortexAnimatSim::Environment::VsMaterialType::SlideAngularSecondary(), VortexAnimatSim::Environment::VsMaterialType::SlideLinearPrimary(), VortexAnimatSim::Environment::VsMaterialType::SlideLinearSecondary(), VortexAnimatSim::Environment::VsMaterialType::SlipAngularNormal(), VortexAnimatSim::Environment::VsMaterialType::SlipAngularPrimary(), VortexAnimatSim::Environment::VsMaterialType::SlipAngularSecondary(), VortexAnimatSim::Environment::VsMaterialType::SlipLinearPrimary(), VortexAnimatSim::Environment::VsMaterialType::SlipLinearSecondary(), AnimatSim::Environment::ConstraintFriction::StaticFrictionScale(), Std_FlipBitRangeInArray(), Std_SetBitRangeInArray(), AnimatSim::ActivatedItem::StepInterval(), AnimatSim::Environment::ConstraintRelaxation::Stiffness(), AnimatSim::Environment::Bodies::Spring::Stiffness(), AnimatSim::Environment::ConstraintLimit::Stiffness(), AnimatSim::Environment::BodyPart::SynchUpdateInterval(), AnimatSim::Adapters::Adapter::SynchUpdateInterval(), AnimatSim::Adapters::Adapter::SynchUpdateStartInterval(), AnimatSim::Environment::MotorizedJoint::Temperature(), AnimatSim::Behavior::NeuralModule::TimeStep(), AnimatSim::Behavior::NeuralModule::TimeStepInterval(), RoboticsAnimatSim::Robotics::RobotIOControls::RbDynamixelServo::TranslationRange(), AnimatSim::Gains::Gain::UpperLimit(), AnimatSim::Environment::Bodies::Cone::UpperRadius(), AnimatSim::Environment::Bodies::Box::Width(), AnimatSim::Environment::Bodies::Box::WidthSections(), and AnimatSim::Environment::Bodies::Plane::WidthSegments().
bool StdUtils::Std_IsAboveMin | ( | long | lMinVal, |
long | lVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is above a minimum value.
lMinVal | The minimum value. |
lVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1683 of file StdUtilFunctions.cpp.
bool StdUtils::Std_IsAboveMin | ( | float | fltMinVal, |
float | fltVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is above a minimum value.
fltMinVal | The flt minimum value. |
fltVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1721 of file StdUtilFunctions.cpp.
bool StdUtils::Std_IsAboveMin | ( | double | dblMinVal, |
double | dblVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is above a minimum value.
dblMinVal | The double minimum value. |
dblVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1759 of file StdUtilFunctions.cpp.
bool StdUtils::Std_IsBelowMax | ( | int | iMaxVal, |
int | iVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is below a maximum value.
iMaxVal | The maximum value. |
iVal | The test value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1493 of file StdUtilFunctions.cpp.
bool StdUtils::Std_IsBelowMax | ( | long | lMaxVal, |
long | lVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is below a maximum value.
lMaxVal | The maximum value. |
lVal | The value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1531 of file StdUtilFunctions.cpp.
bool StdUtils::Std_IsBelowMax | ( | float | fltMaxVal, |
float | fltVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is below a maximum value.
fltMaxVal | The flt maximum value. |
fltVal | The flt value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1569 of file StdUtilFunctions.cpp.
bool StdUtils::Std_IsBelowMax | ( | double | dblMaxVal, |
double | dblVal, | ||
bool | bThrowError, | ||
std::string | strParamName, | ||
bool | bInclusiveLimit | ||
) |
Tests if a number is below a maximum value.
dblMaxVal | The double maximum value. |
dblVal | The double value. |
bThrowError | true to throw error if outside of range. |
strParamName | Name of the parameter. |
bInclusiveLimit | true for inclusive limit. |
Definition at line 1607 of file StdUtilFunctions.cpp.
bool StdUtils::Std_IsBlank | ( | std::string | strVal | ) |
Trims a string and tests if a string is blank.
strVal | The string value. |
Definition at line 1810 of file StdUtilFunctions.cpp.
References Std_Trim().
Referenced by AnimatSim::Simulator::CreateSimulator(), AnimatSim::ExternalStimuli::CurrentStimulus::CurrentEquation(), AnimatSim::Charting::DataColumn::DataType(), AnimatCarlSim::CsFiringRateStimulus::Equation(), StdUtils::CStdXml::GetAttribBool(), StdUtils::CStdXml::GetAttribDouble(), StdUtils::CStdXml::GetAttribFloat(), StdUtils::CStdXml::GetAttribInt(), StdUtils::CStdXml::GetAttribLong(), StdUtils::CStdXml::GetAttribString(), StdUtils::CStdXml::GetChildAttribBool(), StdUtils::CStdXml::GetChildAttribDouble(), StdUtils::CStdXml::GetChildAttribFloat(), StdUtils::CStdXml::GetChildAttribInt(), StdUtils::CStdXml::GetChildAttribLong(), StdUtils::CStdXml::GetChildAttribString(), AnimatSim::AnimatBase::ID(), FiringRateSim::Synapses::ModulateNeuronPropSynapse::Initialize(), AnimatSim::ExternalStimuli::InverseMuscleCurrent::Initialize(), RoboticsAnimatSim::Robotics::RobotIOControls::RbAnimatSerial::Initialize(), RoboticsAnimatSim::Robotics::RobotIOControls::RbXBeeCommander::Initialize(), AnimatSim::Robotics::RobotPartInterface::Initialize(), AnimatSim::Robotics::RemoteControlLinkage::Initialize(), OsgAnimatSim::Visualization::OsgLinearPath::Initialize(), VortexAnimatSim::Visualization::OsgLinearPath::Initialize(), StdUtils::CStdXml::Load(), AnimatSim::SimulationWindow::Load(), AnimatSim::Charting::DataChart::Load(), AnimatSim::AnimatBase::Load(), AnimatSim::Simulator::Load(), AnimatSim::Charting::DataChartMgr::LoadDataChart(), StdUtils::IStdClassFactory::LoadModule(), AnimatSim::SimulationWindow::LookAtStructureID(), AnimatSim::Simulator::MoveSimulationToKeyFrame(), AnimatSim::Charting::DataColumn::Name(), AnimatSim::Charting::FileChart::OutputFilename(), FiringRateSim::Synapses::ModulateNeuronPropSynapse::PropertyName(), AnimatSim::ExternalStimuli::PropertyControlStimulus::PropertyName(), AnimatSim::Adapters::PropertyControlAdapter::PropertyName(), StdUtils::CStdXml::Save(), AnimatSim::Environment::Bodies::OdorSensor::SetOdorTypePointer(), AnimatSim::Environment::Bodies::Mouth::SetStomachPointer(), VortexAnimatSim::Visualization::VsSimulationWindow::SetupTrackCamera(), OsgAnimatSim::Visualization::OsgSimulationWindow::SetupTrackCamera(), AnimatSim::Adapters::ContactAdapter::SourceBodyID(), AnimatSim::Adapters::Adapter::SourceDataType(), AnimatSim::Adapters::Adapter::SourceID(), AnimatSim::Adapters::Adapter::SourceModule(), Std_Split(), AnimatSim::ExternalStimuli::PropertyControlStimulus::TargetID(), AnimatSim::Charting::DataColumn::TargetID(), AnimatSim::Adapters::Adapter::TargetID(), AnimatSim::Adapters::ContactAdapter::TargetModule(), AnimatSim::Adapters::Adapter::TargetModule(), AnimatSim::ExternalStimuli::EnablerStimulus::TargetNodeID(), AnimatSim::ExternalStimuli::ExternalInputStimulus::TargetNodeID(), AnimatSim::ExternalStimuli::VoltageClamp::TargetNodeID(), AnimatCarlSim::CsFiringRateStimulus::TargetNodeID(), and AnimatSim::ExternalStimuli::CurrentStimulus::TargetNodeID().
bool StdUtils::Std_IsFullPath | ( | std::string | strPath | ) |
determines if this is a full path name.
It does this by checking to see if the : is present in the string.
strPath | filename. |
Definition at line 3218 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::CreateSimulator().
bool StdUtils::Std_IsIntegerType | ( | std::string | strVal | ) |
Tests if this string is an integer.
strVal | The string value. |
Definition at line 986 of file StdUtilFunctions.cpp.
Referenced by StdUtils::CStdXml::GetAttribInt(), StdUtils::CStdXml::GetAttribLong(), StdUtils::CStdXml::GetChildAttribInt(), StdUtils::CStdXml::GetChildAttribLong(), StdUtils::CStdXml::GetChildInt(), and StdUtils::CStdXml::GetChildLong().
bool StdUtils::Std_IsNumeric | ( | std::string | strVal | ) |
Tests if this string is a number.
strVal | The string value. |
Definition at line 967 of file StdUtilFunctions.cpp.
Referenced by StdUtils::CStdXml::GetAttribDouble(), StdUtils::CStdXml::GetAttribFloat(), StdUtils::CStdXml::GetAttribInt(), StdUtils::CStdXml::GetAttribLong(), StdUtils::CStdXml::GetChildAttribDouble(), StdUtils::CStdXml::GetChildAttribFloat(), StdUtils::CStdXml::GetChildAttribInt(), StdUtils::CStdXml::GetChildAttribLong(), StdUtils::CStdXml::GetChildDouble(), StdUtils::CStdXml::GetChildFloat(), StdUtils::CStdXml::GetChildInt(), and StdUtils::CStdXml::GetChildLong().
std::string StdUtils::Std_Left | ( | std::string | strVal, |
int | iCount | ||
) |
Gets the left portion of a substring.
strVal | The string value. |
iCount | Number of characters to the left to get. |
Definition at line 1006 of file StdUtilFunctions.cpp.
Referenced by Std_HexToByte().
void StdUtils::Std_LoadColor | ( | CStdXml & | oXml, |
std::string | strParamName, | ||
float * | aryColor, | ||
bool | bThrowError | ||
) |
Loads a color.
[in,out] | oXml | The xml to load. |
strParamName | Name of the xml parameter. | |
[in,out] | aryColor | Color array. |
bThrowError | true to throw error if there is a problem. |
Definition at line 1150 of file StdUtilFunctions.cpp.
References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribFloat(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and Std_InValidRange().
Referenced by Std_LoadColor().
void StdUtils::Std_LoadColor | ( | std::string | strXml, |
std::string | strParamName, | ||
float * | aryColor, | ||
bool | bThrowError | ||
) |
Loads a color.
strXml | The string xml. | |
strParamName | Name of the string parameter. | |
[in,out] | aryColor | If non-null, the ary color. |
bThrowError | true to throw error. |
Definition at line 1189 of file StdUtilFunctions.cpp.
References StdUtils::CStdXml::Deserialize(), StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::FindElement(), and Std_LoadColor().
bool StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdIPoint & | oPoint, | ||
bool | bThrowError | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
strName | Name of the xml element. | |
[in,out] | oPoint | The point to load. |
bThrowError | true to throw error if there is a problem. |
Definition at line 256 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribInt(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
Referenced by AnimatSim::Environment::RigidBody::AngularDrag(), AnimatSim::Environment::RigidBody::BuoyancyCenter(), AnimatSim::Environment::RigidBody::CenterOfMass(), VortexAnimatSim::Visualization::VsScriptedSimulationWindow::DefaultPosition(), OsgAnimatSim::Visualization::OsgScriptedSimulationWindow::DefaultPosition(), AnimatSim::Environment::RigidBody::LinearDrag(), OsgAnimatSim::Visualization::ControlPoint::Load(), VortexAnimatSim::Visualization::ControlPoint::Load(), StdUtils::CStdLookupTable::Load(), AnimatSim::Environment::MovableItem::LoadPosition(), AnimatSim::Environment::RigidBody::LoadPosition(), AnimatSim::Environment::MovableItem::LoadRotation(), OsgAnimatSim::Visualization::ControlPoint::Position(), VortexAnimatSim::Visualization::ControlPoint::Position(), AnimatSim::Environment::MovableItem::Position(), AnimatSim::Environment::MovableItem::Rotation(), AnimatSim::Environment::Bodies::Mesh::Scale(), and AnimatSim::Environment::Bodies::FluidPlane::Velocity().
bool StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdLPoint & | oPoint, | ||
bool | bThrowError | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
strName | Name of the xml element. | |
[in,out] | oPoint | The point to load. |
bThrowError | true to throw error if there is a problem. |
Definition at line 286 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribLong(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
bool StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdFPoint & | oPoint, | ||
bool | bThrowError | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
strName | Name of the xml element. | |
[in,out] | oPoint | The point to load. |
bThrowError | true to throw error if there is a problem. |
Definition at line 316 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribFloat(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
bool StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdDPoint & | oPoint, | ||
bool | bThrowError | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
strName | Name of the xml element. | |
[in,out] | oPoint | The point to load. |
bThrowError | true to throw error if there is a problem. |
Definition at line 346 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribDouble(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
void StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
int | iIndex, | ||
CStdIPoint & | oPoint | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
iIndex | Zero-based index of the child element to load. | |
[in,out] | oPoint | The point to load. |
Definition at line 372 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildByIndex(), StdUtils::CStdXml::GetAttribInt(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
void StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
int | iIndex, | ||
CStdLPoint & | oPoint | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
iIndex | Zero-based index of the child element to load. | |
[in,out] | oPoint | The point to load. |
Definition at line 393 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildByIndex(), StdUtils::CStdXml::GetAttribLong(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
void StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
int | iIndex, | ||
CStdFPoint & | oPoint | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
iIndex | Zero-based index of the child element to load. | |
[in,out] | oPoint | The point to load. |
Definition at line 414 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildByIndex(), StdUtils::CStdXml::GetAttribFloat(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
void StdUtils::Std_LoadPoint | ( | CStdXml & | oXml, |
int | iIndex, | ||
CStdDPoint & | oPoint | ||
) |
Standard load point.
[in,out] | oXml | The xml to load. |
iIndex | Zero-based index of the child element to load. | |
[in,out] | oPoint | The point to load. |
Definition at line 434 of file StdSerialize.cpp.
References StdUtils::CStdXml::FindChildByIndex(), StdUtils::CStdXml::GetAttribDouble(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().
long StdUtils::Std_LoadRGB | ( | CStdXml & | oXml, |
std::string | strParamName, | ||
bool | bThrowError, | ||
long | lDefault | ||
) |
Loads a color.
[in,out] | oXml | The xml to load. |
strParamName | Name of the xml parameter. | |
bThrowError | true to throw error if there is a problem. | |
lDefault | The default color value. |
Definition at line 1115 of file StdUtilFunctions.cpp.
References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetChildAttribInt(), Std_InValidRange(), and Std_RGB().
void StdUtils::Std_LogMsg | ( | const int | iLevel, |
std::string | strMessage, | ||
std::string | strSourceFile, | ||
int | iSourceLine, | ||
bool | bPrintHeader | ||
) |
Logs a message,.
iLevel | The log level. |
strMessage | Log message. |
strSourceFile | The string source file. |
iSourceLine | Source line number. |
bPrintHeader | true to print header. |
Definition at line 3104 of file StdUtilFunctions.cpp.
long StdUtils::Std_LRand | ( | long | low, |
long | high | ||
) |
Generates a random number between two values.
low | The low value for the random number. |
high | The high value for the random number. |
Definition at line 1287 of file StdUtilFunctions.cpp.
Referenced by IntegrateFireSim::Neuron::CalcUpdate(), and IntegrateFireSim::Neuron::PreCalc().
std::string StdUtils::Std_NullStr | ( | std::string | strFormat | ) |
If string is blank it uses NULL instead.
strFormat | The string format. |
Definition at line 634 of file StdUtilFunctions.cpp.
bool StdUtils::Std_ReadBinaryData | ( | CStdArray< unsigned char > & | aryBinaryData, |
long | lLastBit, | ||
long & | lStartBit, | ||
long | lBitLength, | ||
unsigned char & | cOut | ||
) |
Reads binary data from a byte array.
[in,out] | aryBinaryData | Raw byte array. |
lLastBit | The last bit. | |
[in,out] | lStartBit | The start bit. |
lBitLength | Bit length of the section to read. | |
[in,out] | cOut | The output. |
Definition at line 2622 of file StdUtilFunctions.cpp.
References Std_GetBinarySection(), and Std_InValidRange().
bool StdUtils::Std_ReadBinaryData | ( | CStdArray< unsigned char > & | aryBinaryData, |
long | lLastBit, | ||
long & | lStartBit, | ||
long | lBitLength, | ||
unsigned short & | iOut | ||
) |
Reads binary data from a byte array.
[in,out] | aryBinaryData | Raw byte array. |
lLastBit | The last bit. | |
[in,out] | lStartBit | The start bit. |
lBitLength | Bit length of the section to read. | |
[in,out] | iOut | The output. |
Definition at line 2656 of file StdUtilFunctions.cpp.
References Std_GetBinarySection(), and Std_InValidRange().
bool StdUtils::Std_ReadBinaryData | ( | CStdArray< unsigned char > & | aryBinaryData, |
long | lLastBit, | ||
long & | lStartBit, | ||
long | lBitLength, | ||
unsigned long & | lOut | ||
) |
Reads binary data from a byte array.
[in,out] | aryBinaryData | Raw byte array. |
lLastBit | The last bit. | |
[in,out] | lStartBit | The start bit. |
lBitLength | Bit length of the section to read. | |
[in,out] | lOut | The output. |
Definition at line 2690 of file StdUtilFunctions.cpp.
References Std_GetBinarySection(), and Std_InValidRange().
void StdUtils::Std_RelayError | ( | CStdErrorInfo | oInfo, |
std::string | strSourceFile, | ||
long | lSourceLine | ||
) |
Standard relay error.
oInfo | Thrown when information. |
oInfo | The information. |
strSourceFile | The string source file. |
lSourceLine | Source line. |
Definition at line 111 of file StdUtilFunctions.cpp.
References AddToErrorCallChain().
std::string StdUtils::Std_Replace | ( | std::string | strVal, |
std::string | strFind, | ||
std::string | strReplace | ||
) |
Replaces a substring with another string.
strVal | The string to test. |
strFind | The string to find. |
strReplace | The string to replace it with. |
Definition at line 1073 of file StdUtilFunctions.cpp.
Referenced by StdUtils::CStdPostFixEval::Equation(), StdUtils::IStdClassFactory::LoadModule(), and Std_SplitPathAndFile().
long StdUtils::Std_RGB | ( | unsigned char | iRed, |
unsigned char | iGreen, | ||
unsigned char | iBlue | ||
) |
Generates a long representation of a color.
iRed | The red. |
iGreen | The green. |
iBlue | The blue. |
Definition at line 1096 of file StdUtilFunctions.cpp.
Referenced by Std_LoadRGB().
std::string StdUtils::Std_Right | ( | std::string | strVal, |
int | iCount | ||
) |
Gets the right portion of a substring.
strVal | The string value. |
iCount | Number of characters to the right to get. |
Definition at line 1023 of file StdUtilFunctions.cpp.
Referenced by Std_HexToByte().
void StdUtils::Std_SavePoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdIPoint & | oPoint | ||
) |
Standard save point.
[in,out] | oXml | The xml to save. |
strName | Name of the xml packet. | |
[in,out] | oPoint | The point to save. |
Definition at line 164 of file StdSerialize.cpp.
References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().
void StdUtils::Std_SavePoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdLPoint & | oPoint | ||
) |
Standard save point.
[in,out] | oXml | The xml to save. |
strName | Name of the xml packet. | |
[in,out] | oPoint | The point to save. |
Definition at line 186 of file StdSerialize.cpp.
References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().
void StdUtils::Std_SavePoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdFPoint & | oPoint | ||
) |
Standard save point.
[in,out] | oXml | The xml to save. |
strName | Name of the xml packet. | |
[in,out] | oPoint | The point to save. |
Definition at line 208 of file StdSerialize.cpp.
References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().
void StdUtils::Std_SavePoint | ( | CStdXml & | oXml, |
std::string | strName, | ||
CStdDPoint & | oPoint | ||
) |
Standard save point.
[in,out] | oXml | The xml to save. |
strName | Name of the xml packet. | |
[in,out] | oPoint | The point to save. |
Definition at line 230 of file StdSerialize.cpp.
References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().
void StdUtils::Std_SetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
unsigned char | cIn | ||
) |
Replaces a section of a byte array with a new byte array.
[in,out] | aryRawData | The raw byte array. |
lStartBit | The start bit. | |
lBitLength | Bit length of the section to replace. | |
cIn | The new data. |
Definition at line 2349 of file StdUtilFunctions.cpp.
References Std_InValidRange(), and Std_SetByteInArray().
Referenced by Std_CopyBinarySection(), Std_SetBinarySection(), and Std_WriteBinaryData().
void StdUtils::Std_SetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
unsigned short | iIn | ||
) |
Replaces a section of a byte array with a new byte array.
[in,out] | aryRawData | The raw byte array. |
lStartBit | The start bit. | |
lBitLength | Bit length of the section to replace. | |
iIn | The new data. |
Definition at line 2372 of file StdUtilFunctions.cpp.
References Std_InValidRange(), and Std_SetBinarySection().
void StdUtils::Std_SetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
unsigned long | lIn | ||
) |
Replaces a section of a byte array with a new byte array.
[in,out] | aryRawData | The raw byte array. |
lStartBit | The start bit. | |
lBitLength | Bit length of the section to replace. | |
lIn | The new data. |
Definition at line 2400 of file StdUtilFunctions.cpp.
References Std_InValidRange(), and Std_SetBinarySection().
void StdUtils::Std_SetBinarySection | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
CStdArray< unsigned char > & | aryInData | ||
) |
Replaces a section of a byte array with a new byte array.
[in,out] | aryRawData | The raw byte array. |
lStartBit | The start bit. | |
lBitLength | Bit length of the section to replace. | |
aryInData | The new data. |
Definition at line 2434 of file StdUtilFunctions.cpp.
References Std_InValidRange(), and Std_SetByteInArray().
void StdUtils::Std_SetBitInArray | ( | CStdArray< unsigned char > & | aryRawData, |
long | lBit, | ||
bool | bVal | ||
) |
Sets a bit within an array.
[in,out] | aryRawData | Raw byte array. |
lBit | The bit to set in the array. | |
bVal | The bit value. |
Definition at line 2528 of file StdUtilFunctions.cpp.
Referenced by Std_FlipBitInArray(), Std_SetBitRangeInArray(), and Std_SetByteInArray().
void StdUtils::Std_SetBitRangeInArray | ( | CStdArray< unsigned char > & | aryRawData, |
long | lStartBit, | ||
long | lBitLength, | ||
bool | bVal | ||
) |
Sets an entire section within a byte array with a bit value.
[in,out] | aryRawData | Raw byte array. |
lStartBit | The start bit of the section. | |
lBitLength | Bit length of the section. | |
bVal | Bit value to set. |
Definition at line 2561 of file StdUtilFunctions.cpp.
References Std_IsAboveMin(), and Std_SetBitInArray().
void StdUtils::Std_SetByteInArray | ( | CStdArray< unsigned char > & | aryRawData, |
unsigned char | cIn, | ||
long | lEndBit, | ||
long | lBitsNeeded | ||
) |
Sets a byte within an array.
[in,out] | aryRawData | Raw input byte array. |
cIn | The input byte. | |
lEndBit | The end bit. | |
lBitsNeeded | The number of bits to copy. |
Definition at line 2499 of file StdUtilFunctions.cpp.
References bit_get(), Std_InValidRange(), and Std_SetBitInArray().
Referenced by Std_SetBinarySection().
void StdUtils::Std_SetLogFilePrefix | ( | std::string | strFilePrefix | ) |
Sets the log file prefix.
strFilePrefix | The string file prefix. |
Definition at line 3050 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::CreateSimulator().
void StdUtils::Std_SetLogLevel | ( | const int | iLevel | ) |
Sets the log level.
iLevel | The level. |
Definition at line 3084 of file StdUtilFunctions.cpp.
void StdUtils::Std_SetTraceLevel | ( | const int | iVal | ) |
Sets teh trace level.
iVal | The value. |
Definition at line 3034 of file StdUtilFunctions.cpp.
int StdUtils::Std_Sign | ( | float | fltVal | ) |
Determines the sign of a number.
fltVal | The value. |
Definition at line 1209 of file StdUtilFunctions.cpp.
Referenced by BulletAnimatSim::Environment::Joints::BlHinge::ApplyMotorAssist(), and AnimatSim::Robotics::PulsedLinkage::StepIO().
int StdUtils::Std_Sign | ( | float | fltVal, |
float | fltDefault | ||
) |
Determines the sign of a number. If the number is 0 then it uses the default value supplied.
fltVal | The value. |
Definition at line 1229 of file StdUtilFunctions.cpp.
int StdUtils::Std_Split | ( | const std::string & | input, |
const std::string & | delimiter, | ||
CStdArray< std::string > & | results | ||
) |
Splits a string into an array of subparts based on a delimiter.
input | The input. | |
delimiter | The delimiter. | |
[in,out] | results | The results. |
Definition at line 798 of file StdUtilFunctions.cpp.
References Std_IsBlank(), and Std_Trim().
void StdUtils::Std_SplitPathAndFile | ( | std::string & | strFullPath, |
std::string & | strPath, | ||
std::string & | strFile | ||
) |
Splits the path from the actual filename.
strFullPath | Full pathname of the string full file. | |
[in,out] | strPath | Full path without the filename. |
[in,out] | strFile | Filename. |
Definition at line 3240 of file StdUtilFunctions.cpp.
References Std_Replace().
Referenced by AnimatSim::Simulator::CreateSimulator().
void StdUtils::Std_SRand | ( | unsigned long | lSeed | ) |
Sets the seed for generating a random number.
lSeed | The seed. |
Definition at line 1255 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::GenerateAutoSeed(), and AnimatSim::Simulator::InitializeRandomNumbers().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strValueName, | ||
unsigned char | iVal | ||
) |
Standard throw error.
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strValueName | Name of the string value. |
iVal | The value. |
Definition at line 132 of file StdUtilFunctions.cpp.
Referenced by Std_ThrowError().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strValueName, | ||
unsigned short | iVal | ||
) |
Standard throw error.
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strValueName | Name of the string value. |
iVal | The value. |
Definition at line 155 of file StdUtilFunctions.cpp.
References Std_ThrowError().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strValueName, | ||
int | iVal | ||
) |
Standard throw error.
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strValueName | Name of the string value. |
iVal | The value. |
Definition at line 178 of file StdUtilFunctions.cpp.
References Std_ThrowError().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strValueName, | ||
long | lVal | ||
) |
Standard throw error.
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strValueName | Name of the string value. |
lVal | The value. |
Definition at line 201 of file StdUtilFunctions.cpp.
References Std_ThrowError().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strValueName, | ||
float | fltVal | ||
) |
Standard throw error.
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strValueName | Name of the string value. |
fltVal | The flt value. |
Definition at line 224 of file StdUtilFunctions.cpp.
References Std_ThrowError().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strValueName, | ||
double | dblVal | ||
) |
Standard throw error.
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strValueName | Name of the string value. |
dblVal | The double value. |
Definition at line 247 of file StdUtilFunctions.cpp.
References Std_ThrowError().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strValueName, | ||
std::string | strVal | ||
) |
Standard throw error.
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strValueName | Name of the string value. |
strVal | The string value. |
Definition at line 270 of file StdUtilFunctions.cpp.
References Std_ThrowError().
void StdUtils::Std_ThrowError | ( | long | lError, |
std::string | strError, | ||
std::string | strSourceFile, | ||
long | lSourceLine, | ||
std::string | strText | ||
) |
Standard throw error.
oInfo | Thrown when information. |
lError | The error number. |
strError | The string error message. |
strSourceFile | The string source filename. |
lSourceLine | Source line number. |
strText | The string text. |
Definition at line 294 of file StdUtilFunctions.cpp.
References AddToErrorCallChain(), StdUtils::CStdErrorInfo::m_lError, StdUtils::CStdErrorInfo::m_lSourceLine, StdUtils::CStdErrorInfo::m_strError, StdUtils::CStdErrorInfo::m_strSourceFile, and Std_TraceMsg().
bool StdUtils::Std_ToBool | ( | int | iVal | ) |
Converts a value toa bool.
iVal | The value. |
Definition at line 596 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::PidControl::SetData(), AnimatCarlSim::CsSynapseFull::SetData(), FiringRateSim::Synapses::GatedSynapse::SetData(), AnimatSim::Link::SetData(), AnimatSim::ExternalStimuli::EnablerStimulus::SetData(), AnimatSim::Environment::ConstraintRelaxation::SetData(), AnimatSim::Environment::Odor::SetData(), AnimatSimPy::ScriptProcessorPy::SetData(), AnimatSim::Robotics::RobotInterface::SetData(), VortexAnimatSim::ExternalStimuli::VsMotorVelocityStimulus::SetData(), AnimatSim::Environment::ConstraintFriction::SetData(), AnimatSim::ExternalStimuli::MotorStimulus::SetData(), AnimatSim::Robotics::PulsedLinkage::SetData(), RoboticsAnimatSim::Robotics::RobotIOControls::Firmata::RbFirmataHingeServo::SetData(), AnimatSim::Node::SetData(), AnimatSim::Robotics::RobotPartInterface::SetData(), IntegrateFireSim::Synapses::SpikingChemicalSynapse::SetData(), AnimatSim::SimulationWindow::SetData(), AnimatCarlSim::CsSynapseGroup::SetData(), FiringRateSim::Synapses::Synapse::SetData(), AnimatSim::Environment::Light::SetData(), AnimatSim::Robotics::RobotIOControl::SetData(), AnimatSim::Gains::Gain::SetData(), AnimatSim::ActivatedItem::SetData(), IntegrateFireSim::IonChannel::SetData(), AnimatSim::Charting::DataChart::SetData(), AnimatSim::Robotics::RemoteControlLinkage::SetData(), IntegrateFireSim::IntegrateFireNeuralModule::SetData(), VortexAnimatSim::Visualization::OsgLinearPath::SetData(), OsgAnimatSim::Visualization::OsgLinearPath::SetData(), AnimatSim::Adapters::Adapter::SetData(), AnimatCarlSim::CsNeuronGroup::SetData(), FiringRateSim::Neurons::Neuron::SetData(), IntegrateFireSim::Neuron::SetData(), and AnimatSim::Simulator::SetData().
bool StdUtils::Std_ToBool | ( | std::string | strVal | ) |
Converts a value toa bool.
strVal | The string value. |
Definition at line 614 of file StdUtilFunctions.cpp.
References Std_ToUpper(), and Std_Trim().
std::string StdUtils::Std_ToLower | ( | std::string | strVal | ) |
Converts a string to lower case.
strVal | The string value. |
Definition at line 1055 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Simulator::LoadClassFactory(), and StdUtils::IStdClassFactory::LoadModule().
std::string StdUtils::Std_ToStr | ( | std::string | strVal | ) |
Converts a value to a string.
strVal | The string value. |
Definition at line 321 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::AnimatBase::SetData().
std::string StdUtils::Std_ToStr | ( | const char * | strVal | ) |
Converts a value to a string.
strVal | The string value. |
Definition at line 334 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | unsigned char | iVal | ) |
Converts a value to a std::string.
iVal | The value. |
Definition at line 350 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | unsigned short | iVal | ) |
Converts a value to a string.
iVal | The value. |
Definition at line 368 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | int | iVal | ) |
Converts a value to a std::string.
iVal | The value. |
Definition at line 386 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | unsigned int | iVal | ) |
Converts a value to a std::string.
iVal | The value. |
Definition at line 404 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | long | lVal | ) |
Converts a value to a string.
lVal | The value. |
Definition at line 422 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | unsigned long | lVal | ) |
Converts a value to a string.
lVal | The value. |
Definition at line 440 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | float | fltVal | ) |
Converts a value to a string.
fltVal | The flt value. |
Definition at line 458 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | double | dblVal | ) |
Converts a value to a string.
dblVal | The double value. |
Definition at line 476 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | bool | bVal | ) |
Converts a value to a string.
bVal | true to value. |
Definition at line 494 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | std::string | strFormat, |
unsigned char | iVal | ||
) |
Converts a value to a string.
strFormat | The string format. |
iVal | The value. |
Definition at line 513 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | std::string | strFormat, |
unsigned short | iVal | ||
) |
Converts a value to a string.
strFormat | The string format. |
iVal | The value. |
Definition at line 527 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | std::string | strFormat, |
int | iVal | ||
) |
Converts a value to a string.
strFormat | The string format. |
iVal | The value. |
Definition at line 541 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | std::string | strFormat, |
long | lVal | ||
) |
Converts a value to a string.
strFormat | The string format. |
lVal | The value. |
Definition at line 555 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | std::string | strFormat, |
float | fltVal | ||
) |
Converts a value to a string.
strFormat | The string format. |
fltVal | The flt value. |
Definition at line 569 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToStr | ( | std::string | strFormat, |
double | dblVal | ||
) |
Converts a value to a string.
strFormat | The string format. |
dblVal | The double value. |
Definition at line 583 of file StdUtilFunctions.cpp.
std::string StdUtils::Std_ToUpper | ( | std::string | strVal | ) |
Converts a string to upper case.
strVal | The string value. |
Definition at line 1039 of file StdUtilFunctions.cpp.
Referenced by IntegrateFireSim::CaActivation::CaActivation(), IntegrateFireSim::ClassFactory::CreateDataColumn(), FiringRateSim::ClassFactory::CreateDataColumn(), IntegrateFireSim::ClassFactory::CreateExternalStimulus(), AnimatCarlSim::CsClassFactory::CreateExternalStimulus(), FiringRateSim::ClassFactory::CreateExternalStimulus(), IntegrateFireSim::ClassFactory::CreateGain(), IntegrateFireSim::ClassFactory::CreateIonChannel(), IntegrateFireSim::ClassFactory::CreateNeuralModule(), AnimatCarlSim::CsClassFactory::CreateNeuralModule(), FiringRateSim::ClassFactory::CreateNeuralModule(), AnimatCarlSim::CsClassFactory::CreateNeuron(), FiringRateSim::ClassFactory::CreateNeuron(), IntegrateFireSim::ClassFactory::CreateNeuron(), TestClassFactory::CreateObject(), AnimatCarlSim::CsClassFactory::CreateSynapse(), FiringRateSim::ClassFactory::CreateSynapse(), IntegrateFireSim::ClassFactory::CreateSynapse(), IntegrateFireSim::ClassFactory::CreateSynapseType(), AnimatSim::Robotics::RobotInterface::FindChildListPos(), AnimatSim::Environment::LightManager::FindChildListPos(), AnimatSim::Robotics::RobotIOControl::FindChildListPos(), AnimatSim::Environment::RigidBody::FindChildListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindElectricalListPos(), AnimatSim::Behavior::NeuralModule::FindExternalSynapseListPos(), IntegrateFireSim::Neuron::FindIonChannelListPos(), AnimatSim::Robotics::RemoteControl::FindLinkageChildListPos(), AnimatSim::ActivatedItemMgr::FindListPos(), AnimatCarlSim::CsNeuralModule::FindNeuronGroupListPos(), FiringRateSim::FiringRateModule::FindNeuronListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindNeuronListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindNonSpikingChemListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindSpikingChemListPos(), FiringRateSim::Synapses::Synapse::FindSynapseListPos(), AnimatCarlSim::CsNeuralModule::FindSynapseListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindSynapseListPos(), FiringRateSim::Neurons::Neuron::FindSynapseListPos(), AnimatSim::Environment::Materials::FindTypeListPos(), OsgAnimatSim::Visualization::OsgLinearPath::FindWaypointPos(), VortexAnimatSim::Visualization::OsgLinearPath::FindWaypointPos(), IntegrateFireSim::IntegrateFireNeuralModule::LoadSynapseType(), AnimatSim::Environment::RigidBody::MaterialID(), IntegrateFireSim::IntegrateFireNeuralModule::RemoveSynapseType(), Std_CheckString(), Std_HexToByte(), Std_ToBool(), Std_VariantTypeToConst(), and AnimatSim::ExternalStimuli::CurrentStimulus::Type().
void StdUtils::Std_TraceMsg | ( | const int | iLevel, |
std::string | strMessage, | ||
std::string | strSourceFile, | ||
int | iSourceLine, | ||
bool | bLogToFile, | ||
bool | bPrintHeader | ||
) |
Traces a message to the debugger window.
iLevel | The log level. |
strMessage | Log message. |
strSourceFile | The string source file. |
iSourceLine | Source line number. |
bLogToFile | true to log to file. |
bPrintHeader | true to print header. |
Definition at line 3137 of file StdUtilFunctions.cpp.
Referenced by AnimatSim::Environment::ContactSensor::DumpVertices(), AnimatSim::ActivatedItemMgr::Reset(), Std_ThrowError(), AnimatSim::ActivatedItemMgr::~ActivatedItemMgr(), AnimatSim::Adapters::Adapter::~Adapter(), AnimatSim::AnimatBase::~AnimatBase(), AnimatSim::Charting::ArrayChart::~ArrayChart(), AnimatSim::Gains::BellGain::~BellGain(), FiringRateSim::Neurons::BistableNeuron::~BistableNeuron(), BulletAnimatSim::Environment::Joints::BlBallSocket::~BlBallSocket(), BulletAnimatSim::Environment::Joints::BlDistanceJoint::~BlDistanceJoint(), BulletAnimatSim::Environment::Bodies::BlFluidPlane::~BlFluidPlane(), BulletAnimatSim::Environment::Joints::BlHinge::~BlHinge(), BulletAnimatSim::Environment::Bodies::BlPlane::~BlPlane(), BulletAnimatSim::Environment::Joints::BlPrismatic::~BlPrismatic(), BulletAnimatSim::Environment::Joints::BlRPRO::~BlRPRO(), BulletAnimatSim::Environment::Joints::BlUniversal::~BlUniversal(), AnimatSim::Environment::BodyPart::~BodyPart(), AnimatSim::Adapters::ContactAdapter::~ContactAdapter(), AnimatSim::Environment::ContactSensor::~ContactSensor(), AnimatCarlSim::CsAdapter::~CsAdapter(), AnimatCarlSim::CsConnectionGenerator::~CsConnectionGenerator(), AnimatCarlSim::CsFiringRateStimulus::~CsFiringRateStimulus(), AnimatCarlSim::CsNeuralModule::~CsNeuralModule(), AnimatCarlSim::CsNeuronGroup::~CsNeuronGroup(), AnimatCarlSim::CsSpikeGeneratorGroup::~CsSpikeGeneratorGroup(), AnimatCarlSim::CsSpikingCurrentSynapse::~CsSpikingCurrentSynapse(), AnimatCarlSim::CsSynapseFull::~CsSynapseFull(), AnimatCarlSim::CsSynapseGroup::~CsSynapseGroup(), AnimatCarlSim::CsSynapseIndividual::~CsSynapseIndividual(), AnimatCarlSim::CsSynapseOneToOne::~CsSynapseOneToOne(), AnimatCarlSim::CsSynapseRandom::~CsSynapseRandom(), StdUtils::CStdErrorInfo::~CStdErrorInfo(), StdUtils::CStdLookupTable::~CStdLookupTable(), StdUtils::CStdVariant::~CStdVariant(), AnimatSim::ExternalStimuli::CurrentStimulus::~CurrentStimulus(), AnimatSim::Charting::DataChart::~DataChart(), AnimatSim::DelayLine::~DelayLine(), AnimatSim::ExternalStimuli::EnablerStimulus::~EnablerStimulus(), AnimatSim::Gains::EquationGain::~EquationGain(), AnimatSim::ExternalStimuli::ExternalInputStimulus::~ExternalInputStimulus(), AnimatSim::Charting::FileChart::~FileChart(), FiringRateSim::FiringRateModule::~FiringRateModule(), AnimatSim::Gains::Gain::~Gain(), AnimatSim::Environment::Joints::Hinge::~Hinge(), AnimatSim::Hud::~Hud(), IntegrateFireSim::IntegrateFireNeuralModule::~IntegrateFireNeuralModule(), IntegrateFireSim::IonChannel::~IonChannel(), IntegrateFireSim::Gains::IonChannelSigmoid::~IonChannelSigmoid(), AnimatSim::Environment::Joint::~Joint(), AnimatSim::Recording::KeyFrame::~KeyFrame(), AnimatSim::Gains::LengthTensionGain::~LengthTensionGain(), AnimatSim::Environment::Bodies::LinearHillMuscle::~LinearHillMuscle(), AnimatSim::Environment::Bodies::LineBase::~LineBase(), AnimatSim::Link::~Link(), AnimatSim::Charting::MemoryChart::~MemoryChart(), FiringRateSim::Synapses::ModulateNeuronPropSynapse::~ModulateNeuronPropSynapse(), AnimatSim::ModuleThreadProcessor::~ModuleThreadProcessor(), AnimatSim::ExternalStimuli::MotorStimulus::~MotorStimulus(), AnimatSim::Environment::Bodies::Mouth::~Mouth(), AnimatSim::Environment::Bodies::MuscleBase::~MuscleBase(), AnimatSim::Behavior::NervousSystem::~NervousSystem(), AnimatSim::Behavior::NeuralModule::~NeuralModule(), FiringRateSim::Neurons::Neuron::~Neuron(), AnimatSim::Node::~Node(), AnimatSim::Environment::Odor::~Odor(), AnimatSim::Environment::OdorType::~OdorType(), AnimatSim::Environment::Organism::~Organism(), OsgAnimatSim::Environment::Joints::OsgFreeJoint::~OsgFreeJoint(), OsgAnimatSim::Visualization::OsgHud::~OsgHud(), OsgAnimatSim::Environment::OsgLight::~OsgLight(), OsgAnimatSim::OsgMeshMgr::~OsgMeshMgr(), OsgAnimatSim::Environment::Bodies::OsgMouth::~OsgMouth(), AnimatSim::Behavior::PhysicsNeuralModule::~PhysicsNeuralModule(), AnimatSim::PidControl::~PidControl(), AnimatSim::Gains::PolynomialGain::~PolynomialGain(), AnimatSim::Environment::Joints::Prismatic::~Prismatic(), AnimatSim::Adapters::PropertyControlAdapter::~PropertyControlAdapter(), AnimatSim::ExternalStimuli::PropertyControlStimulus::~PropertyControlStimulus(), FiringRateSim::Neurons::RandomNeuron::~RandomNeuron(), RoboticsAnimatSim::Environment::Joints::RbBallSocket::~RbBallSocket(), RoboticsAnimatSim::Environment::Joints::RbFreeJoint::~RbFreeJoint(), RoboticsAnimatSim::Environment::Joints::RbHinge::~RbHinge(), RoboticsAnimatSim::Environment::Bodies::RbMouth::~RbMouth(), RoboticsAnimatSim::Environment::Joints::RbPrismatic::~RbPrismatic(), RoboticsAnimatSim::Environment::Joints::RbRPRO::~RbRPRO(), RoboticsAnimatSim::Environment::Joints::RbUniversal::~RbUniversal(), AnimatSim::Environment::RigidBody::~RigidBody(), AnimatSim::Robotics::RobotInterface::~RobotInterface(), AnimatSim::Robotics::RobotIOControl::~RobotIOControl(), AnimatSim::Gains::SigmoidGain::~SigmoidGain(), AnimatSim::SimulationWindowMgr::~SimulationWindowMgr(), AnimatSim::Simulator::~Simulator(), AnimatSim::Environment::Bodies::Stomach::~Stomach(), AnimatSim::Environment::Structure::~Structure(), FiringRateSim::Synapses::Synapse::~Synapse(), AnimatSim::Behavior::ThreadedModule::~ThreadedModule(), AnimatSim::ThreadProcessor::~ThreadProcessor(), AnimatSim::ExternalStimuli::VoltageClamp::~VoltageClamp(), VortexAnimatSim::Environment::Joints::VsBallSocket::~VsBallSocket(), VortexAnimatSim::Environment::Joints::VsDistanceJoint::~VsDistanceJoint(), VortexAnimatSim::Environment::Bodies::VsFluidPlane::~VsFluidPlane(), VortexAnimatSim::Environment::Joints::VsFreeJoint::~VsFreeJoint(), VortexAnimatSim::Environment::Joints::VsHinge::~VsHinge(), VortexAnimatSim::Visualization::VsHud::~VsHud(), VortexAnimatSim::Environment::VsLight::~VsLight(), VortexAnimatSim::VsMeshMgr::~VsMeshMgr(), VortexAnimatSim::ExternalStimuli::VsMotorVelocityStimulus::~VsMotorVelocityStimulus(), VortexAnimatSim::Environment::Bodies::VsMouth::~VsMouth(), VortexAnimatSim::Environment::Bodies::VsPlane::~VsPlane(), VortexAnimatSim::Environment::Joints::VsPrismatic::~VsPrismatic(), VortexAnimatSim::Environment::Joints::VsRPRO::~VsRPRO(), and VortexAnimatSim::Environment::Joints::VsUniversal::~VsUniversal().
std::string StdUtils::Std_Trim | ( | std::string | strVal | ) |
Trims a string.
strVal | The string value. |
Definition at line 897 of file StdUtilFunctions.cpp.
References Std_TrimLeft(), and Std_TrimRight().
Referenced by IntegrateFireSim::CaActivation::CaActivation(), IntegrateFireSim::ClassFactory::CreateDataColumn(), FiringRateSim::ClassFactory::CreateDataColumn(), IntegrateFireSim::ClassFactory::CreateExternalStimulus(), AnimatCarlSim::CsClassFactory::CreateExternalStimulus(), FiringRateSim::ClassFactory::CreateExternalStimulus(), IntegrateFireSim::ClassFactory::CreateGain(), IntegrateFireSim::ClassFactory::CreateIonChannel(), IntegrateFireSim::ClassFactory::CreateNeuralModule(), AnimatCarlSim::CsClassFactory::CreateNeuralModule(), FiringRateSim::ClassFactory::CreateNeuralModule(), AnimatCarlSim::CsClassFactory::CreateNeuron(), FiringRateSim::ClassFactory::CreateNeuron(), IntegrateFireSim::ClassFactory::CreateNeuron(), TestClassFactory::CreateObject(), AnimatCarlSim::CsClassFactory::CreateSynapse(), FiringRateSim::ClassFactory::CreateSynapse(), IntegrateFireSim::ClassFactory::CreateSynapse(), IntegrateFireSim::ClassFactory::CreateSynapseType(), AnimatSim::Robotics::RobotInterface::FindChildListPos(), AnimatSim::Environment::LightManager::FindChildListPos(), AnimatSim::Robotics::RobotIOControl::FindChildListPos(), AnimatSim::Environment::RigidBody::FindChildListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindElectricalListPos(), AnimatSim::Behavior::NeuralModule::FindExternalSynapseListPos(), IntegrateFireSim::Neuron::FindIonChannelListPos(), AnimatSim::Robotics::RemoteControl::FindLinkageChildListPos(), AnimatSim::ActivatedItemMgr::FindListPos(), AnimatCarlSim::CsNeuralModule::FindNeuronGroupListPos(), FiringRateSim::FiringRateModule::FindNeuronListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindNeuronListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindNonSpikingChemListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindSpikingChemListPos(), FiringRateSim::Synapses::Synapse::FindSynapseListPos(), AnimatCarlSim::CsNeuralModule::FindSynapseListPos(), IntegrateFireSim::IntegrateFireNeuralModule::FindSynapseListPos(), FiringRateSim::Neurons::Neuron::FindSynapseListPos(), AnimatSim::Environment::Materials::FindTypeListPos(), OsgAnimatSim::Visualization::OsgLinearPath::FindWaypointPos(), VortexAnimatSim::Visualization::OsgLinearPath::FindWaypointPos(), StdUtils::CStdXml::GetAttribDouble(), StdUtils::CStdXml::GetAttribFloat(), StdUtils::CStdXml::GetAttribInt(), StdUtils::CStdXml::GetAttribLong(), StdUtils::CStdXml::GetChildAttribDouble(), StdUtils::CStdXml::GetChildAttribFloat(), StdUtils::CStdXml::GetChildAttribInt(), StdUtils::CStdXml::GetChildAttribLong(), StdUtils::CStdXml::GetChildDouble(), StdUtils::CStdXml::GetChildFloat(), StdUtils::CStdXml::GetChildInt(), StdUtils::CStdXml::GetChildLong(), AnimatSim::ExternalStimuli::PropertyControlStimulus::PropertyName(), AnimatSim::Adapters::PropertyControlAdapter::PropertyName(), Std_CheckString(), Std_IsBlank(), Std_Split(), Std_ToBool(), Std_VariantTypeToConst(), and AnimatSim::ExternalStimuli::CurrentStimulus::Type().
std::string StdUtils::Std_TrimLeft | ( | std::string | strVal | ) |
Standard trim left.
strVal | The string value. |
Definition at line 925 of file StdUtilFunctions.cpp.
References NotSpace().
Referenced by Std_Trim().
std::string StdUtils::Std_TrimRight | ( | std::string | strVal | ) |
Standard trim right.
strVal | The string value. |
Definition at line 941 of file StdUtilFunctions.cpp.
References NotSpace().
Referenced by Std_Trim().
int StdUtils::Std_VariantTypeToConst | ( | std::string | strType | ) |
Standard variant type to constant.
strType | Type of the string. |
Definition at line 703 of file StdUtilFunctions.cpp.
References Std_ToUpper(), and Std_Trim().
Referenced by StdUtils::CStdVariant::Load().
void StdUtils::Std_WriteBinaryData | ( | CStdArray< unsigned char > & | aryBinaryData, |
long & | lStartBit, | ||
long | lBitLength, | ||
unsigned char | cIn | ||
) |
Writes data to a byte array.
[in,out] | aryBinaryData | Raw byte array. |
[in,out] | lStartBit | The start bit. |
lBitLength | Bit length of the section. | |
cIn | The input. |
Definition at line 2722 of file StdUtilFunctions.cpp.
References Std_SetBinarySection().
void StdUtils::Std_WriteBinaryData | ( | CStdArray< unsigned char > & | aryBinaryData, |
long & | lStartBit, | ||
long | lBitLength, | ||
unsigned short | iIn | ||
) |
Writes data to a byte array.
[in,out] | aryBinaryData | Raw byte array. |
[in,out] | lStartBit | The start bit. |
lBitLength | Bit length of the section. | |
iIn | The input. |
Definition at line 2745 of file StdUtilFunctions.cpp.
References Std_SetBinarySection().
void StdUtils::Std_WriteBinaryData | ( | CStdArray< unsigned char > & | aryBinaryData, |
long & | lStartBit, | ||
long | lBitLength, | ||
unsigned long | lIn | ||
) |
Writes data to a byte array.
[in,out] | aryBinaryData | Raw byte array. |
[in,out] | lStartBit | The start bit. |
lBitLength | Bit length of the section. | |
lIn | The input. |
Definition at line 2768 of file StdUtilFunctions.cpp.
References Std_SetBinarySection().