Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fileupdate.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "message.hh"
4 #include "../common/blockmetadata.hh"
5 #include <vector>
6 
7 namespace eclipse {
8 namespace messages {
9 
10 struct FileUpdate: public Message {
11  FileUpdate() = default;
12  ~FileUpdate() = default;
13 
14  std::string get_type() const override;
15 
16  std::string name;
17  uint64_t size;
18  unsigned int num_block;
19  bool is_append = false;
20 
21  std::vector<BlockMetadata> blocks_metadata;
22 };
23 
24 }
25 }
26 
uint64_t size
Definition: fileupdate.hh:17
Definition: fileupdate.hh:10
Definition: message.hh:15
unsigned int num_block
Definition: fileupdate.hh:18
bool is_append
Definition: fileupdate.hh:19
std::vector< BlockMetadata > blocks_metadata
Definition: fileupdate.hh:21
std::string name
Definition: fileupdate.hh:16
std::string get_type() const override
Definition: fileupdate.cc:5