Rocket::Core::StyleSheetParser Class Reference

#include <StyleSheetParser.h>

Collaboration diagram for Rocket::Core::StyleSheetParser:

Public Member Functions

int Parse (StyleSheetNode *node, Stream *stream)
bool ParseProperties (PropertyDictionary &parsed_properties, const String &properties)

Detailed Description

Helper class for parsing a style sheet into its memory representation.

Author:
Lloyd Weehuizen

Member Function Documentation

int Rocket::Core::StyleSheetParser::Parse ( StyleSheetNode node,
Stream stream 
)

Parses the given stream into the style sheet

Parameters:
node The root node the stream will be parsed into
stream The stream to read
Returns:
The number of parsed rules, or -1 if an error occured.

bool Rocket::Core::StyleSheetParser::ParseProperties ( PropertyDictionary parsed_properties,
const String properties 
)

Parses the given string into the property dictionary

Parameters:
parsed_properties The properties dictionary the properties will be read into
properties The properties to parse
Returns:
True if the parse was successful, or false if an error occured.


The documentation for this class was generated from the following files: