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.
21 lines
462 B
21 lines
462 B
#ifndef JUCI_SOURCEFILE_H_ |
|
#define JUCI_SOURCEFILE_H_ |
|
|
|
#include <string> |
|
#include <vector> |
|
|
|
class sourcefile { |
|
public: |
|
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); |
|
|
|
private: |
|
void open(const std::string &filename); |
|
std::vector<std::string> lines; |
|
std::string filename; |
|
}; |
|
|
|
#endif // JUCI_SOURCEFILE_H_
|
|
|