X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTypeIdValue.cci;h=e73ffd0f8961d4e92fb92836e6de24797999af22;hb=412024ed31a4ab4eaea7a4165a434f8efebee325;hp=9b5a0bfcf2df26497ffb71f6159e5e4b684ac90b;hpb=1f3b4447179d0cd771037d02b9a5671eeaaaec8d;p=senf.git diff --git a/Utils/TypeIdValue.cci b/Utils/TypeIdValue.cci index 9b5a0bf..e73ffd0 100644 --- a/Utils/TypeIdValue.cci +++ b/Utils/TypeIdValue.cci @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -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_