void add_history(std::string input)
{
//package_vec_.push_back(input);
current_package_ = input;
history_queue_.push(input);
if(static_cast<int> (history_queue_.size()) > config_params_.history_count)
{//just store history_count of history record
history_queue_.pop();
}
}
void show_history()
{
std::queue<std::string> history_n = history_queue_;
std::cout<< "**************\nhistory package seq:\n";
size_t sz = history_n.size();
for(;sz > 0;sz--)
{
auto it = history_n.front();
std::cout << " " << it;
history_n.pop();
}
std::cout <<"\n**************\n";
}
09-02