AnimatLab  2
Test
StdUtils Namespace Reference

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...
 
CStdCriticalSectionStd_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
 

Detailed Description

Namespace for the standard utility objects.

Function Documentation

void StdUtils::AddToErrorCallChain ( CStdErrorInfo oInfo,
std::string  strSourceFile,
long  lSourceLine 
)

Adds to the error call chain.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oInfoThe error information.
strSourceFileThe string source file.
lSourceLineSource line.

Definition at line 87 of file StdUtilFunctions.cpp.

References StdUtils::CStdErrorInfo::m_aryCallChain.

Referenced by Std_RelayError(), and Std_ThrowError().

+ Here is the caller graph for this function:

unsigned long StdUtils::bit_get ( unsigned long  x,
int  i 
)

Gets a bit of x.

Author
dcofer
Date
5/3/2011
Parameters
xThe x coordinate.
iThe bit index.
Returns
.

Definition at line 1863 of file StdUtilFunctions.cpp.

Referenced by Std_BinaryToGreyCode(), Std_GreyCodeToBinary(), and Std_SetByteInArray().

+ Here is the caller graph for this function:

unsigned long StdUtils::bit_put ( unsigned long  x,
int  i,
unsigned long  v 
)

puts a bit in x.

Author
dcofer
Date
5/3/2011
Parameters
xThe x coordinate.
iThe bit index.
vThe new bit.
Returns
.

Definition at line 1882 of file StdUtilFunctions.cpp.

Referenced by Std_BinaryToGreyCode(), and Std_GreyCodeToBinary().

+ Here is the caller graph for this function:

bool StdUtils::CompareDataPoints ( CStdDPoint  oPoint1,
CStdDPoint  oPoint2 
)

Compare data points.

Author
dcofer
Date
5/3/2011
Parameters
oPoint1The first o point.
oPoint2The second o point.
Returns
true if point1.x less than point2.x, false else.

Definition at line 93 of file StdLookupTable.cpp.

Referenced by StdUtils::CStdLookupTable::Initialize().

+ Here is the caller graph for this function:

bool StdUtils::NotSpace ( char  c)

Test if this is a space.

Author
dcofer
Date
5/3/2011
Parameters
cThe character.
Returns
true if it succeeds, false if it fails.

Definition at line 912 of file StdUtilFunctions.cpp.

Referenced by Std_TrimLeft(), and Std_TrimRight().

+ Here is the caller graph for this function:

std::ostream & StdUtils::operator<< ( std::ostream &  oOs,
CStdSerialize lpObj 
)

writes to an output stream

Returns
output stream

Definition at line 99 of file StdSerialize.cpp.

References StdUtils::CStdSerialize::Trace().

+ Here is the call graph for this function:

std::ostream & StdUtils::operator<< ( std::ostream &  oOs,
CStdIPoint  oPoint 
)

writes to an output stream

Returns
output stream

Definition at line 110 of file StdSerialize.cpp.

std::ostream & StdUtils::operator<< ( std::ostream &  oOs,
CStdLPoint  oPoint 
)

writes to an output stream

Returns
output stream

Definition at line 121 of file StdSerialize.cpp.

std::ostream & StdUtils::operator<< ( std::ostream &  oOs,
CStdFPoint  oPoint 
)

writes to an output stream

Returns
output stream

Definition at line 132 of file StdSerialize.cpp.

std::ostream & StdUtils::operator<< ( std::ostream &  oOs,
CStdDPoint  oPoint 
)

writes to an output stream

Returns
output stream

Definition at line 143 of file StdSerialize.cpp.

unsigned char StdUtils::Std_BinaryToGreyCode ( unsigned char  cVal)

Converts a binary value to grey code.

Author
dcofer
Date
5/4/2011
Parameters
cValThe binary value.
Returns
grey code value.

Definition at line 2788 of file StdUtilFunctions.cpp.

References bit_get(), and bit_put().

+ Here is the call graph for this function:

unsigned short StdUtils::Std_BinaryToGreyCode ( unsigned short  iVal)

Converts a binary value to grey code.

Author
dcofer
Date
5/4/2011
Parameters
iValThe binary value.
Returns
grey code value.

Definition at line 2815 of file StdUtilFunctions.cpp.

References bit_get(), and bit_put().

+ Here is the call graph for this function:

unsigned long StdUtils::Std_BinaryToGreyCode ( unsigned long  lVal)

Converts a binary value to grey code.

Author
dcofer
Date
5/4/2011
Parameters
lValThe binary value.
Returns
grey code value.

Definition at line 2841 of file StdUtilFunctions.cpp.

References bit_get(), and bit_put().

+ Here is the call graph for this function:

std::string StdUtils::Std_ByteArrayToHexString ( CStdArray< unsigned char > &  aryBytes)

Converts a byte array to hexadecimal string.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryBytesThe array in bytes.
Returns
hex string.

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.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryBytesThe array in bytes.
[in,out]strHexThe string hexadecimal.

Definition at line 1918 of file StdUtilFunctions.cpp.

double StdUtils::Std_CalculateDistance ( CStdIPoint &  ptA,
CStdIPoint &  ptB 
)

