TIOVX User Guide
tiovx.export_code.ExportCode Class Reference

Export objects from context to C source code. More...

Inherits tiovx.export.Export.

Public Member Functions

def __init__ (self, context, env_var='VISION_APPS_PATH')
 Constructor used to create this object. More...
 
def export (self)
 Export object as C source code.
 

Detailed Description

Export objects from context to C source code.

Example Usage: Export objects from context to C source code
from tiovx import *
my_context = Context("my_usecase")
...
ExportCode(my_context, VISION_APPS_PATH).export()

Output files from the above parameters:

<VISION_APPS_PATH>/apps/my_usecase/DEVELOPER_TODO.txt
<VISION_APPS_PATH>/apps/my_usecase/concerto_inc.mak
<VISION_APPS_PATH>/apps/my_usecase/app_my_usecase/concerto.mak
<VISION_APPS_PATH>/apps/my_usecase/app_my_usecase/my_usecase.c
<VISION_APPS_PATH>/apps/my_usecase/app_my_usecase/my_usecase.h

Output files from the above parameters in the case that the environment variable CUSTOM_APPLICATION_PATH was given:

<CUSTOM_APPLICATION_PATH>/DEVELOPER_TODO.txt
<CUSTOM_APPLICATION_PATH>/concerto_inc.mak
<CUSTOM_APPLICATION_PATH>/custom_tools_path.mak
<CUSTOM_APPLICATION_PATH>/kernels/custom_app_kernel_library_tests.h
<CUSTOM_APPLICATION_PATH>/app_my_usecase/concerto.mak
<CUSTOM_APPLICATION_PATH>/app_my_usecase/my_usecase.c
<CUSTOM_APPLICATION_PATH>/app_my_usecase/my_usecase.h

Definition at line 102 of file export_code.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.export_code.ExportCode.__init__ (   self,
  context,
  env_var = 'VISION_APPS_PATH' 
)

Constructor used to create this object.

Parameters
context[in] Context object. tiovx::context::Context
env_var[in] [optional] Path to the directory where these should be outputted; Default="VISION_APPS_PATH"

Definition at line 107 of file export_code.py.


The documentation for this class was generated from the following file: