Subversion Repositories HomeAutomation

Rev

Rev 1598 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
1598 runge 1
/*
2
 *
3
 *  Copyright (C) 2010  Mattias Runge
4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  (at your option) any later version.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License along
16
 *  with this program; if not, write to the Free Software Foundation, Inc.,
17
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
 *
19
 */
20
 
1642 runge 21
#ifndef CONTROL_MODULE_H
22
#define CONTROL_MODULE_H
1598 runge 23
 
24
#include <boost/shared_ptr.hpp>
25
 
26
#include "Node.h"
27
 
28
namespace atom {
1642 runge 29
namespace control {    
1598 runge 30
 
31
class Module
32
{
33
public:
34
    typedef boost::shared_ptr<Module> Pointer;
35
    typedef std::string FullId;
36
    typedef unsigned int Id;
37
 
38
    Module(Id id, std::string name, std::string class_name);
39
    virtual ~Module();
40
 
41
    static std::string MakeFullId(Id id, std::string name);
42
 
43
    FullId GetFullId();
44
 
45
    Node::Id GetNodeId();
46
    void SetNodeId(Node::Id node_id);
47
 
48
    Id GetId();
49
    std::string GetName();
50
    std::string GetClassName();
51
 
52
private:
53
    std::string full_id_;
54
    Node::Id node_id_;
55
    Id id_;
56
    std::string name_;
57
    std::string class_name_;
58
};
59
 
1642 runge 60
}; // namespace control
1598 runge 61
}; // namespace atom
62
 
1642 runge 63
#endif // CONTROL_MODULE_H