From a5cd5aaad06c0d46c8b392cc3de83aac074714ff Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Sun, 23 Jan 2011 16:33:17 +0100 Subject: [PATCH] Fixed filename in file comment block. --- src/attributes.hpp | 14 ++++++++++++-- src/string2type.hpp | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/attributes.hpp b/src/attributes.hpp index a544e37..391d096 100644 --- a/src/attributes.hpp +++ b/src/attributes.hpp @@ -1,7 +1,7 @@ //! \file attributes.hpp //! \brief C++ Library (header-only). -// settable.hpp ------------------------------------------------------------// +// attributes.hpp ----------------------------------------------------------// // // Copyright Jens Luedicke 2010 @@ -32,6 +32,10 @@ public: //! //! Pure virtual method. + //! + //! This method needs to be implemented in classes derived from + //! \e abstract_attribute. + //! //! virtual void set_value(const std::string &value) = 0; }; @@ -42,7 +46,7 @@ public: //! //! Wraps a reference to an object of type T. //! -//! \tparam T Assignable type +//! \tparam T Assignable type. //! template class attribute : public abstract_attribute { @@ -51,6 +55,8 @@ public: //! //! \brief Constructor //! + //! \param object Reference to object of type T. + //! explicit attribute(T &object) : reference(object) { BOOST_CONCEPT_ASSERT((boost::Assignable)); @@ -59,6 +65,10 @@ public: //! //! \brief Implementation of set_value method. //! + //! This method assigns \e value to \e this. + //! + //! \param value String + //! virtual void set_value(const std::string &value) { reference = string2type::convert(value); } diff --git a/src/string2type.hpp b/src/string2type.hpp index 12ba2c5..1105b7b 100644 --- a/src/string2type.hpp +++ b/src/string2type.hpp @@ -1,7 +1,7 @@ //! \file string2type.hpp //! \brief C++ Library (header-only). -// settable.hpp ------------------------------------------------------------// +// string2type.hpp ------------------------------------------------------------// // // Copyright Jens Luedicke 2010