File: dictbuilder.h

package info (click to toggle)
dictconv 0.2-7
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, lenny, squeeze, stretch, wheezy
  • size: 1,536 kB
  • ctags: 434
  • sloc: sh: 8,876; cpp: 1,979; makefile: 10
file content (71 lines) | stat: -rw-r--r-- 3,561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/***************************************************************************
 *   Copyright (C) 2007 by Raul Fernandes                                  *
 *   rgbr@yahoo.com.br                                                     *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
 ***************************************************************************/
#ifndef DICTBUILDER_H
#define DICTBUILDER_H

#include <string>
#include <vector>


class DictBuilder
{

public:

  virtual bool addHeadword( std::string word, std::string def, std::vector<std::string> alternates = std::vector<std::string>() ){ return true; };

  virtual bool finish(){ return true; };

  virtual std::string filename(){ return std::string(); };
  virtual void setTitle( const std::string /*title*/ ){};
  virtual std::string title(){ return std::string(); };
  virtual void setAuthor( const std::string /*author*/ ){};
  virtual std::string author(){ return std::string(); };
  virtual void setLicense( const std::string /*license*/ ){};
  virtual std::string license(){ return std::string(); };
  virtual void setOrigLang( const std::string /*origLang*/ ){};
  virtual std::string origLang(){ return std::string(); };
  virtual void setDestLang( const std::string /*destLang*/ ){};
  virtual std::string destLang(){ return std::string(); };
  virtual void setDescription( const std::string /*description*/ ){};
  virtual std::string description(){ return std::string(); };
  virtual void setComments( const std::string /*comments*/ ){};
  virtual std::string comments(){ return std::string(); };
  virtual void setEmail( const std::string /*email*/ ){};
  virtual std::string email(){ return std::string(); };
  virtual void setWebsite( const std::string /*website*/ ){};
  virtual std::string website(){ return std::string(); };
  virtual void setVersion( const std::string /*version*/ ){};
  virtual std::string version(){ return std::string(); };
  virtual void setCreationDate( const std::string /*creationDate*/ ){};
  virtual std::string creationDate(){ return std::string(); };
  virtual void setLastUpdate( const std::string /*lastUpdate*/ ){};
  virtual std::string lastUpdate(){ return std::string(); };
  virtual void setMisc( const std::string /*misc*/ ){};
  virtual std::string misc(){ return std::string(); };
  virtual unsigned int headwords(){ return 0; };
  virtual unsigned int words(){ return 0; };

protected:
  DictBuilder(){};

};

#endif // DICTBUILDER_H