# -*- coding: utf-8 -*-

from caafinder.database import database
from caafinder.workspace import *
import os


if __name__=='__main__':

    print("Hello CAA Developer")

    # db = database()
    # db.initDatabase('~/Developer/CAAFinderffffff')
    # print(len(db))
    # print(db.querryByHeader('CATBoolean.h'))
    # print(db.querryByType('CATBoolean'))
    # print(db.querryByModuel('JS0FM'))
    # db.insert('type','framework','header','moduel','method','fullname')




    # a = workspace('LC')
    # a.info

    # cpp = '****Developer/CAAFinder/caafinder/******/******.cpp'
    # header = '****Developer/CAAFinder/caafinder/******/*******.h'
    # imakefile = '****Developer/CAAFinder/caafinder/******/Imakefile.mk'
    # identityCard = '****Developer/CAAFinder/caafinder/******/IdentityCard.xml'

    # res = parseCpp(cpp)
    # print(len(res))
    # print(res[0])
    # print(res[1])

    # res = parseHeader(header)
    # print(len(res))
    # print(res[0])
    # print(res[1])
    # modifyHeader(header,res[0],res[1])

    # res = parseImakefile(imakefile)
    # print(len(res))
    # print(res[0])
    # print(res[1])
    # modifyHeader(header,res[0],res[1])

    # res = parseIdentityCard(identityCard)
    # print(len(res))
    # print(res[0])
    # print(res[1])
    # modifyHeader(header,res[0],res[1])

    # a.completeUnit('***')

    # a.completeModuel('***')

    # a.completeFramework('***')

    # a.completeAll()


