Equalizer  1.11.0
Parallel Rendering Framework
eventICommand.h
1 
2 /* Copyright (c) 2012-2015, Daniel Nachbaur <danielnachbaur@gmail.com>
3  * Stefan.Eilemann@epfl.ch
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQ_EVENTICOMMAND_H
20 #define EQ_EVENTICOMMAND_H
21 
22 #include <eq/api.h>
23 #include <eq/types.h>
24 #include <co/objectICommand.h> // base class
25 
26 namespace eq
27 {
28 namespace detail { class EventICommand; }
29 
38 class EventICommand : public co::ObjectICommand
39 {
40 public:
42  // cppcheck-suppress noExplicitConstructor
43  EQ_API EventICommand( const co::ICommand& command );
44 
46  EQ_API EventICommand( const EventICommand& rhs );
47 
49  EQ_API ~EventICommand();
50 
62  EQ_API uint32_t getEventType() const;
63 
64 private:
65  EventICommand();
66  EventICommand& operator = ( const EventICommand& );
67  detail::EventICommand* const _impl;
68 
69  void _init();
70 };
71 
73 EQ_API std::ostream& operator << ( std::ostream& os,
74  const EventICommand& command );
75 }
76 
77 #endif // EQ_EVENTICOMMAND_H
EQ_API ~EventICommand()
Destruct an event command.
EQ_API std::ostream & operator<<(std::ostream &os, const ConfigEvent *event)
Print the config event to the given output stream.
A command specialization for config events.
Definition: eventICommand.h:38
The Equalizer client library.
Definition: eq/agl/types.h:23
EQ_API uint32_t getEventType() const
Returns the event type.