The api_string_to_value_visitor.py module#

Summary#

APIStringToValueVisitor

Visits variable type enumeration values, producing a variable value from a

Description#

Provides a variable type pseudo-visitor that parses values from strings.

The pseudo-visitor is constructed with the string to parse and then accepted by the appropriate variable type. When visiting, it attempts to parse the string into the visited type. For more information on why this pattern is better than bare switch statements, see IVariableTypePseudoVisitor.