a2dBoolProperty Class Reference
[a2dPropObject holds property objects]

property to hold a bool type variable to be associated with a a2dPropObject More...

#include <gen.h>

Inheritance diagram for a2dBoolProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dBoolProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dBoolProperty (const a2dPropertyIdBool *id, bool deep=true)
 a2dBoolProperty (const a2dBoolProperty &other, a2dObject::CloneOptions options)
virtual a2dNamedPropertyClone (a2dObject::CloneOptions options) const
 Virtual copy constructor.
virtual void Assign (const a2dNamedProperty &other)
 Virtual assignment operator.
void SetValue (bool value)
bool GetValue () const
virtual bool GetBool () const
 when a2dBoolProperty, return its value else assert
bool * GetValuePtr ()
bool & GetValueRef ()
const bool * GetValuePtr () const
const bool & GetValueRef () const
virtual wxString StringRepresentation () const
virtual wxString StringValueRepresentation () const
virtual void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 Save settings.
virtual void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 Load settings.

Static Public Member Functions

static a2dBoolPropertyCreatePropertyFromString (const a2dPropertyIdBool *id, const wxString &value)
 Construct a new property object from a string.

Protected Attributes

bool m_value


Detailed Description

property to hold a bool type variable to be associated with a a2dPropObject

Definition at line 1447 of file gen.h.


Member Function Documentation

a2dBoolProperty * a2dBoolProperty::CreatePropertyFromString ( const a2dPropertyIdBool id,
const wxString &  value 
) [static]

Construct a new property object from a string.

Accepted values for true are:

  • "true"
  • "yes"
  • "y"
  • "1"
  • native yes, eg. "ja" in the Netherlands or Germany. Dependant on local settings (i18n). All other values are interpreted as false.

Definition at line 897 of file gen.cpp.

wxString a2dBoolProperty::StringRepresentation (  )  const [virtual]

Convert the property to a string, used to serialize class. Override to define it for your properties.

Reimplemented from a2dNamedProperty.

Definition at line 938 of file gen.cpp.

wxString a2dBoolProperty::StringValueRepresentation (  )  const [virtual]

Convert the property value to a string, used to serialize class. Override to define it for your properties.

Reimplemented from a2dNamedProperty.

Definition at line 943 of file gen.cpp.


The documentation for this class was generated from the following files:
a2dBoolProperty Class Reference -- Tue Aug 31 18:12:04 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation