CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
Public 成员函数 | |
FileWriter () | |
~FileWriter () | |
LPCSTR | FileName () const |
void | Dataflush (UINT count, const char *mode) |
将数据同步到物理存储中。此过程为满足写次数count后,先关闭再打开 | |
void | Close () |
关闭句柄 | |
FILE * | Handler () const |
获得文件句柄指针 | |
int | OpenFileA (const char *filename_utf8, const char *mode) |
打开准备写入的文件 | |
int | OpenFileW (const WCHAR *filename, const WCHAR *mode) |
int | OpenFile (const TCHAR *filename, const TCHAR *mode) |
void | PrintfDataFrameLine (std::vector< std::string > &line, char split_ch) |
void | PrintfWChar (LPCWSTR lpszFormat, va_list argList) |
void | PrintfChar (LPCSTR lpszFormat, va_list argList) |
void | PrintfHexText (char *byte, int len, int group_count=32) |
以十六进制打印输出 | |
Protected 属性 | |
FILE * | m_fp |
BeStringA | m_file_full_path |
UINT | m_fflush_cur |
BUI::FileWriter::FileWriter | ( | ) |
BUI::FileWriter::~FileWriter | ( | ) |
void BUI::FileWriter::Close | ( | ) |
关闭句柄
void BUI::FileWriter::Dataflush | ( | UINT | count, |
const char * | mode | ||
) |
将数据同步到物理存储中。此过程为满足写次数count后,先关闭再打开
LPCSTR BUI::FileWriter::FileName | ( | ) | const |
FILE * BUI::FileWriter::Handler | ( | ) | const |
获得文件句柄指针
int BUI::FileWriter::OpenFileA | ( | const char * | filename_utf8, |
const char * | mode | ||
) |
打开准备写入的文件
filename_utf8 | 文件路径 |
mode | 文件模式,不可以为空 |
void BUI::FileWriter::PrintfChar | ( | LPCSTR | lpszFormat, |
va_list | argList | ||
) |
void BUI::FileWriter::PrintfDataFrameLine | ( | std::vector< std::string > & | line, |
char | split_ch | ||
) |
void BUI::FileWriter::PrintfHexText | ( | char * | byte, |
int | len, | ||
int | group_count = 32 |
||
) |
以十六进制打印输出
byte | 字节数据 |
len | 长度 |
group_count | :在group_count个数据之后添加换行符号 |
void BUI::FileWriter::PrintfWChar | ( | LPCWSTR | lpszFormat, |
va_list | argList | ||
) |
|
protected |
|
protected |
|
protected |