X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTypeIdValue.cci;h=ea4ee6589499e230cc5bcb944e731e42bc2d272e;hb=a9fd0471a3ca128c626a6771c4518f33ef78f053;hp=9b5a0bfcf2df26497ffb71f6159e5e4b684ac90b;hpb=c3e26baef92c53af9826c2af3bfe4f3570c634bd;p=senf.git diff --git a/Utils/TypeIdValue.cci b/Utils/TypeIdValue.cci index 9b5a0bf..ea4ee65 100644 --- a/Utils/TypeIdValue.cci +++ b/Utils/TypeIdValue.cci @@ -26,6 +26,7 @@ //#include "TypeIdValue.ih" // Custom includes +#include "TypeInfo.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// @@ -64,11 +65,23 @@ prefix_ std::string senf::TypeIdValue::name() return std::string(value_->id().name()); } +prefix_ std::type_info const & senf::TypeIdValue::id() + const +{ + return value_->id(); +} + prefix_ senf::TypeIdValue const senf::typeIdValue() { return TypeIdValue(); } +prefix_ std::ostream & senf::operator<<(std::ostream & os, TypeIdValue const & v) +{ + os << prettyName(v.id()); + return os; +} + ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_