Method | Description | |
---|---|---|
Run ( string proto ) : void |
Run the whole process.
|
Method | Description | |
---|---|---|
CompileProto ( ) : bool |
Compile the proto file.
|
|
CopyFile ( ) : void |
Generate the xml file. Copy the protobuf to the temp folder and convert it to UTF-8 without BOF, otherwise protov cannot read the file.
|
|
ErrorDataReceived ( object sender, |
Receive the error messages.
|
|
GenerateCode ( ) : void |
Generate the code file.
|
|
GetProtocVersion ( ) : void |
Get the protoc version number.
|
|
OutputDataReceived ( object sender, |
Receive the info messages.
|
|
PrepareProtoc ( ) : bool |
Get protoc from the resources and copy it to the temp folder.
|
|
RunProtoc ( string parms ) : bool |
Run protoc to compile the proto file.
|
|
ToCamelCase ( string name ) : string |
Convert name to camelCase.
|
|
ToPascalCase ( string name ) : string |
Convert name to PascalCase.
|
|
WriteEnums ( |
Write the enums.
|
|
WriteFields ( |
||
WriteLineIntended ( |
Write the line intended.
|
|
WriteMessages ( |
||
WriteServices ( |
public Run ( string proto ) : void | ||
proto | string | /// The path to the protbuf file. /// |
return | void |