Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
filedescription.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "fileinfo.hh"
4 #include "../common/logical_block_metadata.hh"
5 #include <vector>
6 
7 namespace eclipse {
8 namespace messages {
9 
10 struct FileDescription: public FileInfo {
11  FileDescription() = default;
12  ~FileDescription() = default;
13 
15 
16  std::string get_type() const override;
17 
18  std::vector<std::string> blocks;
19  std::vector<uint32_t> hash_keys;
20  std::vector<uint64_t> block_size;
21  std::vector<std::string> block_hosts;
22  std::vector<logical_block_metadata> logical_blocks; // TODO, refactor this hell
23 
24  uint32_t num_static_blocks = 0;
25 };
26 
27 }
28 }
29 
Definition: fileinfo.hh:10
std::vector< std::string > blocks
Definition: filedescription.hh:18
Definition: filedescription.hh:10
std::vector< std::string > block_hosts
Definition: filedescription.hh:21
std::vector< logical_block_metadata > logical_blocks
Definition: filedescription.hh:22
uint32_t num_static_blocks
Definition: filedescription.hh:24
std::vector< uint32_t > hash_keys
Definition: filedescription.hh:19
FileDescription & operator=(FileDescription &)
Definition: filedescription.cc:5
std::string get_type() const override
Definition: filedescription.cc:19
std::vector< uint64_t > block_size
Definition: filedescription.hh:20