-
Notifications
You must be signed in to change notification settings - Fork 2
Home
InstanceLabs edited this page Feb 3, 2018
·
4 revisions
The main functions are as follows:
std::vector<std::shared_ptr<Command>> read_session_file(std::ifstream& f);
std::vector<std::shared_ptr<Command>> read_session_file(const std::string& filename);
and
std::vector<std::shared_ptr<Command>> read_tabs_file(std::ifstream& f);
std::vector<std::shared_ptr<Command>> read_tabs_file(const std::string& filename);
You can then loop through the Command vector as seen in the examples. You can check out a list of all Command types and their respective ids here at 'Data Structures'.
Simply copy chromium-snss-parse.hpp into your project and use any of the functions above. It has no dependencies, however it uses shared_ptr (C++11).