dl
函数 | 变量
dl::FileCsv 命名空间参考

函数

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

变量

constexpr uint32_t CSV_FILE_TYPE = 316
 

函数说明

◆ Deserialize() [1/2]

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

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

在文件 dl_file_csv.h 第 394 行定义.

◆ Deserialize() [2/2]

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

在文件 dl_file_csv.h 第 427 行定义.

◆ Read()

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

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

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

在文件 dl_file_csv.h 第 36 行定义.

◆ Serialize()

void dl::FileCsv::Serialize ( std::string_view  path_name,
std::string_view  out 
)

序列化 逗号分隔文件

在文件 dl_file_csv.h 第 132 行定义.

变量说明

◆ CSV_FILE_TYPE

constexpr uint32_t dl::FileCsv::CSV_FILE_TYPE = 316
constexpr

在文件 dl_file_csv.h 第 27 行定义.