Remove dynamic exceptions
[anna.git] / include / anna / dbos / Repository.hpp
index f6d0803..59f138d 100644 (file)
@@ -1,37 +1,9 @@
-// ANNA - Anna is Not Nothingness Anymore
-//
-// (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
-//
-// https://bitbucket.org/testillano/anna
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-//
-//     * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-//     * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-//     * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: eduardo.ramos.testillano@gmail.com
-//          cisco.tierra@gmail.com
+// ANNA - Anna is Not Nothingness Anymore                                                         //
+//                                                                                                //
+// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
+//                                                                                                //
+// See project site at http://redmine.teslayout.com/projects/anna-suite                           //
+// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
 
 
 #ifndef anna_dbos_Repository_hpp
@@ -106,7 +78,7 @@ public:
      finalizacin de esta instancia de base de datos.
   */
   StorageArea* createStorageArea(const StorageId index, const char* name, const Size maxSize, ObjectAllocator objectAllocator, const int errorCode, const StorageArea::AccessMode::_v aamm = StorageArea::AccessMode::ReadOnly)
-  throw(RuntimeException);
+  noexcept(false);
 
   /**
      Devuelve la instancia del area de almacenamiento asociada al indice recibido.
@@ -116,58 +88,58 @@ public:
      \return La instancia del area de almacenamiento asociada al indice recibido. Puede ser NULL si el
      indice no fue usado para crear un area mediate #createStorageArea.
   */
-  StorageArea* findStorageArea(const StorageId index) throw();
+  StorageArea* findStorageArea(const StorageId index) ;
 
   /**
      Elimina todos los objetos cargados en las areas de almacenamiento definidas.
   */
-  void clear() throw(RuntimeException);
+  void clear() noexcept(false);
 
   /**
      Devuelve un iterator al comienzo de la lista de areas de almacenamiento de esta base de datos.
      \return Un iterator al comienzo de la lista de areas de almacenamiento de esta base de datos.
   */
-  const_storage_iterator storage_begin() const throw() { return a_storageAreas.begin(); }
+  const_storage_iterator storage_begin() const { return a_storageAreas.begin(); }
 
   /**
      Devuelve un iterator al final de la lista de areas de almacenamiento de esta base de datos.
      \return Un iterator al final de la lista de areas de almacenamiento de esta base de datos.
   */
-  const_storage_iterator storage_end() const throw() { return a_storageAreas.end(); }
+  const_storage_iterator storage_end() const { return a_storageAreas.end(); }
 
   /**
      Devuelve el objeto sobre el que esta posicionado el iterator recibido como parametro.
      \param ii Iterator que deberia estar comprendido entre #const_storage_begin y #const_storage_end.
      \return El objeto sobre el que esta posicionado el iterator recibido como parametro.
   */
-  static const StorageArea* storageArea(const_storage_iterator& ii) throw() { return ii->second; }
+  static const StorageArea* storageArea(const_storage_iterator& ii) { return ii->second; }
 
   /**
      Devuelve un documento XML con la informacion referente a esta instancia.
      \param parent Nodo XML del que dependende la informacion.
      @return un documento XML con la informacion referente a esta instancia.
   */
-  xml::Node* asXML(xml::Node* parent) const throw();
+  xml::Node* asXML(xml::Node* parent) const ;
 
 protected:
   /**
      Devuelve un iterator al comienzo de la lista de areas de almacenamiento de esta base de datos.
      \return Un iterator al comienzo de la lista de areas de almacenamiento de esta base de datos.
   */
-  storage_iterator storage_begin() throw() { return a_storageAreas.begin(); }
+  storage_iterator storage_begin() { return a_storageAreas.begin(); }
 
   /**
      Devuelve un iterator al final de la lista de areas de almacenamiento de esta base de datos.
      \return Un iterator al final de la lista de areas de almacenamiento de esta base de datos.
   */
-  storage_iterator storage_end() throw() { return a_storageAreas.end(); }
+  storage_iterator storage_end() { return a_storageAreas.end(); }
 
   /**
      Devuelve el objeto sobre el que esta posicionado el iterator recibido como parametro.
      \param ii Iterator que deberia estar comprendido entre #const_storage_begin y #const_storage_end.
      \return El objeto sobre el que esta posicionado el iterator recibido como parametro.
   */
-  static StorageArea* storageArea(storage_iterator& ii) throw() { return ii->second; }
+  static StorageArea* storageArea(storage_iterator& ii) { return ii->second; }
 
 private:
   std::string a_name;