Beispiel #1
0
def writeClassDefn(fileOut, nameOfClass, pkg, members):
  fileOut.write('class LIBSEDML_EXTERN {0} : public SedBasePlugin\n'.format(nameOfClass))
  fileOut.write('{\npublic:\n\n')
  writeConstructors(fileOut, nameOfClass, pkg)
  writeRequiredMethods(fileOut)
  writeGetFunctions(fileOut, pkg, members)
  generalFunctions.writeSetDocHeader(fileOut)
  # TO DO - these properly
  fileOut.write('\tvirtual void connectToParent (SedBase* sbase);\n\n\n')
  #fileOut.write('\tvirtual void enablePackageInternal(const std::string& pkgURI,\n')
  #fileOut.write('\t                                   const std::string& pkgPrefix, bool flag);\n\n\n')
  writeClassEnd(fileOut, members)
Beispiel #2
0
def writeClassDefn(fileOut, nameOfClass, pkg, members):
    fileOut.write('class LIBSEDML_EXTERN {0} : public SedBasePlugin\n'.format(
        nameOfClass))
    fileOut.write('{\npublic:\n\n')
    writeConstructors(fileOut, nameOfClass, pkg)
    writeRequiredMethods(fileOut)
    writeGetFunctions(fileOut, pkg, members)
    generalFunctions.writeSetDocHeader(fileOut)
    # TO DO - these properly
    fileOut.write('\tvirtual void connectToParent (SedBase* sbase);\n\n\n')
    #fileOut.write('\tvirtual void enablePackageInternal(const std::string& pkgURI,\n')
    #fileOut.write('\t                                   const std::string& pkgPrefix, bool flag);\n\n\n')
    writeClassEnd(fileOut, members)
Beispiel #3
0
def writeClassDefn(fileOut, nameOfClass, pkg, members, attribs, plugin):
  fileOut.write('class LIBSBML_EXTERN {0} : public SBasePlugin\n'.format(nameOfClass))
  fileOut.write('{\npublic:\n\n')
  writeConstructors(fileOut, nameOfClass, pkg)
  writeRequiredMethods(fileOut, attribs)
  writeGetFunctions(fileOut, pkg, members, nameOfClass, attribs)
  generalFunctions.writeSetDocHeader(fileOut)
  # TO DO - these properly
  generalFunctions.writeInternalStart(fileOut)
  fileOut.write('  virtual void connectToParent (SBase* sbase);\n\n\n')
  generalFunctions.writeInternalEnd(fileOut)
  generalFunctions.writeInternalStart(fileOut)
  fileOut.write('  virtual void enablePackageInternal(const std::string& pkgURI,\n')
  fileOut.write('                                     const std::string& pkgPrefix, bool flag);\n\n\n')
  generalFunctions.writeInternalEnd(fileOut)
  generalFunctions.writeInternalStart(fileOut)
  fileOut.write('  virtual bool accept (SBMLVisitor& v) const;\n\n')
  generalFunctions.writeInternalEnd(fileOut)

  writeClassEnd(fileOut, members, attribs, plugin)
Beispiel #4
0
def writeClassDefn(fileOut, nameOfClass, pkg, members, attribs, plugin):
    fileOut.write(
        'class LIBSBML_EXTERN {0} : public SBasePlugin\n'.format(nameOfClass))
    fileOut.write('{\npublic:\n\n')
    writeConstructors(fileOut, nameOfClass, pkg)
    writeRequiredMethods(fileOut, attribs)
    writeGetFunctions(fileOut, pkg, members, nameOfClass, attribs)
    generalFunctions.writeSetDocHeader(fileOut)
    # TO DO - these properly
    generalFunctions.writeInternalStart(fileOut)
    fileOut.write('  virtual void connectToParent (SBase* sbase);\n\n\n')
    generalFunctions.writeInternalEnd(fileOut)
    generalFunctions.writeInternalStart(fileOut)
    fileOut.write(
        '  virtual void enablePackageInternal(const std::string& pkgURI,\n')
    fileOut.write(
        '                                     const std::string& pkgPrefix, bool flag);\n\n\n'
    )
    generalFunctions.writeInternalEnd(fileOut)
    generalFunctions.writeInternalStart(fileOut)
    fileOut.write('  virtual bool accept (SBMLVisitor& v) const;\n\n')
    generalFunctions.writeInternalEnd(fileOut)

    writeClassEnd(fileOut, members, attribs, plugin)