17 #ifndef __ROSEE_YAMLWORKER_H 18 #define __ROSEE_YAMLWORKER_H 20 #define DEFAULT_ACTION_FOLDER "/configs/actions/" 25 #include <yaml-cpp/yaml.h> 64 const std::string actionName, std::string pathFolder ) ;
96 std::shared_ptr < ROSEE::ActionTimed >
parseYamlTimed ( std::string fileWithPath);
122 #endif // __ROSEE_YAMLWORKER_H
Virtual class, Base of all the primitive actions.
std::map< std::set< std::string >, ROSEE::ActionPrimitive::Ptr > parseYamlPrimitive(std::string fileWithPath)
Parse a yaml file and return the map with all the actions present in the file.
std::shared_ptr< ROSEE::ActionTimed > parseYamlTimed(std::string fileWithPath)
Parse a timed Action.
ROSEE::ActionGeneric::Ptr parseYamlGeneric(std::string fileWithPath)
The pure virtual class representing an Action.
A ActionComposed, which is formed by one or more Primitives (or even other composed).
std::shared_ptr< ActionGeneric > Ptr
std::shared_ptr< ActionPrimitive > Ptr
Type
Enum useful to discriminate each primitive action when, for example, we want to parse a file if you ...
std::string emitYaml(const std::map< std::set< std::string >, ActionPrimitive * >)
support functions for createYamlFile
YamlWorker()
Costructor default.
ROSEE::ActionComposed parseYamlComposed(std::string fileWithPath)
Parse a composed Action.
std::string 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 mapOfActio...