ConfigVariableString¶
from acron.core import ConfigVariableString
- class ConfigVariableString¶
Bases:
Bases:
ConfigVariableThis is a convenience class to specialize
ConfigVariableas a string type.Inheritance diagram
digraph inheritance6195f4b93f { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ConfigFlags" [URL="acron.core.ConfigFlags.html#acron.core.ConfigFlags",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ConfigFlags" [arrowsize=0.75,style=""]; "ConfigVariable" [URL="acron.core.ConfigVariable.html#acron.core.ConfigVariable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ConfigVariableBase" -> "ConfigVariable" [arrowsize=0.75,style=""]; "ConfigVariableBase" [URL="acron.core.ConfigVariableBase.html#acron.core.ConfigVariableBase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ConfigFlags" -> "ConfigVariableBase" [arrowsize=0.75,style=""]; "ConfigVariableString" [URL="acron.core.ConfigVariableString.html#acron.core.ConfigVariableString",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ConfigVariable" -> "ConfigVariableString" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- __bool__()¶
Returns true if the variable is not empty.
- __eq__()¶
Comparison operators are handy.
- __getitem__()¶
- __init__()¶
- __lt__()¶
- __ne__()¶
- assign()¶
- c_str()¶
These methods help the
ConfigVariableStringact like a C++ string object.
- empty()¶
- get_default_value()¶
Returns the variable’s default value.
- get_value()¶
Returns the variable’s value.
- get_word()¶
Returns the variable’s nth value.
- length()¶
- set_value()¶
Reassigns the variable’s local value.
- set_word()¶
Reassigns the variable’s nth value. This makes a local copy of the variable’s overall value.