dev_yi #3

Merged
zhangyiss merged 12 commits from dev_yi into main 2025-02-03 11:25:04 +08:00
2 changed files with 2 additions and 39 deletions
Showing only changes of commit b54c1b3191 - Show all commits

View File

@ -512,19 +512,6 @@ void gctl::dsv_io::row_output(std::string name, switch_type_e s)
return;
}
void gctl::dsv_io::add_column(std::string name)
{
table_cell empty_cell;
for (size_t i = 0; i < table_.size(); i++)
{
table_[i].push_back(empty_cell);
}
table_[0].back().str_ = name;
col_num_++;
return;
}
void gctl::dsv_io::add_column(int idx, std::string name)
{
table_cell empty_cell;
@ -557,16 +544,6 @@ void gctl::dsv_io::add_column(std::string id_name, std::string name)
return;
}
void gctl::dsv_io::add_row(std::string name)
{
std::vector<table_cell> empty_line;
table_.push_back(empty_line);
table_.back().resize(col_num_ + 1);
table_.back().front().str_ = name;
row_num_++;
return;
}
void gctl::dsv_io::add_row(int idx, std::string name)
{
std::vector<table_cell> empty_line;

View File

@ -402,16 +402,9 @@ namespace gctl
* @param s
*/
void row_output(std::string name, switch_type_e s = Disable);
/**
* @brief
*
* @param name
*/
void add_column(std::string name = "");
/**
* @brief idx的列插入一个空白列
* @brief idx的列之后插入一个空白列
*
* @param idx 0
* @param name
@ -419,20 +412,13 @@ namespace gctl
void add_column(int idx, std::string name = "");
/**
* @brief id_name的列插入一个空白列
* @brief id_name的列之后插入一个空白列
*
* @param id_name
* @param name
*/
void add_column(std::string id_name, std::string name = "");
/**
* @brief
*
* @param name
*/
void add_row(std::string name = "");
/**
* @brief idx的列插入一个空白行
*