Design Pattern Examples
Overview of object-oriented design patterns
state_class.py
Go to the documentation of this file.
6
7from ._state_class_private import StateContext_ClassImpl
8
9#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11# State context definition
12#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14
15
16
31
32
33 def __init__(self) -> None:
35
36
38
39 #--------------------------------------------------------------------
40 # StateContext_Class public entry points.
41 #--------------------------------------------------------------------
42
43
50 def RemoveComments(self, text : str) -> str:
51 return self._stateContextimpl.RemoveComments(text)
Represents the State Machine to the application.
Definition: state_class.py:30
str RemoveComments(self, str text)
Entry point for callers to filter text.
Definition: state_class.py:50