Hikyuu
| 命名空间 | 宏定义 | 函数
Parameter.h 文件参考
#include <iostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <boost/any.hpp>
#include "../config.h"
#include <boost/lexical_cast.hpp>
#include <boost/serialization/string.hpp>
#include <boost/serialization/split_member.hpp>
#include <boost/serialization/nvp.hpp>
Parameter.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  hku::Parameter
 供需要命名参数设定的类使用 更多...
 

命名空间

 hku
 Hikyuu核心命名空间,包含股票数据的管理、指标实现、交易系统框架等
 

宏定义

#define HKU_API
 
#define PARAMETER_SUPPORT
 

函数

HKU_API bool hku::operator== (const Parameter &p1, const Parameter &p2)
 
HKU_API bool hku::operator!= (const Parameter &p1, const Parameter &p2)
 
HKU_API bool hku::operator< (const Parameter &p1, const Parameter &p2)
 

宏定义说明

#define HKU_API
#define PARAMETER_SUPPORT
值:
protected: \
Parameter m_params; \
public: \
const Parameter& getParameter() const { \
return m_params; \
} \
\
void setParameter(const Parameter& param) { \
m_params = param; \
} \
\
bool haveParam(const string& name) const { \
return m_params.have(name); \
} \
\
template <typename ValueType> \
void setParam(const string& name, const ValueType& value) { \
m_params.set<ValueType>(name, value); \
} \
\
template <typename ValueType> \
ValueType getParam(const string& name) const { \
return m_params.get<ValueType>(name); \
}