CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::FileReader类 参考

Public 类型

enum  CommentFlags { cpp_comment_style = 1 << 0 , xml_comment_style = 1 << 1 , bash_comment_style = 1 << 2 , all_comment_style = cpp_comment_style | xml_comment_style | bash_comment_style }
 

Public 成员函数

 FileReader ()
 
 ~FileReader ()
 
int LoadFileA (const char *filename_utf8)
 
int LoadFileW (const WCHAR *filename)
 
int LoadFile (const TCHAR *filename)
 
void FillData (const char *data, uint32_t len)
 
DataBuffer GetDataBuffer (BOOL skipBom=FALSE) const
 获得文件内容数据和长度信息
 
void ClearComments (UINT commentflags=CommentFlags::cpp_comment_style)
 清除注释
 

静态 Public 成员函数

static void DataFrameLoadFileA (std::vector< std::vector< std::string > > &df, const char *filename_utf8, char split_ch)
 
static void SaveAsFile (const char *filepath, const char *data, int len)
 

Protected 属性

DataBuffer m_buf
 

成员枚举类型说明

◆ CommentFlags

枚举值
cpp_comment_style 
xml_comment_style 
bash_comment_style 
all_comment_style 

构造及析构函数说明

◆ FileReader()

BUI::FileReader::FileReader ( )

◆ ~FileReader()

BUI::FileReader::~FileReader ( )

成员函数说明

◆ ClearComments()

void BUI::FileReader::ClearComments ( UINT  commentflags = CommentFlags::cpp_comment_style)

清除注释

◆ DataFrameLoadFileA()

static void BUI::FileReader::DataFrameLoadFileA ( std::vector< std::vector< std::string > > &  df,
const char *  filename_utf8,
char  split_ch 
)
static

◆ FillData()

void BUI::FileReader::FillData ( const char *  data,
uint32_t  len 
)

◆ GetDataBuffer()

DataBuffer BUI::FileReader::GetDataBuffer ( BOOL  skipBom = FALSE) const

获得文件内容数据和长度信息

◆ LoadFile()

int BUI::FileReader::LoadFile ( const TCHAR filename)

◆ LoadFileA()

int BUI::FileReader::LoadFileA ( const char *  filename_utf8)

◆ LoadFileW()

int BUI::FileReader::LoadFileW ( const WCHAR filename)

◆ SaveAsFile()

static void BUI::FileReader::SaveAsFile ( const char *  filepath,
const char *  data,
int  len 
)
static

类成员变量说明

◆ m_buf

DataBuffer BUI::FileReader::m_buf
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有