Collage  1.7.0
High-performance C++ library for developing object-oriented distributed applications.
customICommand.h
1 
2 /* Copyright (c) 2012, Daniel Nachbaur <danielnachbaur@gmail.com>
3  *
4  * This file is part of Collage <https://github.com/Eyescale/Collage>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef CO_CUSTOMICOMMAND_H
21 #define CO_CUSTOMICOMMAND_H
22 
23 #include <co/iCommand.h> // base class
24 
25 namespace co
26 {
27 namespace detail
28 {
29 class CustomICommand;
30 }
31 
36 class CustomICommand : public ICommand
37 {
38 public:
40  CO_API explicit CustomICommand(const ICommand& command);
41 
43  CO_API CustomICommand(const CustomICommand& rhs);
44 
46  CO_API virtual ~CustomICommand();
47 
49  CO_API const uint128_t& getCommandID() const;
50 
51 private:
52  CustomICommand();
53  CustomICommand& operator=(const CustomICommand&);
54  detail::CustomICommand* const _impl;
55 
56  void _init();
57 };
58 
59 CO_API std::ostream& operator<<(std::ostream& os, const CustomICommand&);
60 }
61 
62 #endif // CO_CUSTOMICOMMAND_H
An input command specialization for custom commands.
Object-oriented network library.
Definition: barrier.h:27
A class managing received commands.
Definition: iCommand.h:45