dl
dl::FileCsv 命名空间参考

csv格式解析 更多...

函数

bool Read (std::string_view path_name, Vector2< std::string > &ret)
 读取一个CSV文件,拆解为每行(换行使用
替代,所有/变为\)
 
template<typename T, typename F>
void Deserialize (std::string_view path_name, F fn)
 序列化 逗号分隔文件
 
template<typename T>
void Deserialize (std::string_view path_name, std::vector< T > &container)
 

变量

constexpr uint32_t CSV_FILE_TYPE = 316
 

详细描述

csv格式解析

函数说明

◆ Deserialize() [1/2]

template<typename T, typename F>
void dl::FileCsv::Deserialize ( std::string_view path_name,
F fn )

序列化 逗号分隔文件

反序列化 序列化的Csv文件到 对象

在文件 dl_file_csv.h394 行定义.

◆ Deserialize() [2/2]

template<typename T>
void dl::FileCsv::Deserialize ( std::string_view path_name,
std::vector< T > & container )

在文件 dl_file_csv.h427 行定义.

◆ Read()

bool dl::FileCsv::Read ( std::string_view path_name,
Vector2< std::string > & ret )

读取一个CSV文件,拆解为每行(换行使用
替代,所有/变为\)

参数
[in]path_name路径名称
返回值
如果失败,会输出日志
注解
出于性能考虑不判断是否为utf8编码,而是使用其他函数提前转换

在文件 dl_file_csv.h36 行定义.

变量说明

◆ CSV_FILE_TYPE

uint32_t dl::FileCsv::CSV_FILE_TYPE = 316
constexpr

在文件 dl_file_csv.h27 行定义.