25 #include <co/commands.h> 26 #include <co/dataIStream.h> 50 ConstBufferPtr buffer);
51 CO_API ICommand(
const ICommand& rhs);
53 CO_API
virtual ~ICommand();
55 CO_API ICommand& operator=(
const ICommand& rhs);
62 CO_API uint32_t getType()
const;
65 CO_API uint32_t getCommand()
const;
68 CO_API uint64_t getSize()
const;
80 CO_API
NodePtr getRemoteNode()
const override;
86 CO_API
bool isValid()
const;
89 CO_API ConstBufferPtr getBuffer()
const;
98 CO_API
void setCommand(
const uint32_t cmd);
104 CO_API
bool operator()();
108 detail::ICommand*
const _impl;
110 friend CO_API std::ostream& operator<<(std::ostream&,
const ICommand&);
114 CO_API
size_t nRemainingBuffers()
const override;
115 CO_API uint128_t getVersion()
const override;
116 CO_API
bool getNextBuffer(CompressorInfo&, uint32_t&,
const void*&,
123 CO_API std::ostream& operator<<(std::ostream& os,
const ICommand&);
125 #endif // CO_ICOMMAND_H Defines export visibility macros for library Collage.
lunchbox::RefPtr< LocalNode > LocalNodePtr
A reference pointer for LocalNode pointers.
Object-oriented network library.
A class managing received commands.
A wrapper to register a function callback on an object instance.
A std::istream-like input data stream for binary data.
CommandType
The type of a Command.
lunchbox::RefPtr< Node > NodePtr
A reference pointer for Node pointers.