wxPackageXML Class Reference

#include <wxp.h>

Inheritance diagram for wxPackageXML:

wxPackageRepositoryXMLDescriptor wxPackageXMLDescriptor wxPresetXMLDescriptor List of all members.

Public Member Functions

 wxPackageXML ()
virtual ~wxPackageXML ()
int GetIndentationStep () const
void SetIndentationStep (int n)
void HandleUnknownTag (wxXmlNode *node)
 To be called when an unknown tag is found.
wxPackageCommandOptionArray LoadOptions (const wxXmlNode *n)
 Loads an <option-set> or <options> from the given node and returns it.
wxPackageCommandOption LoadOption (const wxXmlNode *n)
 Loads an <option> from the given node and returns it.
wxPackageCondition LoadCondition (const wxXmlNode *n)
 Loads an <if> from the given node and returns it.
wxPackageCommand LoadCommand (const wxXmlNode *n)
 Loads a <cmd> from the given node and returns it.
wxString GetStrippedNodeContent (const wxXmlNode *n) const
 Returns the contents of the given node with all standard substitutions.
wxXmlNode * AddChildIndentation (wxXmlNode *node, int level)
wxXmlNode * AddSiblingIndentation (wxXmlNode *node, int level)
wxXmlNode * InsertChildIndentation (wxXmlNode *node, wxXmlNode *before_node, int level)
 Inserts an indentation child.
wxXmlNode * SaveOption (const wxPackageCommandOption &opt, int level)
 Saves given <option> in a wxXmlNode and returns it.
wxXmlNode * SaveCommand (const wxPackageCommand &cmd, int level)
 Saves given <cmd> in a wxXmlNode and returns it.
wxXmlNode * SaveCondition (const wxPackageCondition &cond, int level)
 Saves given <if> in a wxXmlNode and returns it.

Protected Attributes

int m_nIndentationStep
 How much spaces is a single indentation ?

Detailed Description

A base class to load those tags which are common to both presets and WXP files.

Definition at line 37 of file wxp.h.


Member Function Documentation

wxXmlNode * wxPackageXML::AddChildIndentation ( wxXmlNode *  node,
int  level 
)

Appends a child text node to the given node containing a newline followed by a number of spaces determined by the level multiplied by the indentation step width.

Definition at line 250 of file wxp.cpp.

References m_nIndentationStep.

Referenced by wxPackageXMLDescriptor::CreateChildIfMissing(), wxPackageXMLDescriptor::CreateMissingNodes(), wxPackageXMLDescriptor::CreateSiblingIfMissing(), wxPackageXMLDescriptor::ResetEnumeration(), SaveOption(), wxPackageXMLDescriptor::SetPackageInfo(), and wxIfNodeListManager::SmartAppend().

wxXmlNode * wxPackageXML::AddSiblingIndentation ( wxXmlNode *  node,
int  level 
)

Appends a sibling text node to the given node containing a newline followed by a number of spaces determined by the level multiplied by the indentation step width.

Definition at line 278 of file wxp.cpp.

References m_nIndentationStep.

Referenced by wxPackageXMLDescriptor::CreateSiblingIfMissing().


The documentation for this class was generated from the following files:
Generated on Thu Feb 1 22:14:32 2007 for wxWidgets Package Manager by  doxygen 1.5.1-p1