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...
 
static void buildProtoArtifact (const dpySCM::ArtifactInfo &artifact, scmProto::Artifact *proto_artifact)
 Transform dpySCM ArtifactInfo into scmProto Artifact. More...
 
static void buildDpyArtifacts (scmProto::ArtifactList &proto_artifact_list, dpySCM::DeviceArtifacts &deviceArtifacts)
 Transform scmProto ArtifactList into dpySCM DeviceArtifacts. More...
 
static void buildDpyPluginData (scmProto::PluginData &proto_plugin_data, dpySCM::DevicePluginData &devicePluginData)
 Transform scmProto PluginData into dpySCM DevicePluginData. 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 buildDpyArtifacts ( scmProto::ArtifactList &  proto_artifact_list,
dpySCM::DeviceArtifacts deviceArtifacts 
)
static
Parameters
artifactdpySCM Artifacts information
proto_artifactscmProto proto artifacts
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 buildDpyPluginData ( scmProto::PluginData &  proto_plugin_data,
dpySCM::DevicePluginData devicePluginData 
)
static
Parameters
artifactdpySCM DevicePluginData plugin data
proto_artifactscmProto proto plugin data
static void buildDpyUltraLightCounter ( scmProto::UltraLightCounter &  proto_ultra_light_counter,
dpySCM::UltraLightCounter ultraLightCounter 
)
static
Parameters
proto_ultra_light_counterproto UltraLightCounter
ultraLightCounterdpySCM ultraLightCounter
static void buildProtoArtifact ( const dpySCM::ArtifactInfo artifact,
scmProto::Artifact *  proto_artifact 
)
static
Parameters
artifactdpySCM Artifact info
proto_artifactscmProto Artifact
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