B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Utils::PropVariant Class Reference

#include <Properties.h>

+ Collaboration diagram for Utils::PropVariant:

Public Member Functions

bool asBool ()
 
int asInt ()
 
void assignBool (bool value)
 
void assignInt (int value)
 
void assignStr (const std::string &value)
 
const std::string & asString ()
 
void init ()
 
PropVariantoperator= (const std::string &value)
 
 PropVariant ()
 
 PropVariant (const std::string &value)
 
 PropVariant (int value)
 
 PropVariant (bool value)
 

Public Attributes

bool isNumCache_
 
bool isStrCache_
 
int nVal_
 
std::string sVal_
 
PropType type_
 

Constructor & Destructor Documentation

Utils::PropVariant::PropVariant ( )
inline

References init().

Utils::PropVariant::PropVariant ( const std::string &  value)
inline

References assignStr(), and init().

Utils::PropVariant::PropVariant ( int  value)
inline

References assignInt(), and init().

Utils::PropVariant::PropVariant ( bool  value)
inline

References assignBool(), and init().

Member Function Documentation

bool Utils::PropVariant::asBool ( )
inline
int Utils::PropVariant::asInt ( )
inline

References isNumCache_, nVal_, and sVal_.

void Utils::PropVariant::assignBool ( bool  value)
inline

References isNumCache_, isStrCache_, nVal_, and type_.

Referenced by PropVariant().

void Utils::PropVariant::assignInt ( int  value)
inline

References isNumCache_, isStrCache_, nVal_, and type_.

Referenced by PropVariant().

void Utils::PropVariant::assignStr ( const std::string &  value)
inline

References isNumCache_, isStrCache_, sVal_, and type_.

Referenced by operator=(), and PropVariant().

const std::string& Utils::PropVariant::asString ( )
void Utils::PropVariant::init ( )
inline

References isNumCache_, isStrCache_, nVal_, and type_.

Referenced by PropVariant().

PropVariant& Utils::PropVariant::operator= ( const std::string &  value)
inline

References assignStr().

Member Data Documentation

bool Utils::PropVariant::isNumCache_
bool Utils::PropVariant::isStrCache_

Referenced by assignBool(), assignInt(), assignStr(), and init().

int Utils::PropVariant::nVal_
std::string Utils::PropVariant::sVal_

Referenced by asBool(), asInt(), and assignStr().

PropType Utils::PropVariant::type_

Referenced by assignBool(), assignInt(), assignStr(), and init().