Cryptolens Client API for C++
MachineCodeComputer_caching.hpp
1 #pragma once
2 
3 #include <string>
4 
5 #include "basic_Error.hpp"
6 
7 namespace cryptolens_io {
8 
9 namespace v20190401 {
10 
11 namespace errors {
12 
13 namespace MachineCodeComputer_caching {}
14 
15 } // namespace errors
16 
19 template<typename MachineCodeComputer>
21 {
22 public:
23 #ifndef CRYPTOLENS_20190701_ALLOW_IMPLICIT_CONSTRUCTORS
24  explicit
25 #endif
27  : machine_code_()
28  {
29  MachineCodeComputer inner(e);
30  machine_code_ = inner.get_machine_code(e);
31  }
32 
33  std::string
34  get_machine_code(basic_Error & e) {
35  return machine_code_;
36  }
37 
38 private:
39  std::string machine_code_;
40 };
41 
42 } // namespace v20190401
43 
44 namespace latest {
45 
46 // TODO: errors namespace
47 
48 template<typename MachineCodeComputer>
50 
51 } // namespace latest
52 
53 } // namespace cryptolens_io
Definition: ActivateError.hpp:5
Definition: basic_Error.hpp:90
Definition: MachineCodeComputer_caching.hpp:20