COOPY » Guide  version 0.6.5
Public Member Functions | Static Public Member Functions
coopy::store::PolyValue Class Reference

#include <Property.h>

Inheritance diagram for coopy::store::PolyValue:
coopy::store::Value coopy::store::RefCount

Public Member Functions

 PolyValue ()
 PolyValue (const PolyValue &alt)
virtual ~PolyValue ()
const PolyValueoperator= (const PolyValue &alt)
void clear ()
bool setInt (int x)
bool setBoolean (bool x)
bool setString (const char *str)
bool setString (const std::string &str)
bool setNull ()
bool setMap ()
virtual int asInt () const
virtual bool asBoolean () const
virtual std::string asString () const
virtual bool isInt () const
virtual bool isBoolean () const
virtual bool isString () const
virtual bool isNull () const
virtual std::string toString () const
virtual PropertyasMap ()
virtual const PropertyasMap () const
virtual bool isMap () const
int addReference ()
int removeReference ()
int getReferenceCount ()

Static Public Member Functions

static PolyValue makeInt (int x)
static PolyValue makeBoolean (bool x)
static PolyValue makeString (const char *str)
static PolyValue makeString (const std::string &str)
static PolyValue makeMap ()

Detailed Description

Definition at line 39 of file Property.h.


Constructor & Destructor Documentation

coopy::store::PolyValue::PolyValue ( ) [inline]

Definition at line 44 of file Property.h.

coopy::store::PolyValue::PolyValue ( const PolyValue alt) [inline]

Definition at line 48 of file Property.h.

References coopy::store::RefCount::addReference().

virtual coopy::store::PolyValue::~PolyValue ( ) [inline, virtual]

Definition at line 55 of file Property.h.

References clear().


Member Function Documentation

int coopy::store::RefCount::addReference ( ) [inline, inherited]
virtual bool coopy::store::PolyValue::asBoolean ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 89 of file Property.h.

References coopy::store::Value::asBoolean().

virtual int coopy::store::PolyValue::asInt ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 84 of file Property.h.

References coopy::store::Value::asInt().

Property & Value::asMap ( ) [virtual, inherited]
const Property & Value::asMap ( ) const [virtual, inherited]

Reimplemented in coopy::store::Property.

Definition at line 21 of file Property.cpp.

References coopy::store::Property::getNullProperty().

virtual std::string coopy::store::PolyValue::asString ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 94 of file Property.h.

References coopy::store::Value::asString().

Referenced by coopy::store::FormatDesc::toString().

void coopy::store::PolyValue::clear ( ) [inline]

Definition at line 68 of file Property.h.

References coopy::store::RefCount::removeReference().

Referenced by operator=(), and ~PolyValue().

int coopy::store::RefCount::getReferenceCount ( ) [inline, inherited]

Definition at line 40 of file RefCount.h.

virtual bool coopy::store::PolyValue::isBoolean ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 104 of file Property.h.

References coopy::store::Value::isBoolean().

virtual bool coopy::store::PolyValue::isInt ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 99 of file Property.h.

References coopy::store::Value::isInt().

virtual bool coopy::store::Value::isMap ( ) const [inline, virtual, inherited]

Reimplemented in coopy::store::Property.

Definition at line 32 of file Property.h.

virtual bool coopy::store::PolyValue::isNull ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 114 of file Property.h.

References coopy::store::Value::isNull().

virtual bool coopy::store::PolyValue::isString ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 109 of file Property.h.

References coopy::store::Value::isString().

Referenced by coopy::store::FormatDesc::toString().

static PolyValue coopy::store::PolyValue::makeBoolean ( bool  x) [inline, static]

Definition at line 131 of file Property.h.

References setBoolean().

Referenced by write().

static PolyValue coopy::store::PolyValue::makeInt ( int  x) [inline, static]

Definition at line 125 of file Property.h.

References setInt().

Referenced by coopy::store::remotesql::RemoteSqlTextBook::open().

static PolyValue coopy::store::PolyValue::makeMap ( ) [inline, static]

Definition at line 149 of file Property.h.

References setMap().

static PolyValue coopy::store::PolyValue::makeString ( const std::string &  str) [inline, static]

Definition at line 143 of file Property.h.

References setString().

static PolyValue coopy::store::PolyValue::makeString ( const char *  str) [inline, static]

Definition at line 137 of file Property.h.

References setString().

Referenced by write().

const PolyValue& coopy::store::PolyValue::operator= ( const PolyValue alt) [inline]

Definition at line 59 of file Property.h.

References coopy::store::RefCount::addReference(), and clear().

int coopy::store::RefCount::removeReference ( ) [inline, inherited]
bool PolyValue::setBoolean ( bool  x)

Definition at line 89 of file Property.cpp.

References NULL.

Referenced by makeBoolean().

bool PolyValue::setInt ( int  x)

Definition at line 82 of file Property.cpp.

References NULL.

Referenced by makeInt().

bool PolyValue::setMap ( )

Definition at line 115 of file Property.cpp.

References NULL.

Referenced by makeMap().

bool PolyValue::setNull ( )

Definition at line 110 of file Property.cpp.

bool PolyValue::setString ( const std::string &  str)

Definition at line 103 of file Property.cpp.

References NULL.

bool PolyValue::setString ( const char *  str)

Definition at line 96 of file Property.cpp.

References NULL.

Referenced by makeString().

virtual std::string coopy::store::PolyValue::toString ( ) const [inline, virtual]

Implements coopy::store::Value.

Definition at line 119 of file Property.h.

References coopy::store::Value::toString().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines