⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 record.h

📁 磁盘管理工具,主要管理光盘信息和内容希望大家喜欢
💻 H
字号:
#ifndef RECORD_H#define RECORD_H//$Id: Record.h,v 1.14 2006/01/28 08:03:24 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 <glibmm/ustring.h>#include <YGP/AYear.h>#include <YGP/Handle.h>#include <YGP/Entity.h>class Record;defineHndl(Record);/**Class to hold a record */class Record : public YGP::Entity { public:   Record ();   Record (const Record& other);   virtual ~Record ();   Record& operator= (const Record& other);   unsigned long int    getId () const {return id; }   const Glib::ustring& getName () const {return name; }   const YGP::AYear&    getYear () const { return year; }   unsigned int         getGenre () const { return genre; }   void setId       (const unsigned long int value) { id = value; }   void setName     (const Glib::ustring& value) { name = value; }   void setYear     (const YGP::AYear& value) { year = value; }   void setYear     (const std::string& value) { year = value; }   void setGenre    (const unsigned int value) { genre = value; }   bool needsLoading () const { return loadSongs; }   void setSongsLoaded () { loadSongs = false; }   static Glib::ustring removeIgnored (const Glib::ustring& name);   static bool compByName (const HRecord& a, const HRecord& b);   static bool compByYear (const HRecord& a, const HRecord& b);   static bool compByGenre (const HRecord& a, const HRecord& b); private:   unsigned long int id;             // %attrib%; ; 0   Glib::ustring     name;           // %attrib%; Name   YGP::AYear        year;           // %attrib%; Made   unsigned int      genre;          // %attrib%; Genre; 0   bool              loadSongs;      // %attrib%; ; true};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -