scmProtoTransformation.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include <vector>
7 
8 #include "scmTypes.h"
9 #include "scmProto.pb.h"
10 
12 public:
18  static void buildProtoCardOperation(const std::vector<dpySCM::CardOperation>& cardOperations, scmProto::Transaction* proto_transaction);
19 
25  static void buildDpyCardOperation(scmProto::Transaction& proto_transaction, std::vector<dpySCM::CardOperation>& cardOperations);
26 
32  static void buildProtoPassThrough(const dpySCM::PassThrough& passThrough, scmProto::PassThrough* proto_pass_through);
33 
39  static void buildDpyPassThrough(scmProto::PassThrough& proto_pass_through, dpySCM::PassThrough& passThrough);
40 
46  static void buildDpyUltraLightCounter(scmProto::UltraLightCounter& proto_ultra_light_counter, dpySCM::UltraLightCounter& ultraLightCounter);
47 
53  static void buildProtoUltraLightCounter(const dpySCM::UltraLightCounter& ultraLightCounter, scmProto::UltraLightCounter* proto_ultra_light_counter);
54 
60  static std::string base64_encode(const std::string &value);
61 
66  static void buildProtoKeys(scmProto::Keys* proto_keys);
67 
73  static void buildProtoKeys(const std::vector<dpySCM::KeyGroup>& keyGroups, scmProto::Keys* proto_keys);
74 
80  static void buildDpyKeys(scmProto::Keys& proto_keys, dpySCM::DeviceKeys& deviceKeys);
81 };
Structure for UltraLight counter requests.
Definition: scmTypes.h:644
static std::string base64_encode(const std::string &value)
Encodes a string to base64.
static void buildProtoCardOperation(const std::vector< dpySCM::CardOperation > &cardOperations, scmProto::Transaction *proto_transaction)
Transform dpySCM card operation into scmProto card operation.
Add Keys.
Definition: scmTypes.h:214
Structure containing information needed to execute a pass through.
Definition: scmTypes.h:629
static void buildProtoKeys(scmProto::Keys *proto_keys)
Fill scmProto Key Groups.
static void buildDpyCardOperation(scmProto::Transaction &proto_transaction, std::vector< dpySCM::CardOperation > &cardOperations)
Transform scmProto PassThrough into dpySCM PassThrough.
static void buildDpyPassThrough(scmProto::PassThrough &proto_pass_through, dpySCM::PassThrough &passThrough)
Transform scmProto PassThrough into dpySCM PassThrough.
static void buildDpyKeys(scmProto::Keys &proto_keys, dpySCM::DeviceKeys &deviceKeys)
Transform scmProto DeviceKeys into dpySCM Keys.
Definition: scmProtoTransformation.h:11
static void buildDpyUltraLightCounter(scmProto::UltraLightCounter &proto_ultra_light_counter, dpySCM::UltraLightCounter &ultraLightCounter)
Transform scmProto UltraLightCounter into dpySCM UltraLightCounter.
static void buildProtoPassThrough(const dpySCM::PassThrough &passThrough, scmProto::PassThrough *proto_pass_through)
Transform dpySCM PassThrough into scmProto PassThrough.
static void buildProtoUltraLightCounter(const dpySCM::UltraLightCounter &ultraLightCounter, scmProto::UltraLightCounter *proto_ultra_light_counter)
Transform dpySCM UltraLightCounter into scmProto UltraLightCounter.