PhoenixGenerator  2.2.0
Set of tools to generate code
Loading...
Searching...
No Matches
NanobindTraitProperty.cpp File Reference
+ Include dependency graph for NanobindTraitProperty.cpp:

Go to the source code of this file.

Functions

PString createGetterMethodName (const PString &varName)
 Creates a getter method name.
 
PString createSetterMethodName (const PString &varName)
 Creates a setter method name.
 

Function Documentation

◆ createGetterMethodName()

PString createGetterMethodName ( const PString & varName)

Creates a getter method name.

Parameters
varName: name of the var to get
Returns
getter method name

Definition at line 21 of file NanobindTraitProperty.cpp.

21 {
22 return "get" + varName.firstToUpper();
23}

Referenced by NanobindTraitProperty::registerProperty().

+ Here is the caller graph for this function:

◆ createSetterMethodName()

PString createSetterMethodName ( const PString & varName)

Creates a setter method name.

Parameters
varName: name of the var to set
Returns
setter method name

Definition at line 29 of file NanobindTraitProperty.cpp.

29 {
30 return "set" + varName.firstToUpper();
31}

Referenced by NanobindTraitProperty::registerProperty().

+ Here is the caller graph for this function: