Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_PropertyList::Number Class Reference

Inheritance diagram for CP_PropertyList::Number:

CP_PropertyList::Node CP_CFObject< CFNumberRef > CP_M_RefCounted List of all members.

Public Types

enum  NumberType_t { NumberType_Integer, NumberType_LargeInteger, NumberType_Float, NumberType_NaN }

Public Member Functions

 Number ()
 Number (UInt32 inValue)
 Number (SInt32 inValue)
 Number (UInt64 inValue)
 Number (SInt64 inValue)
 Number (double inValue)
 Number (const Number &inSrc)
 Number (CFNumberRef inRef, bool inRetain=true)
 ~Number () throw ()
NumberType_t NumberType () const throw ()
UInt32 GetUInt32 () const
SInt32 GetSInt32 () const
UInt32 GetUInt64 () const
SInt32 GetSInt64 () const
double GetFloat () const
virtual void PrintToLog (CP_LogFile &inLogFile, SInt32 inLevel=0, SInt32 inIndentLevel=0) const
virtual NodeType_t NodeType () const throw ()
virtual CFTypeRef GetNodeCFRef () const
virtual void WriteXMLData (CP_OutStream &inXMLDataStream) const

Static Public Member Functions

static NumberFromXMLData (CP_InStream &inXMLDataStream)
static NodeFromXMLData (CP_InStream &inXMLDataStream, NodeType_t inExpectedNodeType=NodeType_Any)
static NodeCreateNodeForCFObject (CFTypeRef inObject)

Protected Member Functions

void AttachRef (CFNumberRefinRef, bool inRetain)
CFNumberRef DetachRef ()
CFNumberRef GetCFRef () const
bool IsValid () const

Protected Attributes

CFNumberRef fCFObject

Member Enumeration Documentation

enum CP_PropertyList::Number::NumberType_t
 

Enumeration values:
NumberType_Integer 
NumberType_LargeInteger 
NumberType_Float 
NumberType_NaN 


Constructor & Destructor Documentation

CP_PropertyList::Number::Number  ) 
 

CP_PropertyList_Uses_CoreFoundation

CP_PropertyList::Number::Number UInt32  inValue  )  [explicit]
 

CP_PropertyList::Number::Number SInt32  inValue  )  [explicit]
 

CP_PropertyList::Number::Number UInt64  inValue  )  [explicit]
 

CP_PropertyList::Number::Number SInt64  inValue  )  [explicit]
 

CP_PropertyList::Number::Number double  inValue  )  [explicit]
 

CP_PropertyList::Number::Number const Number inSrc  ) 
 

CP_PropertyList::Number::Number CFNumberRef  inRef,
bool  inRetain = true
 

CP_PropertyList::Number::~Number  )  throw ()
 


Member Function Documentation

Number::NumberType_t CP_PropertyList::Number::NumberType  )  const throw ()
 

UInt32 CP_PropertyList::Number::GetUInt32  )  const
 

SInt32 CP_PropertyList::Number::GetSInt32  )  const
 

UInt32 CP_PropertyList::Number::GetUInt64  )  const
 

SInt32 CP_PropertyList::Number::GetSInt64  )  const
 

double CP_PropertyList::Number::GetFloat  )  const
 

void CP_PropertyList::Number::PrintToLog CP_LogFile inLogFile,
SInt32  inLevel = 0,
SInt32  inIndentLevel = 0
const [virtual]
 

Implements CP_PropertyList::Node.

NodeType_t CP_PropertyList::Number::NodeType  )  const throw () [virtual]
 

Implements CP_PropertyList::Node.

Number * CP_PropertyList::Number::FromXMLData CP_InStream inXMLDataStream  )  [static]
 

virtual CFTypeRef CP_PropertyList::Number::GetNodeCFRef  )  const [virtual]
 

Implements CP_PropertyList::Node.

void CP_PropertyList::Node::WriteXMLData CP_OutStream inXMLDataStream  )  const [virtual, inherited]
 

Node * CP_PropertyList::Node::FromXMLData CP_InStream inXMLDataStream,
NodeType_t  inExpectedNodeType = NodeType_Any
[static, inherited]
 

static Node* CP_PropertyList::Node::CreateNodeForCFObject CFTypeRef  inObject  )  [static, inherited]
 

UInt32 CP_M_RefCounted::AddReference  )  const [inherited]
 

Add a reference to our object, returning the new reference count.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

UInt32 CP_M_RefCounted::RemoveReference  )  const [inherited]
 

Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

void CP_M_RefCounted::Autorelease  )  const [inherited]
 

Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.

See also:
CP_AutoReleasePool
Exceptions:
none 
Returns:
void

UInt32 CP_M_RefCounted::GetRefCount  )  const [inherited]
 

Returns the current ref count.

Exceptions:
none 
Returns:
UInt32 The current referencce count.

void CP_CFObject< CFNumberRef >::AttachRef CFNumberRef   inRef,
bool  inRetain
[inherited]
 

CFNumberRef CP_CFObject< CFNumberRef >::DetachRef  )  [inherited]
 

CFNumberRef CP_CFObject< CFNumberRef >::GetCFRef  )  const [inherited]
 

bool CP_CFObject< CFNumberRef >::IsValid  )  const [inherited]
 


Member Data Documentation

CFNumberRef CP_CFObject< CFNumberRef >::fCFObject [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:02:38 2005 for CPLAT by  doxygen 1.4.0