Fixed filename in file comment block.

This commit is contained in:
Jens Luedicke
2011-01-23 16:33:17 +01:00
parent 7b8555c30e
commit a5cd5aaad0
2 changed files with 13 additions and 3 deletions

View File

@@ -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<typename T>
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<T>));
@@ -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<T>(value);
}

View File

@@ -1,7 +1,7 @@
//! \file string2type.hpp
//! \brief C++ Library (header-only).
// settable.hpp ------------------------------------------------------------//
// string2type.hpp ------------------------------------------------------------//
//
// Copyright Jens Luedicke 2010