Esempio n. 1
0
 def _mapPort(self, port, generator):
     cppport = {}
     cppport['cppname'] = cpp.identifier(port.name())
     cppport['cpptype'] = generator.className()
     cppport['constructor'] = generator.constructor(port.name())
     cppport['multiout'] = generator.supportsMultiOut()
     return cppport
Esempio n. 2
0
 def _mapPort(self, port, generator):
     cppport = {}
     cppport['cppname'] = cpp.identifier(port.name())
     cppport['cpptype'] = generator.className()
     cppport['constructor'] = generator.constructor(port.name())
     cppport['multiout'] = generator.supportsMultiOut()
     return cppport
Esempio n. 3
0
 def mapProperty(self, prop):
     cppprop = {}
     if prop.hasName():
         name = prop.name()
     else:
         name = prop.identifier()
     cppprop['cppname'] = cpp.identifier(name)
     return cppprop
Esempio n. 4
0
 def mapProperty(self, prop):
     cppprop = {}
     if prop.hasName():
         name = prop.name()
     else:
         name = prop.identifier()
     cppprop['cppname'] = cpp.identifier(name)
     return cppprop
 def _mapPort(self, port, generator):
     cppport = {}
     cppport['cppname'] = cpp.identifier(port.name())
     cppport['cpptype'] = generator.className()
     if generator.hasStart():
         cppport['start'] = generator.start()
     if generator.hasStop():
         cppport['stop'] = generator.stop()
     cppport['constructor'] = generator.constructor(port.name())
     cppport['headers'] = generator.headers()
     return cppport
Esempio n. 6
0
 def getStructPropertyType(self, prop):
     return cpp.identifier(prop.name() + '_struct')
Esempio n. 7
0
 def mapEnumeration(self, prop, label, value):
     cppenum = {}
     cppenum['cpplabel'] = cpp.identifier(label)
     cppenum['cppvalue'] = cpp.literal(value, prop.type(), prop.isComplex())
     return cppenum
Esempio n. 8
0
 def getStructPropertyType(self, prop):
     return cpp.identifier(prop.name() + '_struct')