| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "na64util/vctr.hh" | ||
| 2 | #include "na64util/str-fmt.hh" | ||
| 3 | #include "na64util/demangle.hh" | ||
| 4 | |||
| 5 | #include <cstring> | ||
| 6 | |||
| 7 | namespace na64dp { | ||
| 8 | namespace errors { | ||
| 9 | |||
| 10 | 1 | CtrNotFound::CtrNotFound( const std::string & name | |
| 11 | 1 | , const std::type_info & typeInfo ) throw() | |
| 12 | 2 | : std::runtime_error(util::format( "No virtual constructor named \"%s\" found for subclass of %s." | |
| 13 | 2 | , name.c_str(), util::demangle_cpp(typeInfo.name()).get() ).c_str()) | |
| 14 | 2 | , _typeInfo(typeInfo) | |
| 15 | { | ||
| 16 | 1 | strncpy( _name, name.c_str(), sizeof(_name) ); | |
| 17 | 1 | } | |
| 18 | |||
| 19 | ✗ | NoCtrsOfType::NoCtrsOfType( const std::type_info & typeInfo ) throw() | |
| 20 | ✗ | : std::runtime_error(util::format( "Unknown base type `%s' requested in virtual constructor." | |
| 21 | ✗ | , util::demangle_cpp(typeInfo.name()).get() | |
| 22 | ).c_str()) | ||
| 23 | ✗ | , _typeInfo(typeInfo) | |
| 24 | { | ||
| 25 | } | ||
| 26 | |||
| 27 | } | ||
| 28 | |||
| 29 | VCtr * VCtr::_self = nullptr; | ||
| 30 | |||
| 31 | } | ||
| 32 | |||
| 33 |