Exemple #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
 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
 def mapProperty(self, prop):
     cppprop = {}
     if prop.hasName():
         name = prop.name()
     else:
         name = prop.identifier()
     cppprop['cppname'] = cpp.identifier(name)
     return cppprop
Exemple #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
 def getStructPropertyType(self, prop):
     return cpp.identifier(prop.name() + '_struct')
Exemple #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
Exemple #8
0
 def getStructPropertyType(self, prop):
     return cpp.identifier(prop.name() + '_struct')