DDS  ver. 3.4
BinaryAttachmentReceivedCmd.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 #ifndef __DDS__BinaryAttachmentReceivedCmd__
6 #define __DDS__BinaryAttachmentReceivedCmd__
7 
8 // DDS
9 #include "BasicCmd.h"
10 
11 namespace dds
12 {
13  namespace protocol_api
14  {
15  struct SBinaryAttachmentReceivedCmd : public SBasicCmd<SBinaryAttachmentReceivedCmd>
16  {
18  size_t size() const;
19  void _convertFromData(const MiscCommon::BYTEVector_t& _data);
20  void _convertToData(MiscCommon::BYTEVector_t* _data) const;
21  bool operator==(const SBinaryAttachmentReceivedCmd& _val) const;
22 
23  std::string m_receivedFilePath;
24  std::string m_requestedFileName;
25  uint16_t m_srcCommand;
26  uint32_t m_receivedFileSize;
27  uint32_t m_downloadTime;
28  };
29  std::ostream& operator<<(std::ostream& _stream, const SBinaryAttachmentReceivedCmd& _val);
31  } // namespace protocol_api
32 } // namespace dds
33 
34 #endif /* defined(__DDS__BinaryAttachmentReceivedCmd__) */
SBinaryAttachmentReceivedCmd()
Definition: BinaryAttachmentReceivedCmd.cpp:11
std::string m_receivedFilePath
Path to the received file.
Definition: BinaryAttachmentReceivedCmd.h:23
Definition: BasicCmd.h:481
uint16_t m_srcCommand
Source command which initiated file transport.
Definition: BinaryAttachmentReceivedCmd.h:25
Definition: BinaryAttachmentReceivedCmd.h:15
uint32_t m_receivedFileSize
Number of recieved bytes.
Definition: BinaryAttachmentReceivedCmd.h:26
size_t size() const
Definition: BinaryAttachmentReceivedCmd.cpp:19
void _convertToData(MiscCommon::BYTEVector_t *_data) const
Definition: BinaryAttachmentReceivedCmd.cpp:42
std::string m_requestedFileName
Requested name of the file.
Definition: BinaryAttachmentReceivedCmd.h:24
Definition: AgentConnectionManager.h:13
std::ostream & operator<<(std::ostream &_stream, const SAgentsInfoCmd &_val)
Definition: AgentsInfoCmd.cpp:38
bool operator==(const SBinaryAttachmentReceivedCmd &_val) const
Definition: BinaryAttachmentReceivedCmd.cpp:25
bool operator!=(const SAgentsInfoCmd &_lhs, const SAgentsInfoCmd &_rhs)
Definition: AgentsInfoCmd.cpp:43
uint32_t m_downloadTime
Time spent to download file [microseconds].
Definition: BinaryAttachmentReceivedCmd.h:27
void _convertFromData(const MiscCommon::BYTEVector_t &_data)
Definition: BinaryAttachmentReceivedCmd.cpp:32
std::vector< unsigned char > BYTEVector_t
An STL vector of bytes.
Definition: def.h:127