Skip to content
Snippets Groups Projects
Commit dd8165bd authored by Jan Trávníček's avatar Jan Trávníček
Browse files

add access method for variables bar on pattern in bar notation

parent dc18181a
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,9 @@ std::string TreeAccess::access ( const std::string & component ) { ...@@ -25,6 +25,9 @@ std::string TreeAccess::access ( const std::string & component ) {
if ( settings == TreeSettings::Settings::NONLINEAR_VARIABLES ) if ( settings == TreeSettings::Settings::NONLINEAR_VARIABLES )
return "tree::NonlinearAlphabet"; return "tree::NonlinearAlphabet";
   
if ( settings == TreeSettings::Settings::VARIABLES_BAR )
return "tree::VariablesBarSymbol";
throw exception::CommonException ( "Component not available" ); throw exception::CommonException ( "Component not available" );
} }
   
......
...@@ -15,7 +15,7 @@ namespace dataAccess { ...@@ -15,7 +15,7 @@ namespace dataAccess {
class TreeEnum { class TreeEnum {
public: public:
enum class Settings { enum class Settings {
ALPHABET, CONTENT, SUBTREE_WILDCARD, NONLINEAR_VARIABLES, __MAX__ ALPHABET, CONTENT, SUBTREE_WILDCARD, NONLINEAR_VARIABLES, VARIABLES_BAR, __MAX__
}; };
   
static std::string toString ( TreeEnum::Settings settings ) { static std::string toString ( TreeEnum::Settings settings ) {
...@@ -32,6 +32,9 @@ public: ...@@ -32,6 +32,9 @@ public:
case TreeEnum::Settings::NONLINEAR_VARIABLES: case TreeEnum::Settings::NONLINEAR_VARIABLES:
return "nonlinear_variables"; return "nonlinear_variables";
   
case TreeEnum::Settings::VARIABLES_BAR:
return "variables_bar";
case TreeEnum::Settings::__MAX__: case TreeEnum::Settings::__MAX__:
throw exception::CommonException ( "Invalid enumeration" ); throw exception::CommonException ( "Invalid enumeration" );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment