Fabric 0.2.0
Loading...
Searching...
No Matches
Namespaces | Functions
xml_helper.hpp File Reference
#include <map>
#include <vector>
#include <algorithm>
#include <string>
#include <tinyxml2.h>
#include <fabric_base/utils/structs.hpp>
#include <fabric_base/utils/exception.hpp>
Include dependency graph for xml_helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fabric
 

Functions

bool fabric::search (std::vector< std::string > list, std::string value)
 search a string in a vector of strings
 
tinyxml2::XMLElement * fabric::extract_plan (tinyxml2::XMLDocument &document)
 Extract the <Plan> element from the XML document.
 
bool fabric::convert_to_string (tinyxml2::XMLElement *element, std::string &parameters)
 convert XMLElement to std::string
 
void fabric::convert_to_string (tinyxml2::XMLDocument &document_xml, std::string &document_string)
 convert XMLDocument to std::string
 
bool fabric::check_syntax (tinyxml2::XMLElement *element, std::vector< std::string > &control_list, std::vector< std::string > &rejected, std::string &error)
 check the plan to make sure all control and runner XML elements are valid with minimal required attributes. The function uses recursive approach to go through the xml plan