ExcelRTC  0.5.0
 全て クラス ファイル 関数 変数
Public メソッド | Public 変数 | Static Public 変数
クラス ExcelObject

Excelを操作するクラス [詳細]

#include <ExcelObject.h>

すべてのメンバ一覧

Public メソッド

 ExcelObject ()
 コンストラクタ
Excel::Worksheet^ getWorksheet (std::string sn)
 名前からワークシートを取得する関数
void saveRTC (std::vector< std::string > sf)
 保存用ワークシートに書き込む関数
std::vector< std::string > loadRTC ()
 データポートの情報を保存用ワークシートから読み込む関数
void resetCellColor (int c, std::string l, std::string sn, std::string leng)
 セルの色を無色にする関数
void setCellStringSingle (int c, std::string l, std::string sn, std::string val)
 単一のセルの文字列を変更する関数
template<typename T >
void setCellValueSingle (int c, std::string l, std::string sn, T val)
 単一のセルの値を変更する関数
std::string getCellValueSingle (int c, std::string l, std::string sn)
 単一のセルの値を取得する関数
template<typename T >
void setCellValue (int c, std::string l, std::string sn, bool state, std::vector< std::vector< T >> v)
 1つ以上のセルの値を変更する関数
template<typename T >
std::vector< T > getCellValue (int c, std::string l, std::string sn, std::string leng)
 1つ以上のセルの値を取得する関数
void Open (System::String^ fn)
 Excelファイルを開く関数
void Close ()
 COMオブジェクトを解放する関数
void setColor (int r, int g, int b)
 データ取得中のセルの背景の色を設定

Public 変数

int red
int green
int blue
System::String^ filename
Excel::Application^ xlApplication
Excel::Workbooks^ xlWorkbooks
Excel::Workbook^ xlWorkbook
Excel::Sheets^ xlWorksheets
System::Collections::Generic::List
< Excel::Worksheet^ >^ 
xlWorksheet

Static Public 変数

static ExcelObjectObj

説明

Excelを操作するクラス


関数

template<typename T >
std::vector<T> ExcelObject::getCellValue ( int  c,
std::string  l,
std::string  sn,
std::string  leng 
)
inline

1つ以上のセルの値を取得する関数

引数:
c列番号
l行番号
snシート名
state列を移動する場合はTrue
戻り値:
取得した値
std::string ExcelObject::getCellValueSingle ( int  c,
std::string  l,
std::string  sn 
)
inline

単一のセルの値を取得する関数

引数:
c列番号
l行番号
snシート名
戻り値:
セルの値
Excel::Worksheet ExcelObject::getWorksheet ( std::string  sn)

名前からワークシートを取得する関数

引数:
snシート名
戻り値:
シートオブジェクト
std::vector< std::string > ExcelObject::loadRTC ( )

データポートの情報を保存用ワークシートから読み込む関数

戻り値:
読み込んだ文字列
void ExcelObject::Open ( System::String^  fn)

Excelファイルを開く関数

引数:
fnファイル名
void ExcelObject::resetCellColor ( int  c,
std::string  l,
std::string  sn,
std::string  leng 
)

セルの色を無色にする関数

引数:
c列番号
l行番号
snシート名
leng行の範囲
void ExcelObject::saveRTC ( std::vector< std::string >  sf)

保存用ワークシートに書き込む関数

引数:
sf書き込む文字列
void ExcelObject::setCellStringSingle ( int  c,
std::string  l,
std::string  sn,
std::string  val 
)

単一のセルの文字列を変更する関数

引数:
c列番号
l行番号
snシート名
val入力する文字列
template<typename T >
void ExcelObject::setCellValue ( int  c,
std::string  l,
std::string  sn,
bool  state,
std::vector< std::vector< T >>  v 
)
inline

1つ以上のセルの値を変更する関数

引数:
c列番号
l行番号
snシート名
state列を移動する場合はTrue
v入力する値
template<typename T >
void ExcelObject::setCellValueSingle ( int  c,
std::string  l,
std::string  sn,
val 
)
inline

単一のセルの値を変更する関数

引数:
c列番号
l行番号
snシート名
val入力する値
void ExcelObject::setColor ( int  r,
int  g,
int  b 
)

データ取得中のセルの背景の色を設定

引数:
r背景の色(R)
g背景の色(G)
b背景の色(B)

変数

int ExcelObject::blue

 

System::String ^ ExcelObject::filename

 

ExcelObject ^ ExcelObject::Obj
static

 

Excel::Application ^ ExcelObject::xlApplication

 

Excel::Workbook ^ ExcelObject::xlWorkbook

 

Excel::Workbooks ^ ExcelObject::xlWorkbooks

 

System::Collections::Generic::List<Excel::Worksheet^> ^ ExcelObject::xlWorksheet

 

Excel::Sheets ^ ExcelObject::xlWorksheets

 


このクラスの説明は次のファイルから生成されました: