MySQL++ SSQLS v2 Translator  3.2.5
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ParseV2::Line Class Referenceabstract

Base class for parsed SSQLS v2 declaration lines. More...

#include <parsev2.h>

Inheritance diagram for ParseV2::Line:
Inheritance graph
[legend]

Public Member Functions

virtual ~Line ()
 Virtual dtor, since this is a base class.
 
virtual void print (std::ostream &os) const =0
 Print line's contents out to a stream in SSQLS v2 form.
 

Static Public Member Functions

static Lineparse (const StringList &tl, bool subdirective, const File &file)
 Virtual ctor, creating one of our subclass objects based on what we're passed. More...
 

Protected Member Functions

 Line ()
 Protected ctor, to prevent instantiation.
 

Detailed Description

Base class for parsed SSQLS v2 declaration lines.

Types of parsed lines, and related stuff

Member Function Documentation

◆ parse()

ParseV2::Line * ParseV2::Line::parse ( const StringList tl,
bool  subdirective,
const File file 
)
static

Virtual ctor, creating one of our subclass objects based on what we're passed.

Parameters
tllist of tokens found on a line in an SSQLS v2 file
subdirectivetrue if there was leading whitespace on that line, which changes how we interpret tl
fileinformation about the file we're currently parsing
Returns
Line object pointer if line was successfully parsed, else 0

References ParseV2::Field::parse(), ParseV2::Include::parse(), ParseV2::Option::parse(), ParseV2::Table::parse(), and ParseV2::File::parse_error().

Referenced by ParseV2::ParseV2().


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