Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
::sscanf(iname.c_str(), "%u%n", &nb, &offset);
iname = std::string(iname, offset, std::string::npos);
name += std::string(iname, 0, nb);
::sscanf(iname.c_str(), "%u%n", &nb, &offset);
iname = std::string(iname, offset, std::string::npos);
name += std::string(iname, 0, nb);
- if(i + 1 < nested) name += "::";
- iname = std::string(iname, nb, std::string::npos);
+ if ( i + 1 < nested) name += "::";
+ iname = std::string(iname, nb, std::string::npos );
- std::ostream& operator<<(std::ostream &os, const Exception &e) {
- try {
- os << "Exception " << e.getName() << " thrown: " << e.getError() << std::endl;
- }
- catch(...) {
- Exception::fatal("operator<<(std::ostream &, const Exception&)");
- }
- return os;
+std::ostream& operator<<(std::ostream &os, const Exception &e)
+{
+ try
+ {
+ os << "Exception " << e.getName() << " thrown: " << e.getError() << std::endl;
+ }
+ catch(...)
+ {
+ Exception::fatal("operator<<(std::ostream &, const Exception&)");
+ }
+ return os;