|
KSeExpr 6.0.0.0
|
#include <ControlSpec.h>
Public Member Functions | |
| ExprStrSpec (const ExprStrNode &node, const char *name, Type type) | |
| Takes name and type comments and takes ownership of them! | |
| std::string | toString () const override |
| Generates a replacement string based on changes to the spec. | |
Public Member Functions inherited from KSeExpr::ControlSpec | |
| ControlSpec (const ExprNode &node) | |
| virtual | ~ControlSpec ()=default |
| ControlSpec & | operator= (const ControlSpec &)=default |
| ControlSpec & | operator= (ControlSpec &&)=default |
| ControlSpec (const ControlSpec &)=default | |
| ControlSpec (ControlSpec &&)=default | |
Static Public Member Functions | |
| static const ExprStrSpec * | match (const ExprNode *node) |
Private Types | |
| enum | Type { STRING , FILE , DIRECTORY } |
Private Attributes | |
| std::string | _str |
| Type | _type |
Additional Inherited Members | |
Protected Attributes inherited from KSeExpr::ControlSpec | |
| std::string | _name |
| Name of control. | |
| int | _start |
| Start position of text in original source. | |
| int | _end |
| End position of text in original source. | |
Definition at line 96 of file ControlSpec.h.
|
private |
| Enumerator | |
|---|---|
| STRING | |
| FILE | |
| DIRECTORY | |
Definition at line 98 of file ControlSpec.h.
|
inline |
Takes name and type comments and takes ownership of them!
Definition at line 102 of file ControlSpec.h.
References KSeExpr::ControlSpec::_name.
|
static |
Definition at line 279 of file ControlSpec.cpp.
References DIRECTORY, FILE, KSeExpr::findComment(), KSeExpr::isString(), KSeExpr::Utils::parseTypeNameComment(), and STRING.
Referenced by KSeExpr::SpecExaminer::examine().
|
overridevirtual |
Generates a replacement string based on changes to the spec.
Implements KSeExpr::ControlSpec.
Definition at line 258 of file ControlSpec.cpp.
References KSeExpr::ControlSpec::_name, _str, _type, DIRECTORY, FILE, and STRING.
|
private |
Definition at line 114 of file ControlSpec.h.
Referenced by toString().
|
private |
Definition at line 115 of file ControlSpec.h.
Referenced by toString().