The Sparta Modeling Framework
|
Applies a configuration file to a node pattern. More...
#include <ConfigApplicators.hpp>
Public Member Functions | |
NodeConfigFileApplicator (const std::string &loc_pattern, const std::string &filename, const std::vector< std::string > &include_paths, bool verbose=false) | |
std::string | stringize () const override |
Render this parameter action as a string. | |
void | tryApply (sparta::TreeNode *root, ApplySuccessCondition asc, ApplyFilter filter=ApplyFilter(), bool verbose=false) const override |
Apply the parameter contained in this object to the tree starting at root. | |
void | applyUnbound (sparta::ParameterTree &ptree, bool verbose=false) const override |
Apply the parameter contained in this object to the unbound (virtual) parameter tree ptree. | |
Public Member Functions inherited from sparta::app::ConfigApplicator | |
virtual | ~ConfigApplicator () |
Virtual destructor. | |
void | apply (sparta::TreeNode *root, ApplyFilter filter=ApplyFilter(), bool verbose=false) |
Apply the parameter contained in this object to the tree starting at root. | |
Additional Inherited Members | |
Public Types inherited from sparta::app::ConfigApplicator | |
enum class | ApplySuccessCondition { ASC_DEFER = 0 , ASC_MUST_ASSIGN = 1 , ASC_IGNORE = 2 , MAX_ASC } |
Type for dictating how tryApply should behave. More... | |
enum class | LocationFilter { ALL = 0 , AT_OR_BELOW_NODE , MAX_AF } |
Type for dictating how to filter the parameter application. (i.e. only apply to certain parts of the tree) More... | |
Applies a configuration file to a node pattern.
Definition at line 527 of file ConfigApplicators.hpp.
|
inline |
Definition at line 552 of file ConfigApplicators.hpp.
|
inlineoverridevirtual |
Apply the parameter contained in this object to the unbound (virtual) parameter tree ptree.
Implements sparta::app::ConfigApplicator.
Definition at line 605 of file ConfigApplicators.hpp.
|
inlineoverridevirtual |
Render this parameter action as a string.
Implements sparta::app::ConfigApplicator.
Definition at line 560 of file ConfigApplicators.hpp.
|
inlineoverridevirtual |
Apply the parameter contained in this object to the tree starting at root.
root | Root of tree to apply parameter(s) too |
Implements sparta::app::ConfigApplicator.
Definition at line 566 of file ConfigApplicators.hpp.