26 lines
No EOL
365 B
C++
26 lines
No EOL
365 B
C++
#ifndef CODE_H
|
|
#define CODE_H
|
|
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
#include "node.h"
|
|
|
|
class Code {
|
|
|
|
public:
|
|
Code() = default;
|
|
|
|
void addLine(const std::shared_ptr<Node>& line);
|
|
|
|
const std::vector<std::shared_ptr<Node>>& getLines() const;
|
|
|
|
const string toString() const;
|
|
|
|
private:
|
|
std::vector<std::shared_ptr<Node>> _lines;
|
|
};
|
|
|
|
|
|
|
|
#endif // CODE_H
|