|
Electroneum
|
Functions | |
| def | which (pgm) |
| def | namespace_file (fpath, package) |
| def | protoc (files, out_dir, additional_includes=(), package=None, force=False) |
| def | update_message_files (tmpdir_out, out_dir, force=False) |
| def | add_undef (out_dir) |
| def | strip_leader (s, prefix) |
| def | main () |
Variables | |
| string | AUTO_HEADER = "# Automatically generated by pb2cpp\n" |
| string | UNDEF_STATEMENT |
| PROTOC = None | |
| PROTOC_INCLUDE = None | |
| def pb2cpp.add_undef | ( | out_dir | ) |
| def pb2cpp.main | ( | ) |
| def pb2cpp.namespace_file | ( | fpath, | |
| package | |||
| ) |
Adds / replaces package name. Simple regex parsing, may use https://github.com/ph4r05/plyprotobuf later
| def pb2cpp.protoc | ( | files, | |
| out_dir, | |||
additional_includes = (), |
|||
package = None, |
|||
force = False |
|||
| ) |
Compile code with protoc and return the data.
| def pb2cpp.strip_leader | ( | s, | |
| prefix | |||
| ) |
Remove given prefix from underscored name.
| def pb2cpp.update_message_files | ( | tmpdir_out, | |
| out_dir, | |||
force = False |
|||
| ) |
| def pb2cpp.which | ( | pgm | ) |
| string pb2cpp.AUTO_HEADER = "# Automatically generated by pb2cpp\n" |
| pb2cpp.PROTOC = None |
| pb2cpp.PROTOC_INCLUDE = None |