plebble
fileattr_t.h
Go to the documentation of this file.
1 /*
2 -------------------------------------------------------------------------------
3  PLEBBLE
4 -------------------------------------------------------------------------------
5  Copyright (C) 2019-2020 KATLAS Technology. (http://katlastechnology.com)
6  Copyright (C) 2017-2020 Marcos Mayorga. (mm@mm-studios.com)
7 
8  This file is part of our Plebble(R) Platform.
9 
10  The code below cannot be copied, used for any purpose other than the one
11  agreed and/or distributed without the express permission of
12  KATLAS Technology.
13 -------------------------------------------------------------------------------
14 
15 
16 */
17 #ifndef USGOV_710aa24e0e3756888589022bdc6abf6746e70475912e76188583bf7440e73b1c
18 #define USGOV_710aa24e0e3756888589022bdc6abf6746e70475912e76188583bf7440e73b1c
19 
20 #include <us/gov/crypto/ec.h>
22 #include <iostream>
23 
24 namespace us{ namespace gov {
25 namespace dfs {
26 using namespace std;
27 
28  struct fileattr_t {
29  fileattr_t(const string& path, uint32_t sz);
30  fileattr_t(const fileattr_t&other):path(other.path),sz(other.sz){};
31  uint32_t sz;
32  string path;
35  void dump(ostream& os) const;
36  void to_stream(ostream& os) const;
37  bool from_stream(istream& is);
38  bool from_stream_prev(istream& is);
39  };
40 
41 }}}
42 
43 #endif
44 
45 
46 
us::gov::dfs::fileattr_t
Definition: fileattr_t.h:28
us::gov::dfs::fileattr_t::hash_data_to_sign
void hash_data_to_sign(crypto::ec::sigmsg_hasher_t &) const
fileattr_t.h
us::gov::dfs::fileattr_t::path
string path
Definition: fileattr_t.h:32
cfg0.h
us
Definition: daemon.h:22
unlikely
#define unlikely(x)
Definition: likely.h:30
us::gov::dfs::fileattr_t::fileattr_t
fileattr_t(const fileattr_t &other)
Definition: fileattr_t.h:30
us::gov::io::cfg0::rewrite_path
static string rewrite_path(const string &)
us::gov::crypto::sha256
Definition: sha256.h:33
us::gov::dfs::fileattr_t::fileattr_t
fileattr_t(const string &path, uint32_t sz)
us::gov::dfs::fileattr_t::from_stream_prev
bool from_stream_prev(istream &is)
us::gov::dfs::fileattr_t::to_stream
void to_stream(ostream &os) const
us::gov::crypto::ripemd160
Definition: ripemd160.h:34
c
us::gov::dfs::fileattr_t c
Definition: fileattr_t.cpp:20
ripemd160.h
us::gov::dfs::fileattr_t::hash_data
void hash_data(crypto::ripemd160 &) const
us::gov::dfs
Definition: daemon.h:29
std
Definition: app.h:380
us::gov::dfs::fileattr_t::from_stream
bool from_stream(istream &is)
us::gov::dfs::fileattr_t::sz
uint32_t sz
Definition: fileattr_t.h:30
ec.h
us::gov::dfs::fileattr_t::dump
void dump(ostream &os) const