NEW FILE HEADER / COPYRIGHT FORMAT
[senf.git] / Utils / TypeIdValue.cci
index 94cb5de..4b6044e 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 //
 // Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-//     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS) 
+// Competence Center NETwork research (NET), St. Augustin, GERMANY 
+//     Stefan Bund <g0dil@berlios.de>
 //
 // 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
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-// Definition of inline non-template functions
+/** \file
+    \brief TypeIdValue inline non-template implementation */
 
 //#include "TypeIdValue.ih"
 
 // Custom includes
+#include "TypeInfo.hh"
 
 #define prefix_ inline
 ///////////////////////////////cci.p///////////////////////////////////////
@@ -63,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_