Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Variables
mastercore_values.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <string>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_arithmetic.hpp>
+ Include dependency graph for mastercore_values.h:

Go to the source code of this file.

Namespaces

 mastercore
 

Functions

template<class T >
bool mastercore::IsEcosystem (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an ecosystem. More...
 
bool mastercore::IsEcosystem (const char *pzn)
 Checks whether the value describes an ecosystem. More...
 
bool mastercore::IsEcosystem (const std::string &str)
 Checks whether the value describes an ecosystem. More...
 
template<class T >
bool mastercore::IsBlockInterval (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an interval measured in blocks. More...
 
bool mastercore::IsBlockInterval (const char *pzn)
 Checks whether the value describes an interval measured in blocks. More...
 
bool mastercore::IsBlockInterval (const std::string &str)
 Checks whether the value describes an interval measured in blocks. More...
 
template<class T >
bool mastercore::IsDexAction (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an action of the distributed exchange. More...
 
bool mastercore::IsDexAction (const char *pzn)
 Checks whether the value describes an action of the distributed exchange. More...
 
bool mastercore::IsDexAction (const std::string &str)
 Checks whether the value describes an action of the distributed exchange. More...
 
template<class T >
bool mastercore::IsMetaDexAction (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an action of the distributed token exchange. More...
 
bool mastercore::IsMetaDexAction (const char *pzn)
 Checks whether the value describes an action of the distributed token exchange. More...
 
bool mastercore::IsMetaDexAction (const std::string &str)
 Checks whether the value describes an action of the distributed token exchange. More...
 
template<class T >
bool mastercore::IsSubAction (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a subaction. More...
 
bool mastercore::IsSubAction (const char *pzn)
 Checks whether the value describes a subaction. More...
 
bool mastercore::IsSubAction (const std::string &str)
 Checks whether the value describes a subaction. More...
 
template<class T >
bool mastercore::IsPropertyType (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a property type. More...
 
bool mastercore::IsPropertyType (const char *pzn)
 Checks whether the value describes a property type. More...
 
bool mastercore::IsPropertyType (const std::string &str)
 Checks whether the value describes a property type. More...
 
template<class T >
bool mastercore::IsPropertyId (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a property identifier. More...
 
bool mastercore::IsPropertyId (const char *pzn)
 Checks whether the value describes a property identifier. More...
 
bool mastercore::IsPropertyId (const std::string &str)
 Checks whether the value describes a property identifier. More...
 
template<class T >
bool mastercore::IsDivisibleAmount (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes a divisible amount. More...
 
bool mastercore::IsDivisibleAmount (const char *pzn)
 Checks whether the value describes a divisible amount. More...
 
bool mastercore::IsDivisibleAmount (const std::string &str)
 Checks whether the value describes a divisible amount. More...
 
template<class T >
bool mastercore::IsIndivisibleAmount (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes an indivisible amount. More...
 
bool mastercore::IsIndivisibleAmount (const char *pzn)
 Checks whether the value describes an indivisible amount. More...
 
bool mastercore::IsIndivisibleAmount (const std::string &str)
 Checks whether the value describes an indivisible amount. More...
 
template<class T >
bool mastercore::IsTokenAmount (T value, typename boost::enable_if< boost::is_arithmetic< T > >::type *dummy=0)
 Checks whether the value describes either a divisible or indivisible amount. More...
 
bool mastercore::IsTokenAmount (const char *pzn)
 Checks whether the value describes either a divisible or indivisible amount. More...
 
bool mastercore::IsTokenAmount (const std::string &str)
 Checks whether the value describes either a divisible or indivisible amount. More...
 

Variables

const uint8_t mastercore::ECOSYSTEM_MAIN = 1
 Main ecosystem value. More...
 
const uint8_t mastercore::ECOSYSTEM_TEST = 2
 Test ecosystem value. More...
 
const uint8_t mastercore::BLOCK_INTERVAL_MIN = 1
 Minimum interval measured in blocks. More...
 
const uint8_t mastercore::BLOCK_INTERVAL_MAX = 255
 Maximum interval measured in blocks. More...
 
const uint8_t mastercore::DEX_ACTION_NEW = 1
 New offer action value. More...
 
const uint8_t mastercore::DEX_ACTION_UPDATE = 2
 Update offer action value. More...
 
const uint8_t mastercore::DEX_ACTION_CANCEL = 3
 Cancel offer action value. More...
 
const uint8_t mastercore::MDEX_ACTION_ADD = 1
 Add offer action value. More...
 
const uint8_t mastercore::MDEX_ACTION_CANCEL_AT_PRICE = 2
 Cancel offers at price action value. More...
 
const uint8_t mastercore::MDEX_ACTION_CANCEL_ALL_FOR_PAIR = 3
 Cancel all offers of property pair action value. More...
 
const uint8_t mastercore::MDEX_ACTION_CANCEL_CANCEL_EVERYTHING = 4
 Cancel every offer action value. More...
 
const uint16_t mastercore::PROPERTY_TYPE_INDIVISIBLE = 1
 Indivisible property type. More...
 
const uint16_t mastercore::PROPERTY_TYPE_DIVISIBLE = 2
 Divisible property type. More...
 
const uint16_t mastercore::PROPERTY_TYPE_INDIVISIBLE_REPLACING = 65
 Indivisible property type when replacing a property. More...
 
const uint16_t mastercore::PROPERTY_TYPE_DIVISIBLE_REPLACING = 66
 Divisible property type when replacing a property. More...
 
const uint16_t mastercore::PROPERTY_TYPE_INDIVISIBLE_APPENDING = 129
 Indivisible property type when appending a property. More...
 
const uint16_t mastercore::PROPERTY_TYPE_DIVISIBLE_APPENDING = 130
 Indivisible property type when appending a property. More...
 
const uint32_t mastercore::PROPERTY_ID_MIN = 1
 Minimum property identifier value. More...
 
const uint32_t mastercore::PROPERTY_ID_MAX = 4294967295
 Maximum property identifier value. More...
 
const uint64_t mastercore::AMOUNT_INDIVISIBLE_MIN = 1
 Minimum indivisible amount. More...
 
const uint64_t mastercore::AMOUNT_INDIVISIBLE_MAX = 9223372036854775807
 Maximum indivisible amount. More...
 
const long double mastercore::AMOUNT_DIVISIBLE_MIN = 0.00000001L
 Minimum divisible amount. More...
 
const long double mastercore::AMOUNT_DIVISIBLE_MAX = 92233720368.54775807L
 Maximum divisible amount. More...