attach ("double", a_double);
}
- void set (const std::string& value) throw () { a_string = a_string2 = value; a_string2 += value; }
- void set (const int value) throw () { a_integer = value; }
- void set (const anna::DataBlock& value) throw () { a_dataBlock = value; }
- void set (const float value) throw () { a_float = value; }
- void set (const double value) throw () { a_double = value; }
+ void set (const std::string& value) { a_string = a_string2 = value; a_string2 += value; }
+ void set (const int value) { a_integer = value; }
+ void set (const anna::DataBlock& value) { a_dataBlock = value; }
+ void set (const float value) { a_float = value; }
+ void set (const double value) { a_double = value; }
- const std::string& getString () const throw () { return a_string; }
- const int getInteger () const throw () { return a_integer; }
- const anna::DataBlock& getDataBlock () const throw (anna::RuntimeException) { return a_dataBlock; }
- const std::string& getString2 () const throw () { return a_string2; }
- float getFloat () const throw () { return a_float; }
- float getDouble () const throw () { return a_double; }
+ const std::string& getString () const { return a_string; }
+ const int getInteger () const { return a_integer; }
+ const anna::DataBlock& getDataBlock () const noexcept(false) { return a_dataBlock; }
+ const std::string& getString2 () const { return a_string2; }
+ float getFloat () const { return a_float; }
+ float getDouble () const { return a_double; }
private:
std::string a_string;
MyCodec a_input;
MyCodec a_output;
- void run () throw (anna::RuntimeException);
+ void run () noexcept(false);
};
using namespace std;
}
void Test::run ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cm (CommandLine::instantiate ());