xorp

XrlParser Class Reference

List of all members.

Public Member Functions

 XrlParser (XrlParserInput &xpi)
bool start_next () throw (XrlParserInputException)
 Starts new parsing cycle.
bool finished () const
 Check if input is exhausted.
bool get (string &protocol, string &target, string &command, XrlArgs &args) throw (XrlParseError)
bool get (string &protocol, string &target, string &command, XrlArgs &args, list< XrlAtomSpell > &spells) throw (XrlParseError)
bool get (string &xrl_c_str) throw (XrlParseError)
bool get_return_specs (list< XrlAtomSpell > &spells)
const string & input () const
bool resync ()
 Attempt to find a new XRL starting point after an error has occurred.
const XrlParserInputparser_input () const

Protected Member Functions

bool get (string &protocol, string &target, string &command, XrlArgs *args, list< XrlAtomSpell > *spells) throw (XrlParseError)
bool parse_atoms_and_spells (XrlArgs *args, list< XrlAtomSpell > *spells)

Protected Attributes

XrlParserInput_xpi
string _input
string::const_iterator _pos

Member Function Documentation

bool XrlParser::finished ( ) const [inline]

Check if input is exhausted.

Returns:
true if input is exhausted, false otherwise.
bool XrlParser::resync ( )

Attempt to find a new XRL starting point after an error has occurred.

Returns:
true if text resembling an XRL start is found.
bool XrlParser::start_next ( ) throw (XrlParserInputException)

Starts new parsing cycle.

Returns:
true upon success, false if there is no more data

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations