3es  0.7
3estransferprogress.h
1 //
2 // author: Kazys Stepanas
3 //
4 #ifndef _3ESTRANSFERPROGRESS_H_
5 #define _3ESTRANSFERPROGRESS_H_
6 
7 #include "3es-core.h"
8 
9 #include <cstdint>
10 
11 namespace tes
12 {
18  struct _3es_coreAPI TransferProgress
19  {
21  int64_t progress;
23  int phase;
25  bool complete;
27  bool failed;
28 
30  inline void reset()
31  {
32  progress = 0;
33  phase = 0;
34  complete = failed = false;
35  }
36  };
37 }
38 
39 #endif // _3ESTRANSFERPROGRESS_H_
Definition: 3esbounds.h:13
A structure tracking progress of a data transfer.
Definition: 3estransferprogress.h:18
int phase
Phase value.
Definition: 3estransferprogress.h:23
bool complete
Progress complete?
Definition: 3estransferprogress.h:25
void reset()
Reset to zero, incomplete, not failed.
Definition: 3estransferprogress.h:30
bool failed
Transfer failed?
Definition: 3estransferprogress.h:27
int64_t progress
Progress value for the current phase.
Definition: 3estransferprogress.h:21