A container of strings grouped by prefix. More...
#include <SMESH_2smeshpy.hxx>
Public Member Functions | |
| bool | Add (const char *str) |
| bool | IsInArgs (Handle(_pyCommand)&cmd, std::list< _AString > &subStr) |
| Finds an object ID in the command. More... | |
| void | Print (int level=0) |
| DEBUG. More... | |
Private Member Functions | |
| int | isIn (const char *str) |
| Return remainder length of the object ID after my _prefix. More... | |
Private Attributes | |
| _AString | _prefix |
| std::list< _pyStringFamily > | _subFams |
| std::list< _AString > | _strings |
A container of strings grouped by prefix.
It is used for a faster search of objects requiring to KeepAgrCmds() in commands. A speed up is gained because only a common prefix (e.g. "aArea") of many object IDs is searched in a command and not every object ID
| bool _pyStringFamily::Add | ( | const char * | str | ) |
Referenced by _pyGen::KeepAgrCmds().
|
private |
Return remainder length of the object ID after my _prefix.
| [in] | str | - remainder of the command after my _prefix |
References _strings, _subFams, and _pyCommand::IsIDChar().
| bool _pyStringFamily::IsInArgs | ( | Handle(_pyCommand)& | cmd, |
| std::list< _AString > & | subStr | ||
| ) |
Finds an object ID in the command.
| [in] | longStr | - the command string |
| [out] | subStr | - the found object ID |
true if the object ID found References _strings, _subFams, _pyCommand::GetArgBeginning(), _pyCommand::GetString(), and _pyCommand::IsIDChar().
Referenced by Handle().
|
private |
Referenced by isIn(), IsInArgs(), and Print().
|
private |
Referenced by isIn(), IsInArgs(), and Print().