Open Lighting Architecture  0.9.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RDMControllerInterface.h
Go to the documentation of this file.
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2.1 of the License, or (at your option) any later version.
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * Lesser General Public License for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public
13  * License along with this library; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15  *
16  * RDMControllerInterface.h
17  * A RDM Controller that sends a single message at a time.
18  * Copyright (C) 2010 Simon Newton
19  */
20 
29 #ifndef INCLUDE_OLA_RDM_RDMCONTROLLERINTERFACE_H_
30 #define INCLUDE_OLA_RDM_RDMCONTROLLERINTERFACE_H_
31 
32 #include <ola/Callback.h>
33 #include <ola/rdm/RDMCommand.h>
34 #include <ola/rdm/RDMResponseCodes.h>
35 #include <ola/rdm/UIDSet.h>
36 #include <string>
37 #include <vector>
38 
39 namespace ola {
40 namespace rdm {
41 
42 
53 typedef ola::BaseCallback3<void,
54  rdm_response_code,
55  const RDMResponse*,
56  const std::vector<std::string>&> RDMCallback;
57 
62 
67  public:
69  virtual ~RDMControllerInterface() {}
70 
82  virtual void SendRDMRequest(const RDMRequest *request,
83  RDMCallback *on_complete) = 0;
84 };
85 
86 
93  public:
96 
100  virtual void RunFullDiscovery(RDMDiscoveryCallback *callback) = 0;
101 
102  virtual void RunIncrementalDiscovery(RDMDiscoveryCallback *callback) = 0;
103 };
104 } // namespace rdm
105 } // namespace ola
106 #endif // INCLUDE_OLA_RDM_RDMCONTROLLERINTERFACE_H_