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