exceldriver.hpp

来自「financal instrument pricing using c」· HPP 代码 · 共 46 行

HPP
46
字号
// ExcelDriver.hpp
//
// Class that enables us to send output to Excel
//
// (C) Datasim Component Technology 2000

#ifndef ExcelDriver_hpp
#define ExcelDriver_hpp

#include "imports.hpp"

#include "NumericMatrix.hpp"

class ExcelDriver
{
private:
	Excel::_ApplicationPtr m_pXL;

public:
	// Constructors & destructor
	ExcelDriver();
	ExcelDriver(const ExcelDriver& source);
	virtual ~ExcelDriver();

	// Selectors
	Excel::_ApplicationPtr Application() const;

	// Modifiers

	// Operations
	void OpenExcel();
	void CloseExcel();
	void AddWorkbook();
	void FillRange(double ll, double ul, double steps, int row);
	void CreateChart(int startRow, int rows, int columns, const std::string& chartTitle, const std::string& categoryTitle, const std::string& valueTitle);

	void SetActiveSheet(const std::string& name);
	void SetActiveChart(const std::string& name);

	// Operators
	ExcelDriver& operator = (const ExcelDriver& source);
};


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?