CMakeWriter.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <sstream>
5#include <string>
6
7namespace armarx
8{
9 class CMakeWriter;
10 using CmakeWriterPtr = std::shared_ptr<CMakeWriter>;
11
13 {
14 public:
22
24
25 // void startBlock();
26 void startBlock(const std::string& line);
27 // void endBlock();
28 void endBlock(const std::string& line);
29 void endBlockComment(std::string comment);
30 void line();
31 void line(const std::string& line);
32 void line(const std::string& line, int indentDelta);
33
34 std::string getString();
36
37 private:
38 void lineInternal(const std::string& line, int indent);
39
40 private:
41 std::stringstream ss;
42 int indent;
43 std::string indentChars;
44 LineType lastLineType;
45 };
46
47} // namespace armarx
void endBlock(const std::string &line)
LineType getLastLineType()
void endBlockComment(std::string comment)
void startBlock(const std::string &line)
std::string getString()
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< CMakeWriter > CmakeWriterPtr
Definition CMakeWriter.h:10