Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Classes | Public Member Functions | Static Public Member Functions | List of all members
keyple::calypso::transaction::SamIdentifier Class Reference

#include <SamIdentifier.h>

Classes

class  SamIdentifierBuilder
 

Public Member Functions

const SamRevisiongetSamRevision () const
 
const std::string & getSerialNumber () const
 
const std::string & getGroupReference () const
 
bool matches (const std::shared_ptr< SamIdentifier > samIdentifier) const
 
 SamIdentifier (const SamIdentifierBuilder *builder)
 

Static Public Member Functions

static std::unique_ptr< SamIdentifierBuilderbuilder ()
 

Detailed Description

Holds the needed data to proceed a SAM selection.

SAM Revision (see keyple::calypso::command::sam::SamRevision)

Serial Number (may be a regular expression)

Group reference (key group reference)

Constructor & Destructor Documentation

◆ SamIdentifier()

keyple::calypso::transaction::SamIdentifier::SamIdentifier ( const SamIdentifierBuilder builder)

Private constructor

C++ vs. Java: constructor is private in Java but prevents the use of make_shared.

Member Function Documentation

◆ builder()

std::unique_ptr< SamIdentifierBuilder > keyple::calypso::transaction::SamIdentifier::builder ( )
static

Gets a new builder.

Returns
a new builder instance

◆ getGroupReference()

const std::string & keyple::calypso::transaction::SamIdentifier::getGroupReference ( ) const
Returns
the group reference

◆ getSamRevision()

const SamRevision & keyple::calypso::transaction::SamIdentifier::getSamRevision ( ) const
Returns
the SAM revision

◆ getSerialNumber()

const std::string & keyple::calypso::transaction::SamIdentifier::getSerialNumber ( ) const
Returns
the SAM serial number

◆ matches()

bool keyple::calypso::transaction::SamIdentifier::matches ( const std::shared_ptr< SamIdentifier samIdentifier) const

Compare two SamIdentifiers with the following rules:

Parameters
samIdentifierthe keyple::calypso::transaction::SamIdentifier object to be compared to the current object
Returns
true if the identifier provided matches the current identifier

The documentation for this class was generated from the following files: