![]() |
Ember
|
Configuration for XML parser behavior and element/attribute mappings. More...
#include <ParserConfig.h>
Classes | |
| struct | AdvancedConfig |
| struct | BlackboardConfig |
| struct | ClassificationConfig |
| struct | DocumentConfig |
| struct | NodeConfig |
| struct | TreeConfig |
Public Types | |
| enum class | ClassificationStrategy { BY_ELEMENT_NAME , BY_ATTRIBUTE , HYBRID } |
| Strategy for classifying node types. More... | |
| enum class | UnknownTypeBehavior { ERROR , WARNING , GENERIC_NODE } |
| How to handle unknown/unmapped types. More... | |
| enum class | WhitespaceHandling { PRESERVE , TRIM , NORMALIZE } |
| Whitespace handling strategy. More... | |
| enum class | NamingConvention { STRICT , BALANCED , LOOSE } |
| Naming convention strictness. More... | |
| enum class | SubTreeExpansion { IMMEDIATE , LAZY , MANUAL } |
| SubTree expansion strategy. More... | |
Public Member Functions | |
| ParserConfig () | |
| ~ParserConfig ()=default | |
| DocumentConfig & | GetDocumentConfig () |
| const DocumentConfig & | GetDocumentConfig () const |
| TreeConfig & | GetTreeConfig () |
| const TreeConfig & | GetTreeConfig () const |
| NodeConfig & | GetNodeConfig () |
| const NodeConfig & | GetNodeConfig () const |
| ClassificationConfig & | GetClassificationConfig () |
| const ClassificationConfig & | GetClassificationConfig () const |
| BlackboardConfig & | GetBlackboardConfig () |
| const BlackboardConfig & | GetBlackboardConfig () const |
| AdvancedConfig & | GetAdvancedConfig () |
| const AdvancedConfig & | GetAdvancedConfig () const |
| nlohmann::json | ToJson () const |
| void | FromJson (const nlohmann::json &json) |
| bool | Validate (std::vector< String > &errors) const |
| bool | IsControlType (const String &type) const |
| bool | IsDecoratorType (const String &type) const |
| bool | IsActionType (const String &type) const |
| bool | IsConditionType (const String &type) const |
Static Public Member Functions | |
| static ParserConfig | CreateDefault () |
| static ParserConfig | CreateGeneric () |
Static Private Member Functions | |
| static nlohmann::json | ClassificationStrategyToJson (ClassificationStrategy strategy) |
| static ClassificationStrategy | ClassificationStrategyFromJson (const nlohmann::json &json) |
| static nlohmann::json | UnknownTypeBehaviorToJson (UnknownTypeBehavior behavior) |
| static UnknownTypeBehavior | UnknownTypeBehaviorFromJson (const nlohmann::json &json) |
| static nlohmann::json | WhitespaceHandlingToJson (WhitespaceHandling handling) |
| static WhitespaceHandling | WhitespaceHandlingFromJson (const nlohmann::json &json) |
| static nlohmann::json | SubTreeExpansionToJson (SubTreeExpansion expansion) |
| static SubTreeExpansion | SubTreeExpansionFromJson (const nlohmann::json &json) |
| static nlohmann::json | NamingConventionToJson (NamingConvention convention) |
| static NamingConvention | NamingConventionFromJson (const nlohmann::json &json) |
Configuration for XML parser behavior and element/attribute mappings.
This class defines how the parser interprets XML elements and attributes, allowing the parser to work with different behavior tree XML formats.
Definition at line 17 of file ParserConfig.h.
|
strong |
Strategy for classifying node types.
| Enumerator | |
|---|---|
| BY_ELEMENT_NAME | |
| BY_ATTRIBUTE | |
| HYBRID | |
Definition at line 22 of file ParserConfig.h.
|
strong |
Naming convention strictness.
| Enumerator | |
|---|---|
| STRICT | |
| BALANCED | |
| LOOSE | |
Definition at line 49 of file ParserConfig.h.
|
strong |
SubTree expansion strategy.
| Enumerator | |
|---|---|
| IMMEDIATE | |
| LAZY | |
| MANUAL | |
Definition at line 58 of file ParserConfig.h.
|
strong |
How to handle unknown/unmapped types.
| Enumerator | |
|---|---|
| ERROR | |
| WARNING | |
| GENERIC_NODE | |
Definition at line 31 of file ParserConfig.h.
|
strong |
Whitespace handling strategy.
| Enumerator | |
|---|---|
| PRESERVE | |
| TRIM | |
| NORMALIZE | |
Definition at line 40 of file ParserConfig.h.
| EmberCore::ParserConfig::ParserConfig | ( | ) |
Definition at line 7 of file ParserConfig.cpp.
|
default |
|
staticprivate |
Definition at line 346 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 333 of file ParserConfig.cpp.
|
static |
Definition at line 314 of file ParserConfig.cpp.
|
static |
Definition at line 320 of file ParserConfig.cpp.
| void EmberCore::ParserConfig::FromJson | ( | const nlohmann::json & | json | ) |
Definition at line 87 of file ParserConfig.cpp.
|
inline |
Definition at line 157 of file ParserConfig.h.
|
inline |
Definition at line 158 of file ParserConfig.h.
|
inline |
Definition at line 154 of file ParserConfig.h.
|
inline |
Definition at line 155 of file ParserConfig.h.
|
inline |
Definition at line 151 of file ParserConfig.h.
|
inline |
Definition at line 152 of file ParserConfig.h.
|
inline |
Definition at line 142 of file ParserConfig.h.
|
inline |
Definition at line 143 of file ParserConfig.h.
|
inline |
Definition at line 148 of file ParserConfig.h.
|
inline |
Definition at line 149 of file ParserConfig.h.
|
inline |
Definition at line 145 of file ParserConfig.h.
|
inline |
Definition at line 146 of file ParserConfig.h.
| bool EmberCore::ParserConfig::IsActionType | ( | const String & | type | ) | const |
Definition at line 297 of file ParserConfig.cpp.
| bool EmberCore::ParserConfig::IsConditionType | ( | const String & | type | ) | const |
Definition at line 306 of file ParserConfig.cpp.
| bool EmberCore::ParserConfig::IsControlType | ( | const String & | type | ) | const |
Definition at line 287 of file ParserConfig.cpp.
| bool EmberCore::ParserConfig::IsDecoratorType | ( | const String & | type | ) | const |
Definition at line 292 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 442 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 429 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 418 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 405 of file ParserConfig.cpp.
| nlohmann::json EmberCore::ParserConfig::ToJson | ( | ) | const |
Definition at line 22 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 370 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 357 of file ParserConfig.cpp.
| bool EmberCore::ParserConfig::Validate | ( | std::vector< String > & | errors | ) | const |
Definition at line 230 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 394 of file ParserConfig.cpp.
|
staticprivate |
Definition at line 381 of file ParserConfig.cpp.
|
private |
Definition at line 183 of file ParserConfig.h.
|
private |
Definition at line 182 of file ParserConfig.h.
|
private |
Definition at line 181 of file ParserConfig.h.
|
private |
Definition at line 178 of file ParserConfig.h.
|
private |
Definition at line 180 of file ParserConfig.h.
|
private |
Definition at line 179 of file ParserConfig.h.