description.hpp 1.32 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//----------------------------------------------------------------------------//
//  Copyright (c) 2018 Armin Sobhani <arminms@gmail.com>
//
//  Distributed under the Boost Software License Version 1.0.
//  (See accompanying ${file} LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//
//----------------------------------------------------------------------------//

#ifndef BOOST_BIOSEQ_COMPONENTS_DESCRIPTION_HPP
#define BOOST_BIOSEQ_COMPONENTS_DESCRIPTION_HPP

namespace boost {
namespace bioseq {
namespace component {

//----------------------------------------------------------------------------//

template <typename CharT = char>
    class description_component
{
public:
/// \name Construction
//@{
    description_component()
    {}
//@}

/// \name Attributes
//@{
    std::basic_string<CharT> description() const
    {   return _description;   }

    void description(std::basic_string<CharT> dscr)
    {   _description = dscr;   }
//@}

// Implementation
protected:
    std::basic_string<CharT> _description;
};

template <typename CharT = char>
    using description = description_component<CharT>;

//----------------------------------------------------------------------------//

} // end component namespace
} // end bioseq namespace
} // end boost namespace

#endif  // BOOST_BIOSEQ_COMPONENTS_DESCRIPTION_HPP