MySQL 5.6.14 Source Code Document
|
#include <Parser.hpp>
Classes | |
class | Context |
Public Types | |
enum | ParserStatus { Ok = 0, Eof = 1, NoLine = 2, EmptyLine = 3, UnknownCommand = 4, UnknownArgument = 5, TypeMismatch = 6, InvalidArgumentFormat = 7, UnknownArgumentType = 8, CommandWithoutFunction = 9, ArgumentGivenTwice = 10, ExternalStop = 11, MissingMandatoryArgument = 12 } |
Public Member Functions | |
Parser (const ParserRow< T > rows[], class InputStream &in=Stdin, bool breakOnCommand=false, bool breakOnEmptyLine=true, bool breakOnInvalidArg=false) | |
bool | run (Context &, T &, volatile bool *stop=0) const |
const Properties * | parse (Context &, T &) |
bool | getBreakOnCommand () const |
void | setBreakOnCommand (bool v) |
bool | getBreakOnEmptyLine () const |
void | setBreakOnEmptyLine (bool v) |
bool | getBreakOnInvalidArg () const |
void | setBreakOnInvalidArg (bool v) |
Public Attributes | |
int | read_lines |
int | current_line |
enum Parser::ParserStatus |
Status for parser
Definition at line 46 of file Parser.hpp.
|
inline |
Initialize parser
Definition at line 164 of file Parser.hpp.
|
inline |
Parse only one entry and return Properties object representing the message
Should happen if run returns true
Report alias usage with callback (if specified by user)
Definition at line 219 of file Parser.hpp.
|
inline |
Run parser
Should happen if run returns true
Report alias usage with callback (if specified by user)
Definition at line 179 of file Parser.hpp.