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

CP_PropertyList Namespace Reference


Classes

class  Array
class  BinaryData
class  Boolean
class  DateTime
class  Dictionary
class  Node
class  NodeFactory
class  NodeFactoryImp
class  Number
class  String

Namespaces

namespace  @81

Enumerations

enum  NodeType_t {
  NodeType_Any = 0, NodeType_String, NodeType_Number, NodeType_Boolean,
  NodeType_DateTime, NodeType_BinaryData, NodeType_Dictionary, NodeType_Array
}

Functions

NodeReadFromFile (const CP_FileSystemSpec &inPropertyListFile, NodeType_t inExpectedNodeType=NodeType_Any)
void WriteToFile (const Node &inPropertyList, const CP_FileSystemSpec &inTargetFile)
static double ScanDouble (const CP_String &inputString)
CP_SmartRef< NodeProcessXMLNode (CPLAT::CP_XMLDocNode *rootNode)

Variables

CP_Mutex sharedBooleanAccessMutex


Enumeration Type Documentation

enum NodeType_t
 

Enumeration values:
NodeType_Any  'wildcard' pseudo-node-type matching any node type; not a real node type
NodeType_String  node represents a string
NodeType_Number  node represents a number
NodeType_Boolean  node represents a boolean value
NodeType_DateTime  node represents a date/time value
NodeType_BinaryData  node represents a blob of binary data
NodeType_Dictionary  node represents a key-value-coded dictionary
NodeType_Array  node represents an array


Function Documentation

Node * CP_PropertyList::ReadFromFile const CP_FileSystemSpec inPropertyListFile,
NodeType_t  inExpectedNodeType = NodeType_Any
 

Read in and parse the passed in property list file. This will open and read in the XML property list document creating the root node specified in the document including all of it's child nodes.

Parameters:
inPropertyListFile A CP_FileSystemSpec to the property list file to be parsed.
Exceptions:
CP_OSErrorException raised when problems occur while opening, reading or parsing.
Returns:
A pointer to the root node of the property list.

void CP_PropertyList::WriteToFile const Node &  inPropertyList,
const CP_FileSystemSpec inTargetFile
 

Save the specified property list as XML into the target file. If the file exists, it'll be overwritten.

Parameters:
inPropertyList The property list (it's root node) to be written.
inTargetFile A CP_FileSystemSpec to the location where the target file should be created.
Exceptions:
CP_OSErrorException raised when problems occur while opening, reading or parsing.
Returns:
void

static double ScanDouble const CP_String inputString  )  [static]
 

CP_SmartRef<Node> ProcessXMLNode CPLAT::CP_XMLDocNode *  rootNode  ) 
 


Variable Documentation

CP_Mutex CP_PropertyList::sharedBooleanAccessMutex [static]
 


Generated on Sat Sep 17 20:02:37 2005 for CPLAT by  doxygen 1.4.0