mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
462 B
22 lines
462 B
|
11 years ago
|
#ifndef JUCI_SOURCEFILE_H_
|
||
|
|
#define JUCI_SOURCEFILE_H_
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
class sourcefile {
|
||
|
|
public:
|
||
|
11 years ago
|
explicit sourcefile(const std::string &filename);
|
||
|
|
std::vector<std::string> get_lines();
|
||
|
|
std::string get_content();
|
||
|
|
std::string get_line(int line_number);
|
||
|
|
int save(const std::string &text);
|
||
|
11 years ago
|
|
||
|
|
private:
|
||
|
11 years ago
|
void open(const std::string &filename);
|
||
|
|
std::vector<std::string> lines;
|
||
|
|
std::string filename;
|
||
|
11 years ago
|
};
|
||
|
|
|
||
|
|
#endif // JUCI_SOURCEFILE_H_
|