Calculates the distance between two points.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]ptAThe point a.
[in,out]ptBThe point b.
Returns
distance.

Definition at line 455 of file StdSerialize.cpp.

Referenced by AnimatSim::Environment::Bodies::LineBase::CalculateLength(), and AnimatSim::Environment::Odor::CalculateOdorValue().

+ Here is the caller graph for this function:

double StdUtils::Std_CalculateDistance ( CStdLPoint &  ptA,
CStdLPoint &  ptB 
)

Calculates the distance between two points.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]ptAThe point a.
[in,out]ptBThe point b.
Returns
distance.

Definition at line 471 of file StdSerialize.cpp.

double StdUtils::Std_CalculateDistance ( CStdFPoint &  ptA,
CStdFPoint &  ptB 
)

Calculates the distance between two points.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]ptAThe point a.
[in,out]ptBThe point b.
Returns
distance.

Definition at line 487 of file StdSerialize.cpp.

double StdUtils::Std_CalculateDistance ( CStdDPoint &  ptA,
CStdDPoint &  ptB 
)

Calculates the distance between two points.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]ptAThe point a.
[in,out]ptBThe point b.
Returns
distance.

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.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
new string.

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().

+ Here is the call graph for this function:

std::string StdUtils::Std_Combine ( CStdArray< std::string > &  aryParts,
std::string  strDelimiter 
)

Combines an array of strings into a single string.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryPartsThe array of string parts.
strDelimiterThe string delimiter.
Returns
.

Definition at line 874 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ConstToVariantType ( int  iType)

Standard constant to variant type.

Author
dcofer
Date
5/3/2011
Parameters
iTypeThe type.
Returns
.

Definition at line 750 of file StdUtilFunctions.cpp.

Referenced by StdUtils::CStdVariant::Save(), StdUtils::CStdVariant::Trace(), and StdUtils::CStdVariant::VariantTypeName().

+ Here is the caller graph for this function:

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryInDataInput raw byte array.
lStartInBitThe start bit to begin the copy.
[in,out]aryOutDataOutput raw byte array.
lStartOutBitThe start bit of where to place the copy.
lBitLengthBit length of the copy.

Definition at line 2476 of file StdUtilFunctions.cpp.

References Std_GetBinarySection(), and Std_SetBinarySection().

+ Here is the call graph for this function:

std::string StdUtils::Std_CreateAppID ( )

Gets the standard create application identifier.

Author
dcofer
Date
5/3/2011
Returns
ID.

Definition at line 69 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::AnimatBase::AnimatBase().

+ Here is the caller graph for this function:

bool StdUtils::Std_DirectoryExists ( std::string  strPath)

Queries if a given directory exists.

Author
dcofer
Date
5/4/2011
Parameters
strPathFull pathname of the string file.
Returns
.

Definition at line 3270 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::CreateSimulator().

+ Here is the caller graph for this function:

double StdUtils::Std_DRand ( double  low,
double  high 
)

Generates a random number between two values.

Author
dcofer
Date
5/3/2011
Parameters
lowThe low value for the random number.
highThe high value for the random number.
Returns
random number.

Definition at line 1320 of file StdUtilFunctions.cpp.

Referenced by FiringRateSim::Neurons::RandomNeuron::HighCurrentOn(), FiringRateSim::Neurons::RandomNeuron::LowCurrentOn(), and StdUtils::CStdPostFixEval::Solve().

+ Here is the caller graph for this function:

std::string StdUtils::Std_ExecutablePath ( )

Finds the name and path of the current executable.

Author
dcofer
Date
7/23/2013
Returns
Path to the current executable.

Definition at line 3312 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::CreateSimulator().

+ Here is the caller graph for this function:

bool StdUtils::Std_FileExists ( std::string  strFullPath)

Finds if a given file exists.

Author
dcofer
Date
8/29/2013
Parameters
strFullPathFull pathname of the string full file.

Definition at line 3285 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::CreateSimulator(), and AnimatSim::Simulator::LoadAnimatModuleName().

+ Here is the caller graph for this function:

void StdUtils::Std_FlipBitInArray ( CStdArray< unsigned char > &  aryRawData,
long  lBit 
)

Flips a bit within a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataRaw byte array.
lBitThe bit to flip.

Definition at line 2580 of file StdUtilFunctions.cpp.

References Std_GetBitFromArray(), and Std_SetBitInArray().

Referenced by Std_FlipBitRangeInArray().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StdUtils::Std_FlipBitRangeInArray ( CStdArray< unsigned char > &  aryRawData,
long  lStartBit,
long  lBitLength 
)

Flips all the bits within a section of a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataRaw byte array.
lStartBitThe start bit of the section to flip.
lBitLengthBit length of the section.

Definition at line 2598 of file StdUtilFunctions.cpp.

References Std_FlipBitInArray(), and Std_IsAboveMin().

+ Here is the call graph for this function:

float StdUtils::Std_FRand ( float  low,
float  high 
)

Generates a random number between two values.

