synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
tool
named_type.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
23
/* ========================================================================= */
24
25
#ifndef __SYNFIG_NAMED_TYPE_H
26
#define __SYNFIG_NAMED_TYPE_H
27
35
template
<
typename
T>
36
struct
named_type
37
:
public
boost::program_options::typed_value<T>
38
{
39
named_type
(
std::string
const
&
name
)
40
: boost::program_options::typed_value<T>(&
value
)
41
,
_name
(name)
42
{
43
}
44
std::string
name
()
const
{
return
_name
; }
45
std::string
_name
;
46
T
value
;
47
};
48
49
#endif
Generated on Mon Nov 16 2015 15:33:47 for synfig-core by
1.8.1.2