Public Types | Public Member Functions
Tonido::Misc::License Class Reference

Represents a license.xml file that can enable additional features. More...

List of all members.

Public Types

typedef boost::shared_ptr
< License
SharedPtr

Public Member Functions

 License ()
 License (const LicenseData &a_data, const std::string &a_privateKey, const std::string &a_signatureIndex)
 ~License ()
 Dtor.
bool loadData (const std::string &a_fileName)
 Loads the license data from the given XML file.
bool writeFileData (const std::string &a_fileName)
 Writes license data into the XML file.
bool writeData (std::string &a_output)
 Writes license data into the console output.
bool isValidSignature (const std::string &a_publicKey)
 Returns true if the license has valid signature.
bool isValid (const std::string &a_publicKey)
 Returns true if the license is valid.
const LicenseData & getLicenseData ()
 Returns the license data associated with this license.
const SignatureData & getSignatureData ()
 Returns the signature data associated with this license.

Detailed Description

Represents a license.xml file that can enable additional features.


Constructor & Destructor Documentation

Tonido::Misc::License::License ( )

Ctor

Details if needed

Tonido::Misc::License::~License ( )

Dtor.

Details if needed


Member Function Documentation

const Tonido::Misc::License::LicenseData & Tonido::Misc::License::getLicenseData ( )

Returns the license data associated with this license.

Returns:
license data
const Tonido::Misc::License::SignatureData & Tonido::Misc::License::getSignatureData ( )

Returns the signature data associated with this license.

Returns:
license data
bool Tonido::Misc::License::isValid ( const std::string &  a_publicKey)

Returns true if the license is valid.

Returns:
true if valid, false otherwise
bool Tonido::Misc::License::isValidSignature ( const std::string &  a_publicKey)

Returns true if the license has valid signature.

Returns:
true if valid, false otherwise
bool Tonido::Misc::License::loadData ( const std::string &  a_fileName)

Loads the license data from the given XML file.

Parameters:
[in]a_fileNameName of the file to load data from
Returns:
true on sucess, false otherwise
bool Tonido::Misc::License::writeData ( std::string &  a_output)

Writes license data into the console output.

Returns:
true on sucess, false otherwise
bool Tonido::Misc::License::writeFileData ( const std::string &  a_fileName)

Writes license data into the XML file.

Parameters:
[in]a_fileNameName of the file to load data from
Returns:
true on sucess, false otherwise

Generated on Wed Oct 12 2011 21:46:53. © CodeLathe LLC 2007-2011. All Rights Reserved.