Newer
Older
/*
* Method.h
*
* Created on: Dec 16, 2016
* Author: wfg
*/
#ifndef METHOD_H_
#define METHOD_H_
#include <vector>
#include <string>
namespace adios
{
/**
* Serves as metadata to define an engine
*/
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
public:
const std::string m_Type = "SingleBP"; ///< Method type
const bool m_DebugMode = false; ///< true: on, throws exceptions and do additional checks, false: off, faster, but unsafe
/**
* Unique constructor, must have a type
* @param type must be an engine type, default = SingleBP
*/
Method( const std::string type = "SingleBP", const bool debugMode = false );
~Method( );
template< class ...Args>
void AddCapsule( Args... args )
{
std::vector<std::string> parameters = { args };
AddCapsuleParameters( parameters );
}
template< class ...Args>
void AddTransport( Args... args )
{
std::vector<std::string> parameters = { args };
AddTransportParameters( parameters );
}
private:
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
void AddCapsuleParameters( const std::vector<std::string>& parameters );
void AddTransportParameters( const std::vector<std::string>& parameters );