• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.6
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
    SSM Parser

    The SSM Parser is a Python script that processes the JSON file with the state machine framework definition and generates the source files for the state machines.

    Usage

    python parser.py    [--input   /path/to/file/<filename>.json]
                        [--src     /path/to/directory/<output src directory>]
                        [--include /path/to/directory/<output src directory>]
    

    Parameters

    --input [path to JSON file]
        Description: The JSON file contains the SSM framework for the application
        Example: --input ../samples/demo1/sm1.json
    
    --src   [Relative path to output source directory]
        Description: The parser generates the necessary C++ implementation files
        based on the JSON file and places the code in directory mentioned by this
        argument
        Example: --src ./src/sm1
    
    --include [Relative path to output include directory]
        Description: The parser generates the necessary C++ header files based on the
        JSON file and places the code in directory mentioned by this argument
        Example: --inc ./include/sm1
    

    To run SSM's parser with sm1.json for example:

    python parser.py --input ../samples/demo1/sm1.json --src ../samples/demo1/src/sm1 --include ../samples/demo1/include/sm1

    Output

    ('parser.py output src directory \n', '../samples/demo1/src/sm1')
    ('parser.py output include directory \n', '../samples/demo1/include/sm1')
    
    人人超碰97caoporen国产