]> git.lyx.org Git - lyx.git/blob - src/errorlist.h
mathed uglyfication
[lyx.git] / src / errorlist.h
1 // -*- C++ -*-
2 /**
3  * \file errorlist.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alfredo Braunstein
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef ERRORLIST_H
13 #define ERRORLIST_H
14
15 #include <vector>
16 #include <string>
17
18 class Buffer;
19
20 /// A class to hold an error item
21 struct ErrorItem {
22         std::string error;
23         std::string description;
24         int par_id;
25         int pos_start;
26         int pos_end;
27         ErrorItem(std::string const & error, std::string const & description,
28                   int parid, int posstart, int posend);
29         ErrorItem();
30 };
31
32 class ErrorList : private std::vector<ErrorItem>
33 {
34 public:
35         ErrorList() : std::vector<ErrorItem> () {};
36
37         using std::vector<ErrorItem>::push_back;
38         using std::vector<ErrorItem>::end;
39         using std::vector<ErrorItem>::begin;
40         using std::vector<ErrorItem>::operator[];
41         using std::vector<ErrorItem>::size;
42         using std::vector<ErrorItem>::clear;
43         using std::vector<ErrorItem>::empty;
44         using std::vector<ErrorItem>::const_iterator;
45 };
46
47
48
49 #endif