AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
State.cpp File Reference

Simulation configuration files manager. (See Aqua::InputOutput::State for details) More...

#include <map>
#include <limits>
#include <vector>
#include <algorithm>
#include <sstream>
#include <filesystem>
#include <system_error>
#include "aquagpusph/sphPrerequisites.hpp"
#include "State.hpp"
#include "Logger.hpp"
#include "aquagpusph/CalcServer/CalcServer.hpp"
#include "aquagpusph/AuxiliarMethods.hpp"
Include dependency graph for State.cpp:

Namespaces

namespace  Aqua
 Main AQUAgpusph namespace.
namespace  Aqua::InputOutput
 Input/Output data interfaces.

Macros

#define xmlS(txt)
#define xmlAttribute(elem, att)
#define xmlHasAttribute(elem, att)

Functions

bool __match (const char *first, const char *second)
 Checks if two given strings match.
bool match (const std::string first, const std::string second)
 Wrapper for __match().
static std::string xmlTranscode (const XMLCh *txt)
static XMLCh * xmlTranscode (std::string txt)
static void xmlClear ()
static std::vector< unsigned int > Aqua::InputOutput::_toolsList (std::string list, ProblemSetup &sim_data, std::string prefix)
 Helper function to get a list of tool placements from a list of names.
static std::vector< unsigned int > Aqua::InputOutput::_toolsName (std::string name, ProblemSetup &sim_data, std::string prefix)
 Helper function to get a list of tool placements from a wildcard.
static void Aqua::InputOutput::_toolAttr (ProblemSetup::sphTool *tool, DOMElement *elem, std::string attr, std::string def_val)
 Helper function to get and XML attribute for a tool.
static void Aqua::InputOutput::_toolAttr (ProblemSetup::sphTool *tool, DOMElement *elem, std::string attr)
 Helper function to get and XML attribute for a tool.

Variables

static std::vector< std::string > cpp_str
static std::vector< XMLCh * > xml_str
static std::vector< unsigned int > Aqua::InputOutput::_tool_places
 Helper storage for the functions _toolsList() and _toolsName()

Detailed Description

Simulation configuration files manager. (See Aqua::InputOutput::State for details)

Macro Definition Documentation

◆ xmlAttribute

#define xmlAttribute ( elem,
att )
Value:
xmlS(elem->getAttribute(xmlS(att)))
#define xmlS(txt)
Definition State.cpp:125

◆ xmlHasAttribute

#define xmlHasAttribute ( elem,
att )
Value:
elem->hasAttribute(xmlS(att))

◆ xmlS

#define xmlS ( txt)
Value:
static std::string xmlTranscode(const XMLCh *txt)
Definition State.cpp:95

Function Documentation

◆ __match()

bool __match ( const char * first,
const char * second )

Checks if two given strings match.

The first string may contain wildcard characters.

Parameters
firstFirst string, which may contain wildcards
secondSecond string
Returns
true if they match, false otherwise
See also
https://www.geeksforgeeks.org/wildcard-character-matching/
Here is the call graph for this function:

◆ match()

bool match ( const std::string first,
const std::string second )

Wrapper for __match().

Parameters
firstFirst string, which may contain wildcards
secondSecond string
Returns
true if they match, false otherwise
Here is the call graph for this function:

◆ xmlClear()

void xmlClear ( )
static

◆ xmlTranscode() [1/2]

std::string xmlTranscode ( const XMLCh * txt)
static

◆ xmlTranscode() [2/2]

XMLCh * xmlTranscode ( std::string txt)
static

Variable Documentation

◆ cpp_str

std::vector<std::string> cpp_str
static

◆ xml_str

std::vector<XMLCh*> xml_str
static