1234567891011121314151617181920212223 |
- #pragma once
-
- #include <string>
- #include <vector>
- #include <ostream>
-
- namespace compdb {
-
- class Writer {
- public:
- Writer(std::ostream &stream): stream_(stream) {}
- ~Writer();
-
- void write(
- const std::string &dir, const std::string &file,
- const std::vector<std::string> &cmd);
-
- private:
- std::ostream &stream_;
- bool first_ = true;
- };
-
- }
|