-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathasmfile.h
More file actions
50 lines (41 loc) · 1.05 KB
/
asmfile.h
File metadata and controls
50 lines (41 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef INCLUDE_ASMFILE_H
#define INCLUDE_ASMFILE_H
// asmfile.h
// Revision 12-dec-2004
#include "token.h"
#include <iostream>
#include <fstream>
#include <string>
class AsmFile {
public:
AsmFile ();
AsmFile (const AsmFile & af);
~AsmFile ();
void addincludedir (const std::string & dirname);
void loadfile (const std::string & filename, bool nocase,
std::ostream & outverb, std::ostream& outerr);
size_t getline () const;
protected:
void openis (std::ifstream & is, const std::string & filename,
std::ios::openmode mode) const;
void showlineinfo (std::ostream & os, size_t nline) const;
void showcurrentlineinfo (std::ostream & os) const;
bool getvalidline ();
bool passeof () const;
Tokenizer & getcurrentline ();
const std::string & getcurrenttext () const;
void setline (size_t line);
void setendline ();
void beginline ();
bool nextline ();
void prevline ();
private:
class In;
In * pin;
In & in ();
const In & in () const;
static const size_t LINE_BEGIN= static_cast <size_t> (-1);
size_t currentline;
};
#endif
// End of asmfile.h