// Mandatory for basic diameter type:
- void codeBasic(char* buffer, int &size) throw(anna::RuntimeException);
- void setPrintableString(const char * printableString) throw(anna::RuntimeException);
+ void codeBasic(char* buffer, int &size) noexcept(false);
+ void setPrintableString(const char * printableString) noexcept(false);
public:
+ virtual ~Float32() {;}
// Class-specific ////////////////////////////////////////////////////////////////////////////////////
//
*
* @return Float32 value
*/
- const F32& getValue() const throw() { return a_value; }
+ const F32& getValue() const { return a_value; }
/**
* Sets the Float32 value
*
* @param value Float32 value
*/
- void setValue(const F32& value) throw() { a_value = value; }
+ void setValue(const F32& value) { a_value = value; }
//
//////////////////////////////////////////////////////////////////////////////////////////////////////
// gets
- virtual std::string getFormatName() const throw() { return "Float32"; }
- virtual int getSize() const throw() { return 4; }
+ virtual std::string getFormatName() const { return "Float32"; }
+ virtual int getSize() const { return 4; }
// helpers
- std::string asPrintableString() throw(anna::RuntimeException) {
+ std::string asPrintableString() noexcept(false) {
return anna::functions::asString(a_value);
}
- std::string asString() throw(anna::RuntimeException) {
+ std::string asString() noexcept(false) {
return asPrintableString();
}
// sets
- void decode(const char* buffer, const int size) throw(anna::RuntimeException);
+ void decode(const char* buffer, const int size) noexcept(false);
};
}