Skip to content
InstanceLabs edited this page Feb 3, 2018 · 4 revisions

Structure

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'.

How to use in your project

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).

Clone this wiki locally