mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-03 20:37:50 +08:00
80 lines
1.4 KiB
C++
80 lines
1.4 KiB
C++
/*
|
|
* DataType.h
|
|
*
|
|
* Created on: 2009-11-8
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#ifndef DATATYPE_H_
|
|
#define DATATYPE_H_
|
|
|
|
#ifndef HKU_API
|
|
#define HKU_API
|
|
#endif
|
|
|
|
#ifndef HKU_EXT_API
|
|
#define HKU_EXT_API
|
|
#endif
|
|
|
|
#include <boost/config.hpp>
|
|
#include <boost/shared_ptr.hpp>
|
|
#include <boost/make_shared.hpp>
|
|
#include <boost/enable_shared_from_this.hpp>
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
#include <stdio.h>
|
|
#include <iostream>
|
|
#include <list>
|
|
//#include <vector>
|
|
#include <map>
|
|
#include <unordered_map>
|
|
|
|
#include "Log.h"
|
|
#include "utilities/Null.h"
|
|
#include "datetime/Datetime.h"
|
|
|
|
#if defined(BOOST_MSVC)
|
|
#pragma warning(disable: 4251)
|
|
#pragma warning(disable: 4290)
|
|
#pragma warning(disable: 4996)
|
|
#endif
|
|
|
|
namespace hku {
|
|
|
|
/**
|
|
* @ingroup DataType
|
|
* @{
|
|
*/
|
|
|
|
typedef long long hku_int64;
|
|
typedef unsigned long long hku_uint64;
|
|
//typedef int hku_int; ///<32位整型
|
|
//typedef unsigned hku_uint; ///<无符号32位整型
|
|
typedef int hku_int32;
|
|
typedef unsigned hku_uint32;
|
|
|
|
typedef double price_t;
|
|
|
|
//typedef boost::container::string string;
|
|
typedef std::string string;
|
|
|
|
using boost::shared_ptr;
|
|
using boost::make_shared;
|
|
using boost::enable_shared_from_this;
|
|
using boost::scoped_ptr;
|
|
|
|
//using boost::container::vector;
|
|
using std::vector;
|
|
using std::list;
|
|
using std::map;
|
|
using std::unordered_map;
|
|
|
|
typedef vector<price_t> PriceList;
|
|
typedef vector<string> StringList;
|
|
|
|
/** @} */
|
|
|
|
} /*namespace*/
|
|
|
|
#endif /* DATATYPE_H_ */
|