#include <YamlWorker.h>
- Todo:
- PUT this in Parser?
Definition at line 47 of file YamlWorker.h.
◆ YamlWorker()
ROSEE::YamlWorker::YamlWorker |
( |
| ) |
|
◆ createYamlFile() [1/3]
std::string ROSEE::YamlWorker::createYamlFile |
( |
const std::map< std::set< std::string >, ActionPrimitive * > |
mapOfActions, |
|
|
const std::string |
actionName, |
|
|
std::string |
pathFolder |
|
) |
| |
Create/overwrite yaml file and emit info on it about each ActionPrimitive inside the given mapOfActions
.
- Parameters
-
mapOfActions | container of actions which infos will be emitted on file |
actionName | the name of the action inside the map (that will have all same name) |
- Returns
- std::string the filename (with the path) of the file created/overwritten
Definition at line 39 of file YamlWorker.cpp.
◆ createYamlFile() [2/3]
std::string ROSEE::YamlWorker::createYamlFile |
( |
const Action * |
action, |
|
|
std::string |
pathFolder |
|
) |
| |
Create/overwrite yaml file and emit info on it about the given ActionComposed action
.
- Parameters
-
action | [in] pointer to ActionComposed |
pathFolder | folder where to store the file. It will be created if does not exist |
- Returns
- std::string the filename (with the path) of the file created/overwritten
Definition at line 21 of file YamlWorker.cpp.
◆ createYamlFile() [3/3]
std::string ROSEE::YamlWorker::createYamlFile |
( |
const ActionGeneric::Ptr |
action, |
|
|
std::string |
pathFolder |
|
) |
| |
◆ emitYaml() [1/3]
std::string ROSEE::YamlWorker::emitYaml |
( |
const std::map< std::set< std::string >, ActionPrimitive * > |
mapOfActions | ) |
|
|
private |
support functions for createYamlFile
- Parameters
-
mapOfActions | the map where take info from |
- Returns
- std::string a string formatted as yaml file, ready to be put in the file
Definition at line 52 of file YamlWorker.cpp.
◆ emitYaml() [2/3]
std::string ROSEE::YamlWorker::emitYaml |
( |
const Action * |
action | ) |
|
|
private |
support functions for createYamlFile
- Parameters
-
action | the action which infos must be emitted |
- Returns
- std::string a string formatted as yaml file, ready to be put in the file
Definition at line 66 of file YamlWorker.cpp.
◆ emitYaml() [3/3]
◆ parseYamlComposed()
◆ parseYamlGeneric()
◆ parseYamlPrimitive() [1/2]
Parse a yaml file and return the map with all the actions present in the file. For the moment, a actionType
argument must be passed to create the right Action object.
- Parameters
-
fileWithPath | the path of the file to be parsed |
Definition at line 144 of file YamlWorker.cpp.
◆ parseYamlPrimitive() [2/2]
◆ parseYamlTimed()
std::shared_ptr< ROSEE::ActionTimed > ROSEE::YamlWorker::parseYamlTimed |
( |
std::string |
fileWithPath | ) |
|
The documentation for this class was generated from the following files: