Menu

[73c16a]: / Optimizer / Line.h  Maximize  Restore  History

Download this file

19 lines (15 with data), 709 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#ifndef LINE_H_INCLUDED
#define LINE_H_INCLUDED
#include <vector>// For line by line reading
#include <iostream>// For line by line reading
#include <cstdio>// For line by line reading
using namespace std;// We are using the standard library
class Line {// Defines a line in the file
public:// All of the public members
bool ReadLine(FILE*);// Reads the next line from a file
inline string Text(void) { return s_Text; }// Gets the whole text of the line
protected:// All of the protected members
string s_Text;// The whole text of the line
vector<string> vs_Segments;// The segments of the text
};// End of the line class
#endif // LINE_H_INCLUDED
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.