Debian Codegraph @

HercConfiguration/DeviceConfigLine.h

raw symbols SCIP
1 /*
2 * File: DeviceConfigLine.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * This object manages one configuration line belonging to devices
11 * (see also ConfigLine.h)
12 *
13 * This program is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 *
26 */
27
28 #ifndef DEVICECONFIGLINE_H_
29 #define DEVICECONFIGLINE_H_
30
31 #include "ConfigLine.h"
32 #include "DeviceTypes.h"
33
34 #include <map>
35
36 class DeviceConfigLine: public ConfigLine
37 {
38 public:
39 typedef std::map<std::string, DeviceTypes::Type> DeviceTypesMap;
40 DeviceConfigLine(const char *line);
41 virtual ~DeviceConfigLine();
42 static void clear();
43
44 int getDeviceNumber() const;
45 DeviceTypes::Type getDeviceType() const;
46 std::string toString() const;
47 int getMultiCount();
48
49 private:
50 static std::map<std::string,DeviceTypes::Type> * mDeviceTypes;
51 static std::map<std::string,DeviceTypes::BaseType> * mDeviceBaseTypes;
52 int mMultiCount;
53
54 void initilize();
55 void handleMultiLine();
56 };
57
58 #endif /* DEVICECONFIGLINE_H_ */