Enumeration and utilities for the primitive types in fields and arrays.
More...
#include <Primitive.h>
|
| template<typename T > |
| std::string | toString (const T &val) |
| |
| template<typename T > |
| T | fromString (const std::string &str) |
| |
| template<typename T > |
| void | toString (const T *vals, std::string *strs, size_t size) |
| |
| template<typename T > |
| void | fromString (const std::string *strs, T *vals, size_t size) |
| |
|
| static Type | enumFromString (std::string strType) |
| | Parses the string equivalent of the enum. More...
|
| |
| static std::string | enumToString (Type type) |
| | Returns the string equivalent of the enum. More...
|
| |
| template<typename T > |
| static std::string | toString (const T &val) |
| | For use by the framework. More...
|
| |
| template<typename T > |
| static T | fromString (const std::string &str) |
| | For use by the framework. More...
|
| |
| template<typename T > |
| static void | toString (const T *vals, std::string *strs, size_t size) |
| | For use by the framework. More...
|
| |
| template<typename T > |
| static void | fromString (const std::string *strs, T *vals, size_t size) |
| | For use by the framework. More...
|
| |
Enumeration and utilities for the primitive types in fields and arrays.
| Enumerator |
|---|
| BOOLEAN |
C++ type is bool.
|
| BYTE |
C++ type is char.
|
| INTEGER |
C++ type is int.
|
| FLOAT |
C++ type is float.
|
| DOUBLE |
C++ type is double.
|
| STRING |
C++ type is std::string.
|
| SIZE_T |
C++ type is size_t.
|
| LONG_DOUBLE |
C++ type is long double.
|
Parses the string equivalent of the enum.
For example: "BYTE" –> BYTE
Returns the string equivalent of the enum.
For example: BYTE –> "BYTE"
template<typename T >
| template size_t BUSBOY::Primitive::fromString< size_t > |
( |
const std::string & |
str | ) |
|
|
static |
For use by the framework.
template<typename T >
| static void BUSBOY::Primitive::fromString |
( |
const std::string * |
strs, |
|
|
T * |
vals, |
|
|
size_t |
size |
|
) |
| |
|
static |
For use by the framework.
template<typename T >
| T BUSBOY::Primitive::fromString |
( |
const std::string & |
str | ) |
|
template<typename T >
| void BUSBOY::Primitive::fromString |
( |
const std::string * |
strs, |
|
|
T * |
vals, |
|
|
size_t |
size |
|
) |
| |
template<typename T >
| static std::string BUSBOY::Primitive::toString |
( |
const T & |
val | ) |
|
|
static |
For use by the framework.
template<typename T >
| static void BUSBOY::Primitive::toString |
( |
const T * |
vals, |
|
|
std::string * |
strs, |
|
|
size_t |
size |
|
) |
| |
|
static |
For use by the framework.
template<typename T >
| std::string BUSBOY::Primitive::toString |
( |
const T & |
val | ) |
|
template<typename T >
| void BUSBOY::Primitive::toString |
( |
const T * |
vals, |
|
|
std::string * |
strs, |
|
|
size_t |
size |
|
) |
| |
The documentation for this class was generated from the following files:
Copyright 2014 Google Inc. All rights reserved.