X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTypeIdValue.hh;h=85eebf03df0ae7184dcc3b56282023d08cb6c242;hb=412024ed31a4ab4eaea7a4165a434f8efebee325;hp=61bcdd1d63a842d248dd9d8a99fa7a13f4b1aad9;hpb=a3d3979b7daaf22ea63ca356edbfa8047dff7b78;p=senf.git diff --git a/Utils/TypeIdValue.hh b/Utils/TypeIdValue.hh index 61bcdd1..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 @@ -20,8 +20,11 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef HH_TypeIdValue_ -#define HH_TypeIdValue_ 1 +/** \file + \brief TypeIdValue public header */ + +#ifndef HH_SENF_Utils_TypeIdValue_ +#define HH_SENF_Utils_TypeIdValue_ 1 // Custom includes #include @@ -61,6 +64,7 @@ namespace senf { bool operator<(TypeIdValue const & other) const; std::string name() const; + std::type_info const & id() const; protected: @@ -68,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; }; @@ -89,6 +93,7 @@ namespace senf { template TypeIdValue const typeIdValue(); + std::ostream & operator<<(std::ostream & os, TypeIdValue const & v); } ///////////////////////////////hh.e////////////////////////////////////////