mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
83acbbd523
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2072 a592a061-630c-0410-9148-cb99ea01b6c8
40 lines
738 B
C++
40 lines
738 B
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2000-2001 Jean-Marc Lasgouttes
|
|
*
|
|
* ======================================================*/
|
|
|
|
|
|
#ifndef STRPOOL_H
|
|
#define STRPOOL_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "LString.h"
|
|
#include <vector>
|
|
|
|
///
|
|
class StrPool {
|
|
public:
|
|
/// delete all the strings that have been allocated by add()
|
|
~StrPool();
|
|
/// Make a copy of the string, and remember it in the pool
|
|
char const * add(string const & str);
|
|
|
|
private:
|
|
///
|
|
typedef std::vector<char const *> Pool;
|
|
///
|
|
Pool pool_;
|
|
};
|
|
|
|
//extern StrPool strPool;
|
|
|
|
#endif
|