Author
dcofer
Date
5/3/2011
Parameters
lowThe low value for the random number.
highThe high value for the random number.
Returns
random number.

Definition at line 1305 of file StdUtilFunctions.cpp.

Referenced by FiringRateSim::Neurons::Neuron::StepSimulation().

+ Here is the caller graph for this function:

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.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryRawDataRaw byte array.
lStartBitThe start bit of the section we will retrieve.
lBitLengthBit length of the section to retrieve.
[in,out]cOutThe output section.

Definition at line 2098 of file StdUtilFunctions.cpp.

References Std_InValidRange().

Referenced by Std_CopyBinarySection(), Std_GetBinarySection(), and Std_ReadBinaryData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryRawDataRaw byte array.
lStartBitThe start bit of the section we will retrieve.
lBitLengthBit length of the section to retrieve.
[in,out]iOutThe output section.

Definition at line 2143 of file StdUtilFunctions.cpp.

References Std_GetBinarySection(), and Std_InValidRange().

+ Here is the call graph for this function:

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.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryRawDataRaw byte array.
lStartBitThe start bit of the section we will retrieve.
lBitLengthBit length of the section to retrieve.
[in,out]lOutThe output section.

Definition at line 2196 of file StdUtilFunctions.cpp.

References Std_GetBinarySection(), and Std_InValidRange().

+ Here is the call graph for this function:

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.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryRawDataRaw byte array.
lStartBitThe start bit of the section we will retrieve.
lBitLengthBit length of the section to retrieve.
[in,out]aryOutDataThe output section.

Definition at line 2249 of file StdUtilFunctions.cpp.

References Std_GetByteFromArray(), and Std_InValidRange().

+ Here is the call graph for this function:

bool StdUtils::Std_GetBitFromArray ( CStdArray< unsigned char > &  aryRawData,
long  lBit 
)

Gets a single bit from a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataThe raw byte array.
lBitThe bit to retrieve.
Returns
True if it succeeds.

Definition at line 2320 of file StdUtilFunctions.cpp.

Referenced by Std_FlipBitInArray(), and Std_GetByteFromArray().

+ Here is the caller graph for this function:

long StdUtils::Std_GetBitSize ( CStdArray< unsigned char > &  aryRawData)

Gets the number of bits in a byte array.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]aryRawDataRaw byte array.
Returns
number of bits.

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataThe raw byte array.
lEndBitThe end bit.
lBitsNeededThe number of bits to retrieve.
Returns
output data.

Definition at line 2291 of file StdUtilFunctions.cpp.

References Std_GetBitFromArray(), and Std_InValidRange().

Referenced by Std_GetBinarySection().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string StdUtils::Std_GetLogFilePrefix ( )

Gets the log file prefix.

Author
dcofer
Date
5/4/2011
Returns
prefix.

Definition at line 3066 of file StdUtilFunctions.cpp.

unsigned long StdUtils::Std_GetTick ( )

Gets the time tick.

Author
dcofer
Date
5/4/2011
Returns
time tick.

Definition at line 3179 of file StdUtilFunctions.cpp.

int StdUtils::Std_GetTraceLevel ( )

Gets the trace level.

Author
dcofer
Date
5/4/2011
Returns
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.

Author
dcofer
Date
5/4/2011
Parameters
cValThe grey code value.
Returns
binary code value.

Definition at line 2868 of file StdUtilFunctions.cpp.

References bit_get(), and bit_put().

+ Here is the call graph for this function:

unsigned short StdUtils::Std_GreyCodeToBinary ( unsigned short  iVal)

Converts a grey code to a binary value.

Author
dcofer
Date
5/4/2011
Parameters
iValThe grey code value.
Returns
binary code value.

Definition at line 2898 of file StdUtilFunctions.cpp.

References bit_get(), and bit_put().

+ Here is the call graph for this function:

unsigned long StdUtils::Std_GreyCodeToBinary ( unsigned long  lVal)

Converts a grey code to a binary value.

Author
dcofer
Date
5/4/2011
Parameters
lValThe grey code value.
Returns
binary code value.

Definition at line 2929 of file StdUtilFunctions.cpp.

References bit_get(), and bit_put().

+ Here is the call graph for this function:

unsigned char StdUtils::Std_HexCharToByte ( char  cVal)

Converts a hexidecimal number to a byte.

Author
dcofer
Date
5/3/2011
Parameters
cValThe value.
Returns
byte.

Definition at line 2033 of file StdUtilFunctions.cpp.

Referenced by Std_HexStringToByteArray(), and Std_HexToByte().

+ Here is the caller graph for this function:

void StdUtils::Std_HexStringToByteArray ( std::string  strHex,
CStdArray< unsigned char > &  aryBytes 
)

Converts a hex string to a byte array.

Author
dcofer
Date
5/3/2011
Parameters
strHexThe hexadecimal string.
[in,out]aryBytesThe array of bytes.

Definition at line 1943 of file StdUtilFunctions.cpp.

References Std_HexCharToByte().

+ Here is the call graph for this function:

unsigned char * StdUtils::Std_HexStringToByteArray ( std::string  strHex,
long &  lArraySize 
)

