|
AQUAgpusph 5.0.4
|
Input/Output data interfaces. More...
Namespaces | |
| namespace | CommandLineArgs |
Data Structures | |
| class | ArrayVariable |
| An array variable. More... | |
| class | ASCII |
| Plain text particles data files loader/saver. More... | |
| class | CSV |
| CSV particles data files loader/saver. More... | |
| class | DoubleVariable |
| A double variable. More... | |
| class | FastASCII |
| Plain text particles data files loader/saver. More... | |
| class | FileManager |
| Input/Output files manager. This class acts as a base class, controlling the subclasses which will load/save the files. More... | |
| class | FloatVariable |
| A float variable. More... | |
| class | InputOutput |
| Base class for input/output file managers. More... | |
| class | IntVariable |
| An integer variable. More... | |
| class | Logger |
| On screen and log file output manager. More... | |
| class | LongVariable |
| A 64bits integer variable. More... | |
| class | Particles |
| Particles file loader/saver base class. More... | |
| class | ProblemSetup |
| Simulation configuration data. More... | |
| class | Report |
| Base class for all the report file managers. More... | |
| class | ScalarNumberVariable |
| class | ScalarVariable |
| A generic Scalar variable. More... | |
| class | ScalarVecVariable |
| A generic Scalar variable, of 2 or more components. More... | |
| class | State |
| Load/Save the XML simulation definition files. More... | |
| class | TimeManager |
| Simulation time flow manager. More... | |
| class | UIntVariable |
| An unsigned integer variable. More... | |
| class | ULongVariable |
| An integer variable. More... | |
| class | Variable |
| A generic variable. Almost useless, use the overloaded classes instead of this one. More... | |
| class | Variables |
| Variables manager, which can interpret the types on the fly. More... | |
| class | VTK |
| VTK particles data files loader/saver. More... | |
Functions | |
| std::atomic< Logger * > | g_logger_singleton_ptr (nullptr) |
| Singleton instance of Aqua::InputOutput::Logger. | |
| std::string | time_and_date () |
| Get a string with the date and time. | |
| void CL_CALLBACK | particles_cb (cl_event event, cl_int event_command_status, void *user_data) |
| Callback called when all the fields have been downloaded. | |
| static std::vector< unsigned int > | _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 > | _toolsName (std::string name, ProblemSetup &sim_data, std::string prefix) |
| Helper function to get a list of tool placements from a wildcard. | |
| static void | _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 | _toolAttr (ProblemSetup::sphTool *tool, DOMElement *elem, std::string attr) |
| Helper function to get and XML attribute for a tool. | |
| std::string | npy_type_name (int np_type) |
| template<typename T> | |
| const std::string | valptr_as_string (T *ptr, unsigned int n) |
| Stringify a value pointer. | |
| std::string | tokNameToVarName (const std::string &name) |
| Convert the names populated at the tokenizer to variable names. | |
Variables | |
| static std::string | _remaining |
| static std::vector< unsigned int > | _tool_places |
| Helper storage for the functions _toolsList() and _toolsName() | |
| static std::ostringstream | pyerr |
Input/Output data interfaces.
|
static |
Helper function to get and XML attribute for a tool.
This function will throw an exception if the attribute is missing
| tool | The tool to edit |
| elem | The XML element |
| attr | The XML element attribute |
| std::runtime_error | If attr is not an attribute of the elem XML element |

|
static |
Helper function to get and XML attribute for a tool.
This function will set the default value if the attribute is not found
| tool | The tool to edit |
| elem | The XML element |
| attr | The XML element attribute |
| def_val | The default string to be set if it cannot be found |

|
static |
Helper function to get a list of tool placements from a list of names.
| list | List of tools, separated by commas |
| prefix | prefix to become inserted at the beggining of the name of each tool of the list |
|
static |
Helper function to get a list of tool placements from a wildcard.
| name | Wildcard formatted tool name |
| prefix | prefix to become inserted at the beggining of the name of each tool of the list |

| std::atomic< Logger * > Aqua::InputOutput::g_logger_singleton_ptr | ( | nullptr | ) |
Singleton instance of Aqua::InputOutput::Logger.
| std::string Aqua::InputOutput::npy_type_name | ( | int | np_type | ) |
| void CL_CALLBACK Aqua::InputOutput::particles_cb | ( | cl_event | event, |
| cl_int | event_command_status, | ||
| void * | user_data ) |
Callback called when all the fields have been downloaded.
This function is just redirecting the work to Aqua::InputOutput::Particles::print_file()
| event | The triggering event |
| event_command_status | CL_COMPLETE upon all dependencies successfully fulfilled. A negative integer if one or more dependencies failed. |
| user_data | A casted pointer to the Aqua::InputOutput::Particles tool (or the inherited one) |
| std::string Aqua::InputOutput::time_and_date | ( | ) |
Get a string with the date and time.

| std::string Aqua::InputOutput::tokNameToVarName | ( | const std::string & | name | ) |
Convert the names populated at the tokenizer to variable names.
| name | The name populated on the tokenizer |

| const std::string Aqua::InputOutput::valptr_as_string | ( | T * | ptr, |
| unsigned int | n ) |
Stringify a value pointer.
| ptr | Pointer to the value |
| n | Number of fields into the data |
|
static |
|
static |
Helper storage for the functions _toolsList() and _toolsName()
|
static |