Skip to content

__main__

main() #

Example calling a function from a C++ class..

During installation of cogip-tools, a script called cogip-cpp-example will be created using this function as entrypoint.

Source code in cogip/tools/cpp_example/__main__.py
 5
 6
 7
 8
 9
10
11
12
13
def main():
    """
    Example calling a function from a C++ class..

    During installation of cogip-tools, a script called `cogip-cpp-example`
    will be created using this function as entrypoint.
    """
    example = PyExample()
    print(example.get_message())