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

📄 storage.h

📁 磁盘管理工具,主要管理光盘信息和内容希望大家喜欢
💻 H
字号:
#ifndef STORAGE_H#define STORAGE_H//$Id: Storage.h,v 1.6 2006/03/19 02:24:15 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 <stdexcept>#include <YGP/StatusObj.h>#include "Actor.h"/**Class to access the stored entities */class Storage { public:   static void login (const char* db, const char* user, const char* pwd) throw (std::exception);   static void logout ();   static bool connected ();   //{ \name Handling of special words   static void loadSpecialWords () throw (std::exception);   static void storeWord (const char* word) throw (std::exception);   static void storeArticle (const char* article) throw (std::exception);   static void deleteNames () throw (std::exception);   static void deleteArticles () throw (std::exception);   //}   //{ \name Transaction-handling   static void startTransaction ();   static void abortTransaction ();   static void commitTransaction ();   //}   //{ \name Handling of celebrities   static void insertCelebrity (const HCelebrity celeb, const char* role) throw (std::exception);   static void updateCelebrity (const HCelebrity celeb) throw (std::exception);   static void getCelebrities (const std::string& name, std::vector<HCelebrity>& target) throw (std::exception);   static void loadCelebrities (std::vector<HCelebrity>& target, const std::string& table,				YGP::StatusObject& stat) throw (std::exception);   static void setRole (unsigned int idCeleb, const char* role) throw (std::exception);   static bool hasRole (unsigned int idCeleb, const char* role) throw (std::exception);   //} private:   Storage ();   Storage (const Storage& other);   virtual ~Storage ();   const Storage& operator= (const Storage& other);   static void fillCelebrities (std::vector<HCelebrity>& target, YGP::StatusObject& stat);};#endif

⌨️ 快捷键说明

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