X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdbos%2Fworkdir%2Fstorage%2FFile.hpp;fp=example%2Fdbos%2Fworkdir%2Fstorage%2FFile.hpp;h=412e06c91c5f15be7ecc5550129fa180f60d2719;hp=51d42937340cc4cb95cbdeb540f7c64ee7844fe8;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/dbos/workdir/storage/File.hpp b/example/dbos/workdir/storage/File.hpp index 51d4293..412e06c 100644 --- a/example/dbos/workdir/storage/File.hpp +++ b/example/dbos/workdir/storage/File.hpp @@ -37,41 +37,41 @@ using namespace anna; class File : public dbos::Object, public dbos::ObjectFacade { public: - const Directory* getParent() const throw() { return a_parent; } - const filesystem::File* getFilesystemFile() const throw() { return a_filesystemFile; } - int getINode() const throw() { return a_inode; } + const Directory* getParent() const { return a_parent; } + const filesystem::File* getFilesystemFile() const { return a_filesystemFile; } + int getINode() const { return a_inode; } - std::string asString() const throw(); + std::string asString() const ; - static void setup(dbos::Repository&, const int maxSize) throw(RuntimeException); - static File* instantiate(const filesystem::File*) throw(RuntimeException); + static void setup(dbos::Repository&, const int maxSize) noexcept(false); + static File* instantiate(const filesystem::File*) noexcept(false); - static const char* getStorageAreaName() throw() { return "storage::File"; } - static const dbos::Size getMaxSize() throw() { return st_maxSize; } + static const char* getStorageAreaName() { return "storage::File"; } + static const dbos::Size getMaxSize() { return st_maxSize; } private: class Loader : public dbos::Loader { public: Loader() : dbos::Loader() {;} - Loader& setKey(const filesystem::File* file) throw() { + Loader& setKey(const filesystem::File* file) { a_filesystemFile = file; return *this; } - const filesystem::File* getFile() const throw() { return a_filesystemFile; } - int getINode() const throw() { return a_inode; } + const filesystem::File* getFile() const { return a_filesystemFile; } + int getINode() const { return a_inode; } - dbos::Index getIndex() const throw(); - std::string asString() const throw(); + dbos::Index getIndex() const ; + std::string asString() const ; private: const filesystem::File* a_filesystemFile; int a_inode; // dbms::Statement is not required - dbms::Statement* initialize(dbms::Database&) throw(RuntimeException) { return NULL; } - bool load(dbms::Connection*, const dbos::StorageArea*) throw(RuntimeException); + dbms::Statement* initialize(dbms::Database&) noexcept(false) { return NULL; } + bool load(dbms::Connection*, const dbos::StorageArea*) noexcept(false); }; Directory* a_parent; @@ -85,8 +85,8 @@ private: File() : a_parent(NULL) { ; } File(const File&); - void initialize(dbos::Loader& loader) throw(RuntimeException, dbms::DatabaseException); - void destroy() throw(); + void initialize(dbos::Loader& loader) noexcept(false); + void destroy() ; dbos_declare_object(File); };