ledger-core
DerivationPath.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from wallet.djinni
3 
4 #ifndef DJINNI_GENERATED_DERIVATIONPATH_HPP
5 #define DJINNI_GENERATED_DERIVATIONPATH_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #include <string>
10 #include <vector>
11 #ifndef LIBCORE_EXPORT
12  #if defined(_MSC_VER)
13  #include <libcore_export.h>
14  #else
15  #define LIBCORE_EXPORT
16  #endif
17 #endif
18 
19 namespace ledger { namespace core { namespace api {
20 
21 class LIBCORE_EXPORT DerivationPath {
22 public:
23  virtual ~DerivationPath() {}
24 
26  virtual int32_t getDepth() = 0;
27 
29  virtual int32_t getChildNum(int32_t index) = 0;
30 
35  virtual int32_t getUnhardenedChildNum(int32_t index) = 0;
36 
38  virtual bool isHardened(int32_t index) = 0;
39 
41  virtual std::string toString() = 0;
42 
47  virtual std::shared_ptr<DerivationPath> getParent() = 0;
48 
50  virtual std::vector<int32_t> toArray() = 0;
51 
52  static std::shared_ptr<DerivationPath> parse(const std::string & path);
53 };
54 
55 } } } // namespace ledger::core::api
56 #endif //DJINNI_GENERATED_DERIVATIONPATH_HPP
Definition: Account.cpp:8
Definition: DerivationPath.hpp:21