BibtexEntry.h

Go to the documentation of this file.
00001 /* BibtexEntry.h */
00002 /* entries in a BibTeX file */
00003 
00004 /* Copyright (C) 2002, Bernd Speiser */
00005 /* This file is part of bibtex2bibtex.
00006 
00007 bibtex2bibtex is free software; you can redistribute it and/or
00008 modify it under the terms of the GNU General Public License
00009 as published by the Free Software Foundation; either version 2
00010 of the License, or (at your option) any later version.
00011 
00012 bibtex2bibtex is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00020 02111-1307, USA.
00021 */
00022 
00023 #ifndef _BibtexEntry_h
00024 #define _BibtexEntry_h
00025 
00026 #include <string>
00027 #include <iostream>
00028 #include <fstream>
00029 #include <vector>
00030 
00031 /* declaration of BibtexEntry base class */
00032 
00033 namespace bibtex2bibtex {
00034   class BibtexEntry
00035     {
00036       protected:
00037         std::string text;
00038 
00039       public:
00040         BibtexEntry (void) {text = "";}
00041   
00042         BibtexEntry (std::string textstring) {text = textstring;}
00043   
00044         virtual ~BibtexEntry (void) {}
00045 
00046         std::string coworkers (void);
00047 
00048         std::string key (void);
00049 
00050         void key (std::string);
00051 
00052         std::string source (void);
00053 
00054         std::string authors (void);
00055 
00056         std::string year (void);
00057 
00058         std::string copy (void);
00059 
00060         std::ofstream &output (std::ofstream &);
00061 
00062         std::string field (std::string);
00063   
00064     };
00065 }
00066 
00067 #endif /* _BibtexEntry_h */
00068 

Generated on Tue Mar 24 21:01:34 2009 for bibtex2bibtex by  doxygen 1.5.3