Newer
Older
/*
* Method.h
*
* Created on: Dec 16, 2016
* Author: wfg
*/
#ifndef METHOD_H_
#define METHOD_H_
/// \cond EXCLUDE_FROM_DOXYGEN
namespace adios
{
/**
* Serves as metadata to define an engine
*/
const bool m_DebugMode = false; ///< true: on, throws exceptions and do additional checks, false: off, faster, but unsafe
std::vector< std::map<std::string, std::string> > m_CapsuleParameters; ///< each is a separate Transport containing their own parameters
std::vector< std::map<std::string, std::string> > m_TransportParameters; ///< each is a separate Transport containing their own parameters
/**
* Unique constructor, must have a type
* @param type must be an engine type, default = SingleBP
*/
Method( const std::string type, const bool debugMode = false );
void AddCapsule( const std::string type, Args... args )
std::vector<std::string> parameters = { args... };
AddCapsuleParameters( type, parameters );
void AddTransport( const std::string type, Args... args )
std::vector<std::string> parameters = { args... };
AddTransportParameters( type, parameters );
void AddCapsuleParameters( const std::string type, const std::vector<std::string>& parameters );
void AddTransportParameters( const std::string type, const std::vector<std::string>& parameters );