celebrity.h
来自「磁盘管理工具,主要管理光盘信息和内容希望大家喜欢」· C头文件 代码 · 共 73 行
H
73 行
#ifndef CELIBRITY_H#define CELIBRITY_H//$Id: Celebrity.h,v 1.14 2006/04/20 20:35:04 markus Rel $// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.#include <vector>#include <glibmm/ustring.h>#include <YGP/AYear.h>#include <YGP/Handle.h>#include <YGP/Entity.h>class Celebrity;defineHndl(Celebrity);/**Class to hold an celibrity */class Celebrity : public YGP::Entity { public: Celebrity (); Celebrity (const Celebrity& other); virtual ~Celebrity (); Celebrity& operator= (const Celebrity& other); static bool compById (const HCelebrity& a, const HCelebrity& b); static bool compByName (const HCelebrity& a, const HCelebrity& b); static Glib::ustring removeIgnored (const Glib::ustring& name); unsigned long int getId () const {return id; } const Glib::ustring& getName () const {return name; } const YGP::AYear& getBorn () const { return born; } const YGP::AYear& getDied () const { return died; } Glib::ustring getLifespan () const; void undefineBorn () { born.undefine (); } void undefineDied () { died.undefine (); } void setId (const unsigned long int value) { id = value; } void setName (const Glib::ustring& value) { name = value; } void setBorn (const YGP::AYear& value) { born = value; } void setBorn (const std::string& value) throw (std::invalid_argument) { born = value; } void setDied (const YGP::AYear& value) { died = value; } void setDied (const std::string& value) throw (std::invalid_argument) { died = value; } void setLifespan (const Glib::ustring& value) throw (std::invalid_argument); private: unsigned long int id; // %attrib%; ; 0 Glib::ustring name; // %attrib%; Name YGP::AYear born; // %attrib%; Born YGP::AYear died; // %attrib%; Died};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?