cprover
Loading...
Searching...
No Matches
xml_parsert Class Reference

#include <xml_parser.h>

Inheritance diagram for xml_parsert:
Collaboration diagram for xml_parsert:

Public Member Functions

 xml_parsert (message_handlert &message_handler)
 xml_parsert (const xml_parsert &)=delete
 ~xml_parsert () override
xmltcurrent ()
bool parse () override
void new_level ()
Public Member Functions inherited from parsert
 parsert (message_handlert &message_handler)
virtual ~parsert ()
bool read (char &ch)
bool eof ()
void parse_error (const std::string &message, const std::string &before)
void inc_line_no ()
void set_line_no (unsigned _line_no)
void set_file (const irep_idt &file)
irep_idt get_file () const
unsigned get_line_no () const
unsigned get_column () const
void set_column (unsigned _column)
const source_locationtsource_location ()
void set_source_location (exprt &e)
void set_function (const irep_idt &function)
void advance_column (unsigned token_width)

Public Attributes

xml_parse_treet parse_tree
std::list< xmlt * > stack
Public Attributes inherited from parsert
std::istream * in
std::string this_line
std::string last_line
std::vector< exprtstack

Static Protected Attributes

static int instance_count = 0

Additional Inherited Members

Protected Attributes inherited from parsert
messaget log
source_locationt _source_location
unsigned line_no
unsigned previous_line_no
unsigned column

Detailed Description

Definition at line 17 of file xml_parser.h.

Constructor & Destructor Documentation

◆ xml_parsert() [1/2]

xml_parsert::xml_parsert ( message_handlert & message_handler)
inlineexplicit

Definition at line 20 of file xml_parser.h.

◆ xml_parsert() [2/2]

xml_parsert::xml_parsert ( const xml_parsert & )
delete

◆ ~xml_parsert()

xml_parsert::~xml_parsert ( )
inlineoverride

Definition at line 31 of file xml_parser.h.

Member Function Documentation

◆ current()

xmlt & xml_parsert::current ( )
inline

Definition at line 40 of file xml_parser.h.

◆ new_level()

void xml_parsert::new_level ( )
inline

Definition at line 47 of file xml_parser.h.

◆ parse()

bool xml_parsert::parse ( )
overridevirtual

Implements parsert.

Definition at line 19 of file xml_parser.cpp.

Member Data Documentation

◆ instance_count

int xml_parsert::instance_count = 0
staticprotected

Definition at line 54 of file xml_parser.h.

◆ parse_tree

xml_parse_treet xml_parsert::parse_tree

Definition at line 36 of file xml_parser.h.

◆ stack

std::list<xmlt *> xml_parsert::stack

Definition at line 38 of file xml_parser.h.


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