]> git.saurik.com Git - android/aapt.git/blame - SourcePos.h
am a1e87397: (-s ours) am 7ae84204: am ba7f0d2a: Merge "Rename (IF_)LOGD(_IF) to...
[android/aapt.git] / SourcePos.h
CommitLineData
dadd9c1f
TAOSP
1#ifndef SOURCEPOS_H
2#define SOURCEPOS_H
3
4#include <utils/String8.h>
5#include <stdio.h>
6
7using namespace android;
8
9class SourcePos
10{
11public:
12 String8 file;
13 int line;
14
15 SourcePos(const String8& f, int l);
16 SourcePos(const SourcePos& that);
17 SourcePos();
18 ~SourcePos();
19
20 int error(const char* fmt, ...) const;
21 int warning(const char* fmt, ...) const;
22
23 static bool hasErrors();
24 static void printErrors(FILE* to);
25};
26
27
28#endif // SOURCEPOS_H