Package edu.wpi.grip.ui.codegeneration
Class CppTMethods
- java.lang.Object
-
- edu.wpi.grip.ui.codegeneration.TemplateMethods
-
- edu.wpi.grip.ui.codegeneration.CppTMethods
-
public class CppTMethods extends TemplateMethods
-
-
Constructor Summary
Constructors Constructor Description CppTMethods()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
callOp(TStep step)
Converts a step into a string the represents the call of the operation in the correct language.java.lang.String
getterName(java.lang.String name)
Converts a name into the format for the correct language.java.lang.String
name(java.lang.String name)
Converts a name into the format for the correct language.java.lang.String
setterName(java.lang.String name)
Converts a name into the format for the correct language.-
Methods inherited from class edu.wpi.grip.ui.codegeneration.TemplateMethods
get, parseSocketName, parseSocketType, parseSocketValue
-
-
-
-
Method Detail
-
name
public java.lang.String name(java.lang.String name)
Description copied from class:TemplateMethods
Converts a name into the format for the correct language.- Specified by:
name
in classTemplateMethods
- Parameters:
name
- the unformatted name- Returns:
- the name after it has been formatted
-
getterName
public java.lang.String getterName(java.lang.String name)
Description copied from class:TemplateMethods
Converts a name into the format for the correct language.- Specified by:
getterName
in classTemplateMethods
- Parameters:
name
- the unformatted name- Returns:
- the name after it has been formatted
-
setterName
public java.lang.String setterName(java.lang.String name)
Description copied from class:TemplateMethods
Converts a name into the format for the correct language.- Specified by:
setterName
in classTemplateMethods
- Parameters:
name
- the unformatted name- Returns:
- the name after it has been formatted
-
callOp
public java.lang.String callOp(TStep step)
Description copied from class:TemplateMethods
Converts a step into a string the represents the call of the operation in the correct language. Used in the Templates- Specified by:
callOp
in classTemplateMethods
- Parameters:
step
- the step that will be called- Returns:
- a string that is the call to the operation.
-
-