X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTypeIdValue.hh;h=85eebf03df0ae7184dcc3b56282023d08cb6c242;hb=b8ca4a544cce3e6023bb56b712a03d6362f2bb79;hp=4e6c853189df2e8c4feaae96c3cbce7bc8e5ff2c;hpb=21ebc0092eb8f7754b5400c4b3bfcc0c136d2968;p=senf.git diff --git a/Utils/TypeIdValue.hh b/Utils/TypeIdValue.hh index 4e6c853..85eebf0 100644 --- a/Utils/TypeIdValue.hh +++ b/Utils/TypeIdValue.hh @@ -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 @@ -23,8 +23,8 @@ /** \file \brief TypeIdValue public header */ -#ifndef HH_TypeIdValue_ -#define HH_TypeIdValue_ 1 +#ifndef HH_SENF_Utils_TypeIdValue_ +#define HH_SENF_Utils_TypeIdValue_ 1 // Custom includes #include @@ -64,6 +64,7 @@ namespace senf { bool operator<(TypeIdValue const & other) const; std::string name() const; + std::type_info const & id() const; protected: @@ -71,7 +72,7 @@ namespace senf { template TypeIdValue(Type *); struct Value { - virtual ~Value() {} + virtual ~Value(); virtual std::type_info const & id() = 0; virtual Value * clone() = 0; }; @@ -92,9 +93,7 @@ namespace senf { template TypeIdValue const typeIdValue(); - inline std::ostream & operator<<(std::ostream & os, TypeIdValue const & v) - { return os << v.name(); } - + std::ostream & operator<<(std::ostream & os, TypeIdValue const & v); } ///////////////////////////////hh.e////////////////////////////////////////