00001 00002 /* Copyright 2009 Diego Barrios Romero 00003 * 00004 * This file is part of DSMemorizer. 00005 * 00006 * DSMemorizer is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * DSMemorizer distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with DSMemorizer. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #include <string> 00021 #include "card.h" 00022 00023 using std::string; 00024 00025 void Card::Init (int index, std::string symbol, std::string reading, 00026 std::string reading2, std::string translation, 00027 std::string example_symbol, std::string example_reading, 00028 std::string example_translation 00029 ) 00030 { 00031 index_ = index; 00032 symbol_ = symbol; 00033 reading_ = reading; 00034 reading2_ = reading2; 00035 translation_ = translation; 00036 example_symbol_ = example_symbol; 00037 example_reading_ = example_reading; 00038 example_translation_ = example_translation; 00039 } 00040 00041 std::string Card::symbol () const 00042 { 00043 return symbol_; 00044 } 00045 00046 std::string Card::reading () const 00047 { 00048 return reading_; 00049 } 00050 00051 std::string Card::reading2 () const 00052 { 00053 return reading2_; 00054 } 00055 00056 std::string Card::translation () const 00057 { 00058 return translation_; 00059 } 00060 00061 std::string Card::example_symbol () const 00062 { 00063 return example_symbol_; 00064 } 00065 00066 std::string Card::example_reading () const 00067 { 00068 return example_reading_; 00069 } 00070 00071 std::string Card::example_translation () const 00072 { 00073 return example_translation_; 00074 } 00075 00076 int Card::index () const 00077 { 00078 return index_; 00079 } 00080
1.5.8