|
23 |
#include "attribute.h" |
23 |
#include "attribute.h" |
24 |
#include "attribute-accessor-helper.h" |
24 |
#include "attribute-accessor-helper.h" |
25 |
#include <sstream> |
25 |
#include <sstream> |
26 |
#include "fatal-error.h" |
26 |
#include "abort.h" |
27 |
|
27 |
|
28 |
/** |
28 |
/** |
29 |
* \file |
29 |
* \file |
|
296 |
std::istringstream iss; \ |
296 |
std::istringstream iss; \ |
297 |
iss.str (value); \ |
297 |
iss.str (value); \ |
298 |
iss >> m_value; \ |
298 |
iss >> m_value; \ |
|
|
299 |
NS_ABORT_MSG_UNLESS (iss.eof (), "Attribute value " << "\"" << value << "\"" << " is not properly formatted"); \ |
299 |
return !iss.bad () && !iss.fail (); \ |
300 |
return !iss.bad () && !iss.fail (); \ |
300 |
} |
301 |
} |
301 |
|
302 |
|