BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Namespaces | Functions
plugin.hpp File Reference
#include <graphene/app/application.hpp>
#include <boost/program_options.hpp>
#include <fc/io/json.hpp>

Go to the source code of this file.

Classes

class  graphene::app::abstract_plugin
 
class  graphene::app::plugin
 

Namespaces

 graphene
 
 graphene::app
 
 graphene::app::impl
 

Functions

template<typename T >
graphene::app::impl::dejsonify (const string &s)
 
template<typename T >
graphene::app::dejsonify (const string &s, uint32_t max_depth)
 
#define DEFAULT_VALUE_VECTOR(value)   default_value({fc::json::to_string(value)}, fc::json::to_string(value))
 
#define LOAD_VALUE_SET(options, name, container, type)
 
template<typename T >
graphene::app::dejsonify (const string &s, uint32_t max_depth)
 

Macro Definition Documentation

◆ DEFAULT_VALUE_VECTOR

#define DEFAULT_VALUE_VECTOR (   value)    default_value({fc::json::to_string(value)}, fc::json::to_string(value))

Definition at line 136 of file plugin.hpp.

◆ LOAD_VALUE_SET

#define LOAD_VALUE_SET (   options,
  name,
  container,
  type 
)
Value:
do { \
if( options.count(name) > 0 ) { \
const std::vector<std::string>& ops = options[name].as<std::vector<std::string>>(); \
std::transform(ops.begin(), ops.end(), std::inserter(container, container.end()), \
&graphene::app::impl::dejsonify<type>); \
} \
} while (false)

Definition at line 137 of file plugin.hpp.

fc::typelist::transform
typename impl::transform< List, Transformer >::type transform
Transform elements of a typelist.
Definition: typelist.hpp:170