Skip to content
Snippets Groups Projects
Commit fc7161e7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't throw

parent aa233d8d
No related branches found
No related tags found
No related merge requests found
...@@ -69,14 +69,22 @@ class FieldOption { ...@@ -69,14 +69,22 @@ class FieldOption {
default: return "unknown"; default: return "unknown";
} }
} }
virtual void numericalValue(double val) { throw(1); } virtual void numericalValue(double val) {}
virtual double numericalValue() const { throw(1); } virtual double numericalValue() const { return 0.; }
virtual const std::list<int> &list() const { printf("coucou4\n");throw(1); } virtual const std::list<int> &list() const
virtual const std::list<double> &listdouble() const { printf("coucou3\n");throw(1); } {
virtual void list(std::list<int> value) { printf("coucou1\n");throw(1); } static std::list<int> l;
virtual void listdouble(std::list<double> value) { printf("coucou2\n");throw(1); } return l;
virtual std::string string() const { throw(1); } }
virtual void string(const std::string value) { throw(1); } virtual const std::list<double> &listdouble() const
{
static std::list<double> l;
return l;
}
virtual void list(std::list<int> value) { }
virtual void listdouble(std::list<double> value) { }
virtual std::string string() const { return ""; }
virtual void string(const std::string value) { }
}; };
class Field { class Field {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment