]> git.lyx.org Git - lyx.git/blob - src/errorlist.h
Point fix, earlier forgotten
[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 "LString.h"
16
17 #include <vector>
18
19 class Buffer;
20
21 /// A class to hold an error item
22 struct ErrorItem {
23         string error;
24         string description;
25         int par_id;
26         int pos_start;
27         int pos_end;
28         ErrorItem(string const & error, string const & description, 
29                   int parid, int posstart, int posend);
30         ErrorItem();
31 };
32
33 class ErrorList : private std::vector<ErrorItem>
34 {
35 public: 
36         ErrorList() : std::vector<ErrorItem> () {};
37
38         using std::vector<ErrorItem>::push_back;
39         using std::vector<ErrorItem>::end;
40         using std::vector<ErrorItem>::begin;
41         using std::vector<ErrorItem>::operator[];
42         using std::vector<ErrorItem>::size;
43         using std::vector<ErrorItem>::clear;
44         using std::vector<ErrorItem>::empty;
45         using std::vector<ErrorItem>::const_iterator;
46 };
47
48
49
50 #endif