|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
IComparable
|
+--CodeElement
|
+--CFunction
in CFunction.csA class generating a C function declaration.
| Field Summary | |
override int |
Category
Returns a numeric category number for the code element. |
bool |
PrintCode
The print method source code property. |
const int |
STATIC
The static modifier constant. |
| Fields inherited from class CodeElement |
Category |
| Constructor Summary | |
CFunction( string name )
Creates a new function with the specified name. |
|
CFunction( string name, string args )
Creates a new function with the specified name and arguments. |
|
CFunction( string name, string args, string returnType )
Creates a new function with the specified name, arguments and return type. |
|
CFunction( int modifiers, string name, string args, string returnType )
Creates a new function with the specified arguments. |
|
| Method Summary | |
void |
AddCode( string codeLines )
Adds one or more lines of actual code. |
void |
AddComment( CComment comment )
Sets a comment for this function. |
override void |
Print( StreamWriter output, CodeStyle style, int indent )
Prints the code element to the specified output stream. |
override string |
ToString()
Returns the function name. |
| Methods inherited from class CodeElement |
CompareTo, Print, PrintSeparator |
| Field Detail |
public override int Category;
public bool PrintCode;
public const int STATIC;
| Constructor Detail |
public CFunction( string name );
name - the function namepublic CFunction( string name, string args );
name - the function name
args - the argument list, excluding parenthesispublic CFunction( string name, string args, string returnType );
name - the function name
args - the argument list, excluding parenthesis
returnType - the return typepublic CFunction( int modifiers, string name, string args, string returnType );
modifiers - the modifier flags to use (or zero)
name - the function name
args - the argument list, excluding parenthesis
returnType - the return type| Method Detail |
public void AddCode( string codeLines );
codeLines - the lines of C code to addpublic void AddComment( CComment comment );
comment - the new function commentpublic override void Print( StreamWriter output, CodeStyle style, int indent );
output - the output stream
style - the code style to use
indent - the indentation levelpublic override string ToString();
|
SourceFlow 1.0.beta API Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||