]> git.lyx.org Git - lyx.git/blob - src/support/StrPool.h
remove commented HAVE_SSTREAM code
[lyx.git] / src / support / StrPool.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 2000 Jean-Marc Lasgouttes
8  *
9  * ======================================================*/
10
11
12 #ifndef STRPOOL_H
13 #define STRPOOL_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "LString.h"
20 #include <vector>
21
22 ///
23 class StrPool {
24 public:
25         /// delete all the strings that have been allocated by add()
26         ~StrPool();
27         /// Make a copy of the string, and remember it in the pool
28         char const * add(string const & str);
29         
30 private:
31         ///
32         typedef std::vector<char const *> Pool;
33         ///
34         Pool pool_;
35 };
36
37 #endif