Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

ARLib::Utility Namespace Reference

Utility and Helpers. More...


Classes

class  ARLib::Utility::ARArguments
 Class for manipulating program arguments as specified on the command line. More...
class  ARLib::Utility::ARConfiguration
 Class for managing configuration options. More...
class  ARLib::Utility::ARFile
 Class for manipulating and retrieving information about an os file. More...
class  ARLib::Utility::ARMatrix< T >
 Template class for the manipulation of 2-dimension data. More...
class  ARLib::Utility::ARMemory< T >
 Template class for managing typed memory. More...
class  ARLib::Utility::ARPoint2D< T >
 Represents two dimensional coordinates (x,y). More...
class  ARLib::Utility::ARPoint3D< T >
 Represents three dimensional coordinates (x,y,z). More...
class  ARLib::Utility::ARRect< T >
 Rectangle data type. More...
class  ARLib::Utility::ARString
 Provides extensions to the current std::string class. More...

Typedefs

typedef ARPoint2D< int > ARPoint2Di
 Definition for storing integer 2D point coordinates.
typedef ARPoint2D< double > ARPoint2Dd
 Definition for storing double 2D point coordinates.
typedef ARPoint2D< float > ARPoint2Df
 Definition for storing float 2D point coordinates.
typedef ARPoint3D< int > ARPoint3Di
 Definition for storing integer 3D point coordinates.
typedef ARPoint3D< double > ARPoint3Dd
 Definition for storing double 3D point coordinates.
typedef ARPoint3D< float > ARPoint3Df
 Definition for storing float 3D point coordinates.

Functions

template<class T>
void str_to_vec (const ARString &source, std::vector< T > &arr_types, char delimiter)
 Function for converting a string into a vector of typed values.


Detailed Description

Utility and Helpers.

Function Documentation

template<class T>
void str_to_vec const ARString &  source,
std::vector< T > &  arr_types,
char  delimiter
 

Function for converting a string into a vector of typed values.

For example, if the passed in string was "123,234,432" and the vector was defined as an integer vector, then a vector of integers would be returned.

Parameters:
source The ARString object containing the string.
arr_types The std::vector to receive the string values.
delimiter The character to use as a delimiter when breaking up the string.

The following example will load the vector variable "numbers" with 10, 20, 30, 40 and 50

ARString szNumbers = "10,20,30,40,50";
vector<int> numbers;

str_to_vec( szNumbers, numbers, ',' );


Generated on Wed Aug 31 18:01:39 2005 for ARLib by  doxygen 1.3.9.1