storagerecord.h
来自「磁盘管理工具,主要管理光盘信息和内容希望大家喜欢」· C头文件 代码 · 共 68 行
H
68 行
#ifndef STORAGERECORD_H#define STORAGERECORD_H//$Id: StorageRecord.h,v 1.3 2006/03/19 02:21:51 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 <string>#include <YGP/Relation.h>#include "Song.h"#include "Record.h"#include "Interpret.h"#include "Storage.h"// Forward declarationsnamespace YGP { class StatusObject;};/**Class to access the stored records */class StorageRecord : public Storage { public: static void loadInterprets (std::vector<HInterpret>& target, YGP::StatusObject& stat) { loadCelebrities (target, "Interprets", stat); } static unsigned int loadRecords (std::map<unsigned int, std::vector<HRecord> >& aRecords, YGP::StatusObject& stat) throw (std::exception); static void loadSongs (unsigned int idRecord, std::vector<HSong>& songs) throw (std::exception); static void saveSong (const HSong song, unsigned int idRecord) throw (std::exception); static void saveRecord (const HRecord record, unsigned int idInterpret) throw (std::exception); static void deleteSong (unsigned int idSong) throw (std::exception); static void deleteRecord (unsigned int idRecord) throw (std::exception); static void deleteInterpret (unsigned int idInterpret) throw (std::exception); static void loadNames (const std::vector<HInterpret>& interprets, const YGP::Relation1_N<HInterpret, HRecord>& relRecords, const std::string& lang) throw (std::exception); private: StorageRecord (); StorageRecord (const StorageRecord& other); virtual ~StorageRecord (); const StorageRecord& operator= (const StorageRecord& other);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?