ScmProtoTransformation Class Reference

Static Public Member Functions

static void buildProtoCardOperation (const std::vector< dpySCM::CardOperation > &cardOperations, scmProto::Transaction *proto_transaction)
 Transform dpySCM card operation into scmProto card operation. More...
 
static void buildDpyCardOperation (scmProto::Transaction &proto_transaction, std::vector< dpySCM::CardOperation > &cardOperations)
 Transform scmProto PassThrough into dpySCM PassThrough. More...
 
static void buildProtoPassThrough (const dpySCM::PassThrough &passThrough, scmProto::PassThrough *proto_pass_through)
 Transform dpySCM PassThrough into scmProto PassThrough. More...
 
static void buildDpyPassThrough (scmProto::PassThrough &proto_pass_through, dpySCM::PassThrough &passThrough)
 Transform scmProto PassThrough into dpySCM PassThrough. More...
 
static void buildDpyUltraLightCounter (scmProto::UltraLightCounter &proto_ultra_light_counter, dpySCM::UltraLightCounter &ultraLightCounter)
 Transform scmProto UltraLightCounter into dpySCM UltraLightCounter. More...
 
static void buildProtoUltraLightCounter (const dpySCM::UltraLightCounter &ultraLightCounter, scmProto::UltraLightCounter *proto_ultra_light_counter)
 Transform dpySCM UltraLightCounter into scmProto UltraLightCounter. More...
 
static std::string base64_encode (const std::string &value)
 Encodes a string to base64. More...
 
static void buildProtoKeys (scmProto::Keys *proto_keys)
 Fill scmProto Key Groups. More...
 
static void buildProtoKeys (const std::vector< dpySCM::KeyGroup > &keyGroups, scmProto::Keys *proto_keys)
 Transform dpySCM DeviceKeys into scmProto Keys. More...
 
static void buildDpyKeys (scmProto::Keys &proto_keys, dpySCM::DeviceKeys &deviceKeys)
 Transform scmProto DeviceKeys into dpySCM Keys. More...
 

Member Function Documentation

static std::string base64_encode ( const std::string &  value)
static
Parameters
valuebytes to encode
Returns
string with base64 codification
static void buildDpyCardOperation ( scmProto::Transaction &  proto_transaction,
std::vector< dpySCM::CardOperation > &  cardOperations 
)
static
Parameters
proto_transactionproto card operation
cardOperationsdpySCM card operation
static void buildDpyKeys ( scmProto::Keys &  proto_keys,
dpySCM::DeviceKeys deviceKeys 
)
static
Parameters
proto_keysscmProto proto keys
deviceKeysdpySCM keys
static void buildDpyPassThrough ( scmProto::PassThrough &  proto_pass_through,
dpySCM::PassThrough passThrough 
)
static
Parameters
proto_pass_throughproto PassThrough
passThroughdpySCM PassThrough
static void buildDpyUltraLightCounter ( scmProto::UltraLightCounter &  proto_ultra_light_counter,
dpySCM::UltraLightCounter ultraLightCounter 
)
static
Parameters
proto_ultra_light_counterproto UltraLightCounter
ultraLightCounterdpySCM ultraLightCounter
static void buildProtoCardOperation ( const std::vector< dpySCM::CardOperation > &  cardOperations,
scmProto::Transaction *  proto_transaction 
)
static
Parameters
cardOperationsdpySCM card operation
proto_transactionproto card operation
static void buildProtoKeys ( scmProto::Keys *  proto_keys)
static
Parameters
proto_keysscmProto proto keys
static void buildProtoKeys ( const std::vector< dpySCM::KeyGroup > &  keyGroups,
scmProto::Keys *  proto_keys 
)
static
Parameters
keyGroupsdpySCM keys
proto_keysscmProto proto keys
static void buildProtoPassThrough ( const dpySCM::PassThrough passThrough,
scmProto::PassThrough *  proto_pass_through 
)
static
Parameters
passThroughdpySCM PassThrough
proto_pass_throughproto PassThrough
static void buildProtoUltraLightCounter ( const dpySCM::UltraLightCounter ultraLightCounter,
scmProto::UltraLightCounter *  proto_ultra_light_counter 
)
static
Parameters
ultraLightCounterdpySCM ultraLightCounter
proto_ultra_light_counterproto UltraLightCounter