summaryrefslogtreecommitdiff
path: root/src/confpair.h
blob: 5be33c86376c97419bd6096cf9cae618b1359255 (plain)
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
#ifndef CONF_PAIR_H
#define CONF_PAIR_H

#include <stdint.h>
#include <string>
/**
 *
 */
template<class T>
class ConfPair
{
public:
	ConfPair( const std::string &sName ) :
		sName( sName )
	{	}
	
	virtual ~ConfPair()
	{	}

	T &value()
	{
		return tValue;
	}

	const std::string &name()
	{
		return sName;
	}

private:
	std::string sName;
	T tValue;
};

#endif