KSeExpr 6.0.0.0
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
KSeExpr::ExprStrSpec Class Reference

#include <ControlSpec.h>

Inheritance diagram for KSeExpr::ExprStrSpec:
KSeExpr::ControlSpec

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
 
ControlSpecoperator= (const ControlSpec &)=default
 
ControlSpecoperator= (ControlSpec &&)=default
 
 ControlSpec (const ControlSpec &)=default
 
 ControlSpec (ControlSpec &&)=default
 

Static Public Member Functions

static const ExprStrSpecmatch (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.
 

Detailed Description

Definition at line 96 of file ControlSpec.h.

Member Enumeration Documentation

◆ Type

Enumerator
STRING 
FILE 
DIRECTORY 

Definition at line 98 of file ControlSpec.h.

Constructor & Destructor Documentation

◆ ExprStrSpec()

KSeExpr::ExprStrSpec::ExprStrSpec ( const ExprStrNode node,
const char name,
Type  type 
)
inline

Takes name and type comments and takes ownership of them!

Definition at line 102 of file ControlSpec.h.

References KSeExpr::ControlSpec::_name.

Member Function Documentation

◆ match()

const ExprStrSpec * KSeExpr::ExprStrSpec::match ( const ExprNode node)
static

◆ toString()

std::string KSeExpr::ExprStrSpec::toString ( ) const
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.

Member Data Documentation

◆ _str

std::string KSeExpr::ExprStrSpec::_str
private

Definition at line 114 of file ControlSpec.h.

Referenced by toString().

◆ _type

Type KSeExpr::ExprStrSpec::_type
private

Definition at line 115 of file ControlSpec.h.

Referenced by toString().


The documentation for this class was generated from the following files: