RobWorkProject  23.9.11-
Static Public Member Functions | List of all members
XMLRWPreParser Class Reference

Pre-parser for the XML RW format. All include, define, comments and use elements are handled. More...

#include <XMLRWPreParser.hpp>

Static Public Member Functions

static bool parse (const std::string &filename, std::vector< char > &output, std::vector< std::pair< size_t, boost::spirit::classic::file_position >> &filemap)
 Pre-parser for the XML RW format. All include, define, comments and use elements are handled. More...
 
static bool parse (const std::string &filename, std::vector< char > &output, std::vector< std::pair< size_t, boost::spirit::classic::file_position >> &filemap, DependencyGraph &graph)
 Pre-parses for the XML RW format. All include, define, comments and use elements are handled. More...
 

Detailed Description

Pre-parser for the XML RW format. All include, define, comments and use elements are handled.

Member Function Documentation

◆ parse() [1/2]

static bool parse ( const std::string &  filename,
std::vector< char > &  output,
std::vector< std::pair< size_t, boost::spirit::classic::file_position >> &  filemap 
)
static

Pre-parser for the XML RW format. All include, define, comments and use elements are handled.

Parameters
filename[in] name of file to parse
output[out] the data result of parsing the file
filemap[out] the position to file info result of parsing the file
Returns
true if pasing was a succes, false otherwise

◆ parse() [2/2]

static bool parse ( const std::string &  filename,
std::vector< char > &  output,
std::vector< std::pair< size_t, boost::spirit::classic::file_position >> &  filemap,
DependencyGraph graph 
)
static

Pre-parses for the XML RW format. All include, define, comments and use elements are handled.

Parameters
filename[in] name of file to parse
output[out] the data result of parsing the file
filemap[out] the position to file info result of parsing the file
graph[in] a dependency graph between file includes
Returns
true if pasing was a succes, false otherwise

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