COPASI API  4.16.103
SBWTranslator.h
Go to the documentation of this file.
1 // Copyright (C) 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef COPASI_SBW_TRANSLATOR_H
7 #define COPASI_SBW_TRANSLATOR_H
8 
9 #include <string>
10 
11 #include <SBW/MethodTable.h>
12 #include <SBW/DataBlockWriter.h>
13 #include <SBW/DataBlockReader.h>
14 #include <SBW/Module.h>
15 
17 {
18 public:
20  virtual ~Copasi2SBMLTranslator();
21 
22  static void registerMethods(SystemsBiologyWorkbench::MethodTable<Copasi2SBMLTranslator> &table);
23 
24  static std::string translateToSBML(const std::string &copasiString);
25  static std::string translate(const std::string &sbmlString);
26  static std::string translateFileToSBML(const std::string &fileName);
27 
28 protected:
29 
30  SystemsBiologyWorkbench::DataBlockWriter getName(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
31  SystemsBiologyWorkbench::DataBlockWriter getVersion(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
32  SystemsBiologyWorkbench::DataBlockWriter getAuthor(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
33  SystemsBiologyWorkbench::DataBlockWriter getDescription(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
34  SystemsBiologyWorkbench::DataBlockWriter getCopyright(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
35  SystemsBiologyWorkbench::DataBlockWriter getURL(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
36  SystemsBiologyWorkbench::DataBlockWriter getFileExtension(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
37  SystemsBiologyWorkbench::DataBlockWriter getFileType(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
38  SystemsBiologyWorkbench::DataBlockWriter translate(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
39  SystemsBiologyWorkbench::DataBlockWriter translateToSBML(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
40  SystemsBiologyWorkbench::DataBlockWriter translateFileToSBML(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader);
41 
42 private:
43 
44  static int mLevel;
45  static int mVersion;
46 };
47 
48 #endif //COPASI_SBW_TRANSLATOR_H
SystemsBiologyWorkbench::DataBlockWriter getAuthor(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
static std::string translateFileToSBML(const std::string &fileName)
static std::string translateToSBML(const std::string &copasiString)
SystemsBiologyWorkbench::DataBlockWriter getVersion(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
SystemsBiologyWorkbench::DataBlockWriter getDescription(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
SystemsBiologyWorkbench::DataBlockWriter getURL(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
static void registerMethods(SystemsBiologyWorkbench::MethodTable< Copasi2SBMLTranslator > &table)
static std::string translate(const std::string &sbmlString)
SystemsBiologyWorkbench::DataBlockWriter getFileType(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
SystemsBiologyWorkbench::DataBlockWriter getName(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
SystemsBiologyWorkbench::DataBlockWriter getCopyright(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
SystemsBiologyWorkbench::DataBlockWriter getFileExtension(SystemsBiologyWorkbench::Module from, SystemsBiologyWorkbench::DataBlockReader reader)
virtual ~Copasi2SBMLTranslator()