Skip to content

Commit

Permalink
Reimplemented tables.{h,cpp} (and hopefully made code more clear)
Browse files Browse the repository at this point in the history
and also added support to load tables form MAT-file ver4.



git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5975 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Anton Sodja committed Aug 29, 2010
1 parent 07dfbfe commit 22b3bcf
Show file tree
Hide file tree
Showing 3 changed files with 697 additions and 616 deletions.
22 changes: 11 additions & 11 deletions c_runtime/simulation_runtime.h
Expand Up @@ -293,17 +293,17 @@ throw TerminateSimulationException(string(msg)); } } while(0)
*/

class TerminateSimulationException {
public:
TerminateSimulationException(std::string msg) : currentTime(0.0), errorMessage(std::string(msg)) {} ;
TerminateSimulationException(double time) : currentTime(time), errorMessage(std::string("")) {} ;
TerminateSimulationException(double time, std::string msg) : currentTime(time), errorMessage(msg) {};
TerminateSimulationException() : currentTime(0.0) {};
~TerminateSimulationException() {};
std::string getMessage() { return errorMessage; };
double getTime() { return currentTime; };
private :
double currentTime;
std::string errorMessage;
public:
TerminateSimulationException(const std::string& msg) : currentTime(0.0), errorMessage(msg) {}
TerminateSimulationException(double time) : currentTime(time), errorMessage("") {}
TerminateSimulationException(double time, const std::string& msg) : currentTime(time), errorMessage(msg) {}
TerminateSimulationException() : currentTime(0.0) {}
virtual ~TerminateSimulationException() {}
const std::string& getMessage() const { return errorMessage; }
double getTime() const { return currentTime; }
protected:
double currentTime;
std::string errorMessage;
};

#endif

0 comments on commit 22b3bcf

Please sign in to comment.