32 throw std::runtime_error(
"Received SIGSEGV signal.");
50 std::cerr <<
"Setting the signal handler failed." << std::endl;
68 std::cerr <<
"Resetting the signal handler failed." << std::endl;
86 catch (
const std::runtime_error& e)
88 CPPUNIT_ASSERT_MESSAGE(
"The second export to Level 3 Version 1 failed.",
false);
93 "<sbml xmlns=\"http://www.sbml.org/sbml/level3/version1/core\" level=\"3\" version=\"1\">\n"
94 " <model id=\"Module_1_RL2_1\" name=\"Module_1_RL2\">\n"
95 " <listOfReactions>\n"
96 " <reaction fast=\"false\" id=\"reaction_0\" name=\"reaction_0\" reversible=\"false\">\n"
98 " </listOfReactions>\n"
static struct sigaction * pOldAct
std::string exportSBMLToString(CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion)
static struct sigaction * pNewAct
static const char * SBML_STRING
static void abort_handler(int)
static CCopasiDataModel * addDatamodel()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static void init(int argc, char *argv[], const bool &withGui=false)
CCopasiDataModel * pDataModel