OpenCPN Partial API docs
Loading...
Searching...
No Matches
Pincode Class Reference

A random generated int value with accessors for string and hashcode. More...

#include <pincode.h>

Public Member Functions

 Pincode (uint64_t v)
 Create a new pincode based on a known value.
 
uint64_t Get () const
 Return numeric value:
 
std::string ToString () const
 Return value as string.
 
std::string Hash () const
 Return a hashvalue string.
 
std::string CompatHash ()
 Return a hashvalue as computed on 5.8 hosts.
 

Static Public Member Functions

static Pincode Create ()
 Create a new pincode based on a random value.
 
static std::string IntToHash (uint64_t value)
 convert numeric value to hash string.
 

Detailed Description

A random generated int value with accessors for string and hashcode.

Definition at line 27 of file pincode.h.

Constructor & Destructor Documentation

◆ Pincode()

Pincode::Pincode ( uint64_t  v)
inline

Create a new pincode based on a known value.

Definition at line 33 of file pincode.h.

Member Function Documentation

◆ CompatHash()

std::string Pincode::CompatHash ( )

Return a hashvalue as computed on 5.8 hosts.

Definition at line 31 of file pincode.cpp.

◆ Create()

Pincode Pincode::Create ( )
static

Create a new pincode based on a random value.

Definition at line 42 of file pincode.cpp.

◆ Get()

uint64_t Pincode::Get ( ) const

Return numeric value:

Definition at line 47 of file pincode.cpp.

◆ Hash()

std::string Pincode::Hash ( ) const

Return a hashvalue string.

Definition at line 55 of file pincode.cpp.

◆ IntToHash()

std::string Pincode::IntToHash ( uint64_t  value)
static

convert numeric value to hash string.

Definition at line 61 of file pincode.cpp.

◆ ToString()

std::string Pincode::ToString ( ) const

Return value as string.

Definition at line 49 of file pincode.cpp.


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