Crazy Eddies GUI System
0.6.2
|
Class used to create XML Document. More...
Public Member Functions | |
XMLSerializer (OutStream &out, size_t indentSpace=4) | |
XMLSerializer constructor. More... | |
virtual | ~XMLSerializer (void) |
XMLSerializer destructor. | |
XMLSerializer & | openTag (const String &name) |
Start a new tag in the xml document. More... | |
XMLSerializer & | closeTag (void) |
Close the current tag. More... | |
XMLSerializer & | attribute (const String &name, const String &value) |
After an opening tag you can populate attribute list with this function. More... | |
XMLSerializer & | text (const String &text) |
Create a text node. More... | |
unsigned int | getTagCount () const |
report the nimber of tags created in the document More... | |
operator bool () const | |
Check wether the XML Serializer status is valid. More... | |
bool | operator! () const |
Check wether the XML Serializer status is invalid. More... | |
Class used to create XML Document.
This class hides the complexity of formatting valid XML files. The class provides automatic substitution of entities, XML indenting in respect of the spaces. It does not contains any codes specific to CEGUI taking appart the CEGUI::String class. The following example show the code needed to exports parts of an XML document similar to what can be found in a layout.
CEGUI::XMLSerializer::XMLSerializer | ( | OutStream & | out, |
size_t | indentSpace = 4 |
||
) |
XMLSerializer constructor.
out | The stream to use to export the result |
indentSpace | The indentation level (0 to disable indentation) |
XMLSerializer & CEGUI::XMLSerializer::attribute | ( | const String & | name, |
const String & | value | ||
) |
After an opening tag you can populate attribute list with this function.
name | The name of the attribute |
value | The value of the attribute |
Referenced by CEGUI::FalagardComponentBase::writeColoursXML(), CEGUI::FalagardComponentBase::writeHorzFormatXML(), CEGUI::FalagardComponentBase::writeVertFormatXML(), CEGUI::WindowManager::writeWindowLayoutToStream(), CEGUI::PropertyLinkDefinition::writeXMLAttributes(), CEGUI::PropertyDefinitionBase::writeXMLAttributes(), CEGUI::AbsoluteDim::writeXMLElementAttributes_impl(), CEGUI::ImageDim::writeXMLElementAttributes_impl(), CEGUI::WidgetDim::writeXMLElementAttributes_impl(), CEGUI::UnifiedDim::writeXMLElementAttributes_impl(), CEGUI::FontDim::writeXMLElementAttributes_impl(), CEGUI::PropertyDim::writeXMLElementAttributes_impl(), CEGUI::NamedArea::writeXMLToStream(), CEGUI::PropertyInitialiser::writeXMLToStream(), CEGUI::WidgetComponent::writeXMLToStream(), CEGUI::LayerSpecification::writeXMLToStream(), CEGUI::ImageryComponent::writeXMLToStream(), CEGUI::TextComponent::writeXMLToStream(), CEGUI::BaseDim::writeXMLToStream(), CEGUI::FrameComponent::writeXMLToStream(), CEGUI::StateImagery::writeXMLToStream(), CEGUI::Property::writeXMLToStream(), CEGUI::SectionSpecification::writeXMLToStream(), CEGUI::ImagerySection::writeXMLToStream(), CEGUI::WidgetLookFeel::writeXMLToStream(), CEGUI::Image::writeXMLToStream(), CEGUI::Font::writeXMLToStream(), CEGUI::Imageset::writeXMLToStream(), CEGUI::Dimension::writeXMLToStream(), CEGUI::ComponentArea::writeXMLToStream(), CEGUI::Window::writeXMLToStream(), CEGUI::PixmapFont::writeXMLToStream_impl(), and CEGUI::FreeTypeFont::writeXMLToStream_impl().
XMLSerializer & CEGUI::XMLSerializer::closeTag | ( | void | ) |
Close the current tag.
Referenced by CEGUI::FalagardComponentBase::writeColoursXML(), CEGUI::FalagardComponentBase::writeHorzFormatXML(), CEGUI::FalagardComponentBase::writeVertFormatXML(), CEGUI::WidgetLookManager::writeWidgetLookSeriesToStream(), CEGUI::WidgetLookManager::writeWidgetLookToStream(), CEGUI::WindowManager::writeWindowLayoutToStream(), CEGUI::PropertyDefinitionBase::writeXMLToStream(), CEGUI::NamedArea::writeXMLToStream(), CEGUI::PropertyInitialiser::writeXMLToStream(), CEGUI::WidgetComponent::writeXMLToStream(), CEGUI::LayerSpecification::writeXMLToStream(), CEGUI::ImageryComponent::writeXMLToStream(), CEGUI::TextComponent::writeXMLToStream(), CEGUI::BaseDim::writeXMLToStream(), CEGUI::FrameComponent::writeXMLToStream(), CEGUI::StateImagery::writeXMLToStream(), CEGUI::Property::writeXMLToStream(), CEGUI::SectionSpecification::writeXMLToStream(), CEGUI::ImagerySection::writeXMLToStream(), CEGUI::WidgetLookFeel::writeXMLToStream(), CEGUI::Image::writeXMLToStream(), CEGUI::Font::writeXMLToStream(), CEGUI::Imageset::writeXMLToStream(), CEGUI::Dimension::writeXMLToStream(), CEGUI::ComponentArea::writeXMLToStream(), CEGUI::Window::writeXMLToStream(), and CEGUI::PixmapFont::writeXMLToStream_impl().
unsigned int CEGUI::XMLSerializer::getTagCount | ( | ) | const |
report the nimber of tags created in the document
XMLSerializer & CEGUI::XMLSerializer::openTag | ( | const String & | name | ) |
Start a new tag in the xml document.
name | The name of the tag |
Referenced by CEGUI::FalagardComponentBase::writeColoursXML(), CEGUI::FalagardComponentBase::writeHorzFormatXML(), CEGUI::FalagardComponentBase::writeVertFormatXML(), CEGUI::WidgetLookManager::writeWidgetLookSeriesToStream(), CEGUI::WidgetLookManager::writeWidgetLookToStream(), CEGUI::WindowManager::writeWindowLayoutToStream(), CEGUI::AbsoluteDim::writeXMLElementName_impl(), CEGUI::ImageDim::writeXMLElementName_impl(), CEGUI::WidgetDim::writeXMLElementName_impl(), CEGUI::UnifiedDim::writeXMLElementName_impl(), CEGUI::FontDim::writeXMLElementName_impl(), CEGUI::PropertyDim::writeXMLElementName_impl(), CEGUI::PropertyDefinition::writeXMLElementType(), CEGUI::PropertyLinkDefinition::writeXMLElementType(), CEGUI::NamedArea::writeXMLToStream(), CEGUI::PropertyInitialiser::writeXMLToStream(), CEGUI::WidgetComponent::writeXMLToStream(), CEGUI::LayerSpecification::writeXMLToStream(), CEGUI::ImageryComponent::writeXMLToStream(), CEGUI::TextComponent::writeXMLToStream(), CEGUI::BaseDim::writeXMLToStream(), CEGUI::FrameComponent::writeXMLToStream(), CEGUI::StateImagery::writeXMLToStream(), CEGUI::Property::writeXMLToStream(), CEGUI::SectionSpecification::writeXMLToStream(), CEGUI::ImagerySection::writeXMLToStream(), CEGUI::WidgetLookFeel::writeXMLToStream(), CEGUI::Image::writeXMLToStream(), CEGUI::Font::writeXMLToStream(), CEGUI::Imageset::writeXMLToStream(), CEGUI::Dimension::writeXMLToStream(), CEGUI::ComponentArea::writeXMLToStream(), CEGUI::Window::writeXMLToStream(), and CEGUI::PixmapFont::writeXMLToStream_impl().
|
inline |
Check wether the XML Serializer status is valid.
|
inline |
Check wether the XML Serializer status is invalid.
XMLSerializer & CEGUI::XMLSerializer::text | ( | const String & | text | ) |
Create a text node.
text | the content of the node |
Referenced by CEGUI::Property::writeXMLToStream().