AirInv Logo  1.00.0
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRINV::RequestParser Class Reference

Parser for incoming requests. More...

#include <airinv/server/RequestParser.hpp>

List of all members.

Public Member Functions

 RequestParser ()
 Construct ready to parse the request method.
void reset ()
 Reset to initial parser state.
template<typename InputIterator >
boost::tuple< boost::tribool,
InputIterator > 
parse (Request &req, InputIterator begin, InputIterator end)

Detailed Description

Parser for incoming requests.

Definition at line 17 of file RequestParser.hpp.


Constructor & Destructor Documentation

AIRINV::RequestParser::RequestParser ( )

Construct ready to parse the request method.

Definition at line 13 of file RequestParser.cpp.


Member Function Documentation

void AIRINV::RequestParser::reset ( )

Reset to initial parser state.

Definition at line 18 of file RequestParser.cpp.

template<typename InputIterator >
boost::tuple<boost::tribool, InputIterator> AIRINV::RequestParser::parse ( Request req,
InputIterator  begin,
InputIterator  end 
)
inline

Parse some data. The tribool return value is true when a complete request has been parsed, false if the data is invalid, indeterminate when more data is required. The InputIterator return value indicates how much of the input has been consumed.

Definition at line 30 of file RequestParser.hpp.


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