2 * FileName: DictItem.h.
3 * Used to define the class DictItem to declare the items from the dictionary.
5 * Copyright (C) 2008 Kermit Mei <kermit.mei@gmail.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 3 as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
21 * Written by Kermit Mei <kermit.mei@gmail.com>
23 * Many of the ideas implemented here are from the author's experiment.
24 * But the dictionary's format coincide with the other word recite software
25 * to help the users get more available data. And the review times designed
26 * by means of the theory named Forgetting Curve which dicoveried by the
27 * German psychologist named Hermann Ebbinghaus(1850–1909).
36 namespace freeRecite
{
41 DictItem() : strItem(0)
46 bool refer(const std::string
&str
);
48 const std::string
& getW() const
50 const std::string
& getT() const
52 const std::string
& getM() const
54 const std::string
& getE() const
59 const std::string
*strItem
;
61 const static std::string sW
;
62 const static std::string sT
;
63 const static std::string sM
;
64 const static std::string sE
;
65 const static int offset
;
78 } // namespace freeRecite end