import os
import json
import sys
from pprint import pprint

def loadJSON(fInput):
    with open(fInput) as f:
        return json.load(f)
    return None

if __name__ == '__main__':
    filePath = 'data/example.json'
    data = loadJSON(filePath)
    # check if the data is loaded correctly
    if data is None:
        sys.exit('wrong json file');

    name = data.get('name')
    lstTypes = data.get('types')
    lstFuncs = data.get('functions')

    from dsFileBuilder import DSFileBuilder
    dsb = DSFileBuilder(name, lstTypes)
    dsb.buildDS()
    dicNumpyDS = dsb.getGeneratedNumpyDS()

    from kernelFuncBuilder import KernelFuncBuilder
    kfb = KernelFuncBuilder(name, lstFuncs)
    kfb.buildKF()
    dicKFuncDS = kfb.getGeneratedKFuncDS()

    from oclPyObjGenerator import OCLPyObjGenerator
    opg = OCLPyObjGenerator(name, dicNumpyDS, dicKFuncDS)
    opg.generateOCLPyObj()
    pass

import os
import json
import sys
from pprint import pprint

def loadJSON(fInput):
    with open(fInput) as f:
        return json.load(f)
    return None

if __name__ == '__main__':
    filePath = 'data/example.json'
    data = loadJSON(filePath)
    # check if the data is loaded correctly
    if data is None:
        sys.exit('wrong json file');

    name = data.get('name')
    lstTypes = data.get('types')
    lstFuncs = data.get('functions')

    '''
    from dsFileBuilder import DSFileBuilder
    dsb = DSFileBuilder(name, lstTypes)
    dsb.buildDS()
    dicNumpyDS = dsb.getGeneratedNumpyDS()

    from kernelFuncBuilder import KernelFuncBuilder
    kfb = KernelFuncBuilder(name, lstFuncs)
    kfb.buildKF()
    dicKFuncDS = kfb.getGeneratedKFuncDS()

    from oclPyObjGenerator import OCLPyObjGenerator
    opg = OCLPyObjGenerator(name, dicNumpyDS, dicKFuncDS)
    opg.generateOCLPyObj()
    pass
    '''

Add method definition generator and some sample for test
Add method definition generator and some sample for test
