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

#include <Property.h>

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

Public Member Functions

virtual bool isMap () const
virtual bool isNull () const
virtual PropertyasMap ()
virtual const PropertyasMap () const
bool put (const char *key, int val)
bool put (const char *key, bool val)
bool put (const char *key, const char *str)
bool put (const char *key, const std::string &str)
Propertynest (const char *key)
bool check (const char *key) const
bool flag (const char *key, bool def) const
const Valueget (const char *key) const
PolyValue get (const char *key, PolyValue default_value) const
std::string toString () const
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
int addReference ()
int removeReference ()
int getReferenceCount ()

Static Public Member Functions

static PropertygetNullProperty ()

Detailed Description

Definition at line 156 of file Property.h.


Member Function Documentation

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

Reimplemented in coopy::store::PolyValue.

Definition at line 24 of file Property.h.

Referenced by coopy::store::PolyValue::asBoolean(), coopy::store::PolyBook::attach(), and write().

virtual int coopy::store::Value::asInt ( ) const [inline, virtual, inherited]
virtual Property& coopy::store::Property::asMap ( ) [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 165 of file Property.h.

virtual const Property& coopy::store::Property::asMap ( ) const [inline, virtual]

Reimplemented from coopy::store::Value.

Definition at line 166 of file Property.h.

virtual std::string coopy::store::Value::asString ( ) const [inline, virtual, inherited]
bool coopy::store::Property::check ( const char *  key) const [inline]
bool coopy::store::Property::flag ( const char *  key,
bool  def 
) const [inline]

Definition at line 201 of file Property.h.

const Value& coopy::store::Property::get ( const char *  key) const [inline]
PolyValue coopy::store::Property::get ( const char *  key,
PolyValue  default_value 
) const [inline]

Definition at line 213 of file Property.h.

static Property& coopy::store::Property::getNullProperty ( ) [inline, static]

Definition at line 221 of file Property.h.

Referenced by coopy::store::Value::asMap().

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

Definition at line 40 of file RefCount.h.

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

Reimplemented in coopy::store::PolyValue.

Definition at line 30 of file Property.h.

Referenced by coopy::store::PolyValue::isBoolean().

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

Reimplemented in coopy::store::PolyValue.

Definition at line 29 of file Property.h.

Referenced by coopy::store::PolyValue::isInt().

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

Reimplemented from coopy::store::Value.

Definition at line 163 of file Property.h.

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

Reimplemented from coopy::store::Value.

Definition at line 164 of file Property.h.

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

Reimplemented in coopy::store::PolyValue.

Definition at line 31 of file Property.h.

Referenced by coopy::store::PolyValue::isString().

Property& coopy::store::Property::nest ( const char *  key) [inline]
bool coopy::store::Property::put ( const char *  key,
const std::string &  str 
) [inline]

Definition at line 183 of file Property.h.

bool coopy::store::Property::put ( const char *  key,
const char *  str 
) [inline]

Definition at line 178 of file Property.h.

bool coopy::store::Property::put ( const char *  key,
bool  val 
) [inline]

Definition at line 173 of file Property.h.

bool coopy::store::Property::put ( const char *  key,
int  val 
) [inline]
int coopy::store::RefCount::removeReference ( ) [inline, inherited]
std::string Property::toString ( ) const [virtual]

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