Converts a hex string to a byte array.

Author
dcofer
Date
5/3/2011
Parameters
strHexThe hexadecimal string.
[in,out]lArraySizeSize of the array.
Returns
Byte array

Definition at line 1975 of file StdUtilFunctions.cpp.

References Std_HexCharToByte().

+ Here is the call graph for this function:

unsigned char StdUtils::Std_HexToByte ( std::string  strVal)

Converts a hexidecimal number to a byte.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
byte.

Definition at line 2008 of file StdUtilFunctions.cpp.

References Std_HexCharToByte(), Std_Left(), Std_Right(), and Std_ToUpper().

+ Here is the call graph for this function:

bool StdUtils::Std_InValidRange ( int  iMinVal,
int  iMaxVal,
int  iVal,
bool  bThrowError,
std::string  strParamName 
)

Tests whether a number is within a valid range.

Author
dcofer
Date
5/3/2011
Parameters
iMinValThe minimum value.
iMaxValThe maximum value.
iValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
lMinValThe minimum value.
lMaxValThe maximum value.
lValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
fltMinValThe minimum value.
fltMaxValThe maximum value.
fltValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
dblMinValThe double minimum value.
dblMaxValThe double maximum value.
dblValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
Returns
true if valid, false else.

Definition at line 1454 of file StdUtilFunctions.cpp.

int StdUtils::Std_IRand ( int  low,
int  high 
)

Generates a random number between two values.

Author
dcofer
Date
5/3/2011
Parameters
lowThe low value for the random number.
highThe high value for the random number.
Returns
random number.

Definition at line 1269 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::GenerateAutoSeed(), and FiringRateSim::Neurons::RandomNeuron::RandomNeuron().

+ Here is the caller graph for this function:

bool StdUtils::Std_IsAboveMin ( int  iMinVal,
int  iVal,
bool  bThrowError,
std::string  strParamName,
bool  bInclusiveLimit 
)

Tests if a number is above a minimum value.

Author
dcofer
Date
5/3/2011
Parameters
iMinValThe minimum value.
iValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
lMinValThe minimum value.
lValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
fltMinValThe flt minimum value.
fltValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
dblMinValThe double minimum value.
dblValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
iMaxValThe maximum value.
iValThe test value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
lMaxValThe maximum value.
lValThe value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
fltMaxValThe flt maximum value.
fltValThe flt value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
dblMaxValThe double maximum value.
dblValThe double value.
bThrowErrortrue to throw error if outside of range.
strParamNameName of the parameter.
bInclusiveLimittrue for inclusive limit.
Returns
true if valid, false else.

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.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
true if blank, false else.

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().

+ Here is the call graph for this function:

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.

Author
dcofer
Date
5/4/2011
Parameters
strPathfilename.
Returns
True if full path name.

Definition at line 3218 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::CreateSimulator().

+ Here is the caller graph for this function:

bool StdUtils::Std_IsIntegerType ( std::string  strVal)

Tests if this string is an integer.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

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().

+ Here is the caller graph for this function:

std::string StdUtils::Std_Left ( std::string  strVal,
int  iCount 
)

Gets the left portion of a substring.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
iCountNumber of characters to the left to get.
Returns
.

Definition at line 1006 of file StdUtilFunctions.cpp.

Referenced by Std_HexToByte().

+ Here is the caller graph for this function:

void StdUtils::Std_LoadColor ( CStdXml oXml,
std::string  strParamName,
float *  aryColor,
bool  bThrowError 
)

Loads a color.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
strParamNameName of the xml parameter.
[in,out]aryColorColor array.
bThrowErrortrue 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StdUtils::Std_LoadColor ( std::string  strXml,
std::string  strParamName,
float *  aryColor,
bool  bThrowError 
)

Loads a color.

Author
dcofer
Date
5/3/2011
Parameters
strXmlThe string xml.
strParamNameName of the string parameter.
[in,out]aryColorIf non-null, the ary color.
bThrowErrortrue to throw error.

Definition at line 1189 of file StdUtilFunctions.cpp.

References StdUtils::CStdXml::Deserialize(), StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::FindElement(), and Std_LoadColor().

+ Here is the call graph for this function:

bool StdUtils::Std_LoadPoint ( CStdXml oXml,
std::string  strName,
CStdIPoint &  oPoint,
bool  bThrowError 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
strNameName of the xml element.
[in,out]oPointThe point to load.
bThrowErrortrue to throw error if there is a problem.
Returns
True if point loaded.

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool StdUtils::Std_LoadPoint ( CStdXml oXml,
std::string  strName,
CStdLPoint &  oPoint,
bool  bThrowError 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
strNameName of the xml element.
[in,out]oPointThe point to load.
bThrowErrortrue to throw error if there is a problem.
Returns
True if point loaded.

Definition at line 286 of file StdSerialize.cpp.

References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribLong(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().

+ Here is the call graph for this function:

bool StdUtils::Std_LoadPoint ( CStdXml oXml,
std::string  strName,
CStdFPoint &  oPoint,
bool  bThrowError 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
strNameName of the xml element.
[in,out]oPointThe point to load.
bThrowErrortrue to throw error if there is a problem.
Returns
True if point loaded.

Definition at line 316 of file StdSerialize.cpp.

References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribFloat(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().

+ Here is the call graph for this function:

bool StdUtils::Std_LoadPoint ( CStdXml oXml,
std::string  strName,
CStdDPoint &  oPoint,
bool  bThrowError 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
strNameName of the xml element.
[in,out]oPointThe point to load.
bThrowErrortrue to throw error if there is a problem.
Returns
True if point loaded.

Definition at line 346 of file StdSerialize.cpp.

References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetAttribDouble(), StdUtils::CStdXml::IntoElem(), and StdUtils::CStdXml::OutOfElem().

+ Here is the call graph for this function:

void StdUtils::Std_LoadPoint ( CStdXml oXml,
int  iIndex,
CStdIPoint &  oPoint 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
iIndexZero-based index of the child element to load.
[in,out]oPointThe 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().

+ Here is the call graph for this function:

void StdUtils::Std_LoadPoint ( CStdXml oXml,
int  iIndex,
CStdLPoint &  oPoint 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
iIndexZero-based index of the child element to load.
[in,out]oPointThe 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().

+ Here is the call graph for this function:

void StdUtils::Std_LoadPoint ( CStdXml oXml,
int  iIndex,
CStdFPoint &  oPoint 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
iIndexZero-based index of the child element to load.
[in,out]oPointThe 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().

+ Here is the call graph for this function:

void StdUtils::Std_LoadPoint ( CStdXml oXml,
int  iIndex,
CStdDPoint &  oPoint 
)

Standard load point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
iIndexZero-based index of the child element to load.
[in,out]oPointThe 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().

+ Here is the call graph for this function:

long StdUtils::Std_LoadRGB ( CStdXml oXml,
std::string  strParamName,
bool  bThrowError,
long  lDefault 
)

Loads a color.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
strParamNameName of the xml parameter.
bThrowErrortrue to throw error if there is a problem.
lDefaultThe default color value.
Returns
.

Definition at line 1115 of file StdUtilFunctions.cpp.

References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetChildAttribInt(), Std_InValidRange(), and Std_RGB().

+ Here is the call graph for this function:

void StdUtils::Std_LogMsg ( const int  iLevel,
std::string  strMessage,
std::string  strSourceFile,
int  iSourceLine,
bool  bPrintHeader 
)

Logs a message,.

Author
dcofer
Date
5/4/2011
Parameters
iLevelThe log level.
strMessageLog message.
strSourceFileThe string source file.
iSourceLineSource line number.
bPrintHeadertrue 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.

Author
dcofer
Date
5/3/2011
Parameters
lowThe low value for the random number.
highThe high value for the random number.
Returns
random number.

Definition at line 1287 of file StdUtilFunctions.cpp.

Referenced by IntegrateFireSim::Neuron::CalcUpdate(), and IntegrateFireSim::Neuron::PreCalc().

+ Here is the caller graph for this function:

std::string StdUtils::Std_NullStr ( std::string  strFormat)

If string is blank it uses NULL instead.

Author
dcofer
Date
5/3/2011
Parameters
strFormatThe string format.
Returns
.

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryBinaryDataRaw byte array.
lLastBitThe last bit.
[in,out]lStartBitThe start bit.
lBitLengthBit length of the section to read.
[in,out]cOutThe output.
Returns
True if successful.

Definition at line 2622 of file StdUtilFunctions.cpp.

References Std_GetBinarySection(), and Std_InValidRange().

+ Here is the call graph for this function:

bool StdUtils::Std_ReadBinaryData ( CStdArray< unsigned char > &  aryBinaryData,
long  lLastBit,
long &  lStartBit,
long  lBitLength,
unsigned short &  iOut 
)

Reads binary data from a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryBinaryDataRaw byte array.
lLastBitThe last bit.
[in,out]lStartBitThe start bit.
lBitLengthBit length of the section to read.
[in,out]iOutThe output.
Returns
True if successful.

Definition at line 2656 of file StdUtilFunctions.cpp.

References Std_GetBinarySection(), and Std_InValidRange().

+ Here is the call graph for this function:

bool StdUtils::Std_ReadBinaryData ( CStdArray< unsigned char > &  aryBinaryData,
long  lLastBit,
long &  lStartBit,
long  lBitLength,
unsigned long &  lOut 
)

Reads binary data from a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryBinaryDataRaw byte array.
lLastBitThe last bit.
[in,out]lStartBitThe start bit.
lBitLengthBit length of the section to read.
[in,out]lOutThe output.
Returns
True if successful.

Definition at line 2690 of file StdUtilFunctions.cpp.

References Std_GetBinarySection(), and Std_InValidRange().

+ Here is the call graph for this function:

void StdUtils::Std_RelayError ( CStdErrorInfo  oInfo,
std::string  strSourceFile,
long  lSourceLine 
)

Standard relay error.

Author
dcofer
Date
5/3/2011
Exceptions
oInfoThrown when information.
Parameters
oInfoThe information.
strSourceFileThe string source file.
lSourceLineSource line.
Returns
.

Definition at line 111 of file StdUtilFunctions.cpp.

References AddToErrorCallChain().

+ Here is the call graph for this function:

std::string StdUtils::Std_Replace ( std::string  strVal,
std::string  strFind,
std::string  strReplace 
)

Replaces a substring with another string.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string to test.
strFindThe string to find.
strReplaceThe string to replace it with.
Returns
new string.

Definition at line 1073 of file StdUtilFunctions.cpp.

Referenced by StdUtils::CStdPostFixEval::Equation(), StdUtils::IStdClassFactory::LoadModule(), and Std_SplitPathAndFile().

+ Here is the caller graph for this function:

long StdUtils::Std_RGB ( unsigned char  iRed,
unsigned char  iGreen,
unsigned char  iBlue 
)

Generates a long representation of a color.

Author
dcofer
Date
5/3/2011
Parameters
iRedThe red.
iGreenThe green.
iBlueThe blue.
Returns
.

Definition at line 1096 of file StdUtilFunctions.cpp.

Referenced by Std_LoadRGB().

+ Here is the caller graph for this function:

std::string StdUtils::Std_Right ( std::string  strVal,
int  iCount 
)

Gets the right portion of a substring.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
iCountNumber of characters to the right to get.
Returns
.

Definition at line 1023 of file StdUtilFunctions.cpp.

Referenced by Std_HexToByte().

+ Here is the caller graph for this function:

void StdUtils::Std_SavePoint ( CStdXml oXml,
std::string  strName,
CStdIPoint &  oPoint 
)

Standard save point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to save.
strNameName of the xml packet.
[in,out]oPointThe point to save.
Returns
True if point saved.

Definition at line 164 of file StdSerialize.cpp.

References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().

+ Here is the call graph for this function:

void StdUtils::Std_SavePoint ( CStdXml oXml,
std::string  strName,
CStdLPoint &  oPoint 
)

Standard save point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to save.
strNameName of the xml packet.
[in,out]oPointThe point to save.
Returns
True if point saved.

Definition at line 186 of file StdSerialize.cpp.

References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().

+ Here is the call graph for this function:

void StdUtils::Std_SavePoint ( CStdXml oXml,
std::string  strName,
CStdFPoint &  oPoint 
)

Standard save point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to save.
strNameName of the xml packet.
[in,out]oPointThe point to save.
Returns
True if point saved.

Definition at line 208 of file StdSerialize.cpp.

References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().

+ Here is the call graph for this function:

void StdUtils::Std_SavePoint ( CStdXml oXml,
std::string  strName,
CStdDPoint &  oPoint 
)

Standard save point.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to save.
strNameName of the xml packet.
[in,out]oPointThe point to save.
Returns
True if point saved.

Definition at line 230 of file StdSerialize.cpp.

References StdUtils::CStdXml::AddChildElement(), StdUtils::CStdXml::IntoChildElement(), StdUtils::CStdXml::OutOfElem(), and StdUtils::CStdXml::SetAttrib().

+ Here is the call graph for this function:

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataThe raw byte array.
lStartBitThe start bit.
lBitLengthBit length of the section to replace.
cInThe 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataThe raw byte array.
lStartBitThe start bit.
lBitLengthBit length of the section to replace.
iInThe new data.

Definition at line 2372 of file StdUtilFunctions.cpp.

References Std_InValidRange(), and Std_SetBinarySection().

+ Here is the call graph for this function:

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataThe raw byte array.
lStartBitThe start bit.
lBitLengthBit length of the section to replace.
lInThe new data.

Definition at line 2400 of file StdUtilFunctions.cpp.

References Std_InValidRange(), and Std_SetBinarySection().

+ Here is the call graph for this function:

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataThe raw byte array.
lStartBitThe start bit.
lBitLengthBit length of the section to replace.
aryInDataThe new data.

Definition at line 2434 of file StdUtilFunctions.cpp.

References Std_InValidRange(), and Std_SetByteInArray().

+ Here is the call graph for this function:

void StdUtils::Std_SetBitInArray ( CStdArray< unsigned char > &  aryRawData,
long  lBit,
bool  bVal 
)

Sets a bit within an array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataRaw byte array.
lBitThe bit to set in the array.
bValThe bit value.

Definition at line 2528 of file StdUtilFunctions.cpp.

Referenced by Std_FlipBitInArray(), Std_SetBitRangeInArray(), and Std_SetByteInArray().

+ Here is the caller graph for this function:

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.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataRaw byte array.
lStartBitThe start bit of the section.
lBitLengthBit length of the section.
bValBit value to set.

Definition at line 2561 of file StdUtilFunctions.cpp.

References Std_IsAboveMin(), and Std_SetBitInArray().

+ Here is the call graph for this function:

void StdUtils::Std_SetByteInArray ( CStdArray< unsigned char > &  aryRawData,
unsigned char  cIn,
long  lEndBit,
long  lBitsNeeded 
)

Sets a byte within an array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryRawDataRaw input byte array.
cInThe input byte.
lEndBitThe end bit.
lBitsNeededThe 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StdUtils::Std_SetLogFilePrefix ( std::string  strFilePrefix)

Sets the log file prefix.

Author
dcofer
Date
5/4/2011
Parameters
strFilePrefixThe string file prefix.

Definition at line 3050 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::CreateSimulator().

+ Here is the caller graph for this function:

void StdUtils::Std_SetLogLevel ( const int  iLevel)

Sets the log level.

Author
dcofer
Date
5/4/2011
Parameters
iLevelThe level.

Definition at line 3084 of file StdUtilFunctions.cpp.

void StdUtils::Std_SetTraceLevel ( const int  iVal)

Sets teh trace level.

Author
dcofer
Date
5/4/2011
Parameters
iValThe value.

Definition at line 3034 of file StdUtilFunctions.cpp.

int StdUtils::Std_Sign ( float  fltVal)

Determines the sign of a number.

Author
dcofer
Date
5/4/2011
Parameters
fltValThe value.
Returns
-1 if number is negative, 0 if it is 0, and 1 if it is positive.

Definition at line 1209 of file StdUtilFunctions.cpp.

Referenced by BulletAnimatSim::Environment::Joints::BlHinge::ApplyMotorAssist(), and AnimatSim::Robotics::PulsedLinkage::StepIO().

+ Here is the caller graph for this function:

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.

Author
David Cofer
Date
10/20/2013
Parameters
fltValThe value.
Returns
sign of thenumber .

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.

Author
dcofer
Date
5/3/2011
Parameters
inputThe input.
delimiterThe delimiter.
[in,out]resultsThe results.
Returns
.

Definition at line 798 of file StdUtilFunctions.cpp.

References Std_IsBlank(), and Std_Trim().

+ Here is the call graph for this function:

void StdUtils::Std_SplitPathAndFile ( std::string &  strFullPath,
std::string &  strPath,
std::string &  strFile 
)

Splits the path from the actual filename.

Author
dcofer
Date
5/4/2011
Parameters
strFullPathFull pathname of the string full file.
[in,out]strPathFull path without the filename.
[in,out]strFileFilename.

Definition at line 3240 of file StdUtilFunctions.cpp.

References Std_Replace().

Referenced by AnimatSim::Simulator::CreateSimulator().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StdUtils::Std_SRand ( unsigned long  lSeed)

Sets the seed for generating a random number.

Author
dcofer
Date
5/3/2011
Parameters
lSeedThe seed.

Definition at line 1255 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::GenerateAutoSeed(), and AnimatSim::Simulator::InitializeRandomNumbers().

+ Here is the caller graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strValueName,
unsigned char  iVal 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strValueNameName of the string value.
iValThe value.
Returns
.

Definition at line 132 of file StdUtilFunctions.cpp.

Referenced by Std_ThrowError().

+ Here is the caller graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strValueName,
unsigned short  iVal 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strValueNameName of the string value.
iValThe value.
Returns
.

Definition at line 155 of file StdUtilFunctions.cpp.

References Std_ThrowError().

+ Here is the call graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strValueName,
int  iVal 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strValueNameName of the string value.
iValThe value.
Returns
.

Definition at line 178 of file StdUtilFunctions.cpp.

References Std_ThrowError().

+ Here is the call graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strValueName,
long  lVal 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strValueNameName of the string value.
lValThe value.
Returns
.

Definition at line 201 of file StdUtilFunctions.cpp.

References Std_ThrowError().

+ Here is the call graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strValueName,
float  fltVal 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strValueNameName of the string value.
fltValThe flt value.
Returns
.

Definition at line 224 of file StdUtilFunctions.cpp.

References Std_ThrowError().

+ Here is the call graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strValueName,
double  dblVal 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strValueNameName of the string value.
dblValThe double value.
Returns
.

Definition at line 247 of file StdUtilFunctions.cpp.

References Std_ThrowError().

+ Here is the call graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strValueName,
std::string  strVal 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strValueNameName of the string value.
strValThe string value.
Returns
.

Definition at line 270 of file StdUtilFunctions.cpp.

References Std_ThrowError().

+ Here is the call graph for this function:

void StdUtils::Std_ThrowError ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine,
std::string  strText 
)

Standard throw error.

Author
dcofer
Date
5/3/2011
Exceptions
oInfoThrown when information.
Parameters
lErrorThe error number.
strErrorThe string error message.
strSourceFileThe string source filename.
lSourceLineSource line number.
strTextThe string text.
Returns
.

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().

+ Here is the call graph for this function:

bool StdUtils::Std_ToBool ( int  iVal)

Converts a value toa bool.

Author
dcofer
Date
5/3/2011
Parameters
iValThe value.
Returns
.

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.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

Definition at line 614 of file StdUtilFunctions.cpp.

References Std_ToUpper(), and Std_Trim().

+ Here is the call graph for this function:

std::string StdUtils::Std_ToLower ( std::string  strVal)

Converts a string to lower case.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

Definition at line 1055 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::Simulator::LoadClassFactory(), and StdUtils::IStdClassFactory::LoadModule().

+ Here is the caller graph for this function:

std::string StdUtils::Std_ToStr ( std::string  strVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

Definition at line 321 of file StdUtilFunctions.cpp.

Referenced by AnimatSim::AnimatBase::SetData().

+ Here is the caller graph for this function:

std::string StdUtils::Std_ToStr ( const char *  strVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

Definition at line 334 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( unsigned char  iVal)

Converts a value to a std::string.

Author
dcofer
Date
5/3/2011
Parameters
iValThe value.
Returns
.

Definition at line 350 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( unsigned short  iVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
iValThe value.
Returns
.

Definition at line 368 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( int  iVal)

Converts a value to a std::string.

Author
dcofer
Date
5/3/2011
Parameters
iValThe value.
Returns
.

Definition at line 386 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( unsigned int  iVal)

Converts a value to a std::string.

Author
dcofer
Date
5/3/2011
Parameters
iValThe value.
Returns
.

Definition at line 404 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( long  lVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
lValThe value.
Returns
.

Definition at line 422 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( unsigned long  lVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
lValThe value.
Returns
.

Definition at line 440 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( float  fltVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
fltValThe flt value.
Returns
.

Definition at line 458 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( double  dblVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
dblValThe double value.
Returns
.

Definition at line 476 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( bool  bVal)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
bValtrue to value.
Returns
.

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.

Author
dcofer
Date
5/3/2011
Parameters
strFormatThe string format.
iValThe value.
Returns
.

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.

Author
dcofer
Date
5/3/2011
Parameters
strFormatThe string format.
iValThe value.
Returns
.

Definition at line 527 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( std::string  strFormat,
int  iVal 
)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
strFormatThe string format.
iValThe value.
Returns
.

Definition at line 541 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( std::string  strFormat,
long  lVal 
)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
strFormatThe string format.
lValThe value.
Returns
.

Definition at line 555 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( std::string  strFormat,
float  fltVal 
)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
strFormatThe string format.
fltValThe flt value.
Returns
.

Definition at line 569 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToStr ( std::string  strFormat,
double  dblVal 
)

Converts a value to a string.

Author
dcofer
Date
5/3/2011
Parameters
strFormatThe string format.
dblValThe double value.
Returns
.

Definition at line 583 of file StdUtilFunctions.cpp.

std::string StdUtils::Std_ToUpper ( std::string  strVal)

Converts a string to upper case.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

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.

Author
dcofer
Date
5/4/2011
Parameters
iLevelThe log level.
strMessageLog message.
strSourceFileThe string source file.
iSourceLineSource line number.
bLogToFiletrue to log to file.
bPrintHeadertrue 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.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

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().

+ Here is the call graph for this function:

std::string StdUtils::Std_TrimLeft ( std::string  strVal)

Standard trim left.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

Definition at line 925 of file StdUtilFunctions.cpp.

References NotSpace().

Referenced by Std_Trim().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string StdUtils::Std_TrimRight ( std::string  strVal)

Standard trim right.

Author
dcofer
Date
5/3/2011
Parameters
strValThe string value.
Returns
.

Definition at line 941 of file StdUtilFunctions.cpp.

References NotSpace().

Referenced by Std_Trim().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int StdUtils::Std_VariantTypeToConst ( std::string  strType)

Standard variant type to constant.

Author
dcofer
Date
5/3/2011
Parameters
strTypeType of the string.
Returns
.

Definition at line 703 of file StdUtilFunctions.cpp.

References Std_ToUpper(), and Std_Trim().

Referenced by StdUtils::CStdVariant::Load().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StdUtils::Std_WriteBinaryData ( CStdArray< unsigned char > &  aryBinaryData,
long &  lStartBit,
long  lBitLength,
unsigned char  cIn 
)

Writes data to a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryBinaryDataRaw byte array.
[in,out]lStartBitThe start bit.
lBitLengthBit length of the section.
cInThe input.

Definition at line 2722 of file StdUtilFunctions.cpp.

References Std_SetBinarySection().

+ Here is the call graph for this function:

void StdUtils::Std_WriteBinaryData ( CStdArray< unsigned char > &  aryBinaryData,
long &  lStartBit,
long  lBitLength,
unsigned short  iIn 
)

Writes data to a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryBinaryDataRaw byte array.
[in,out]lStartBitThe start bit.
lBitLengthBit length of the section.
iInThe input.

Definition at line 2745 of file StdUtilFunctions.cpp.

References Std_SetBinarySection().

+ Here is the call graph for this function:

void StdUtils::Std_WriteBinaryData ( CStdArray< unsigned char > &  aryBinaryData,
long &  lStartBit,
long  lBitLength,
unsigned long  lIn 
)

Writes data to a byte array.

Author
dcofer
Date
5/4/2011
Parameters
[in,out]aryBinaryDataRaw byte array.
[in,out]lStartBitThe start bit.
lBitLengthBit length of the section.
lInThe input.

Definition at line 2768 of file StdUtilFunctions.cpp.

References Std_SetBinarySection().

+ Here is the call graph for this function: