]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/index/stack/class_IndexableStack.php
Continued:
[core.git] / framework / main / interfaces / index / stack / class_IndexableStack.php
index b6051190b317949cfa8c1cad8058f652ab6ce12f..2576ce5a4288b408a7da11255f6478c3cdbf455c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace Org\Mxchange\CoreFramework\Stacker\Index;
+namespace Org\Mxchange\CoreFramework\Index\Stack;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filesystem\Block\CalculatableBlock;
@@ -11,11 +11,7 @@ use Org\Mxchange\CoreFramework\Index\Indexable;
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
-<<<<<<< HEAD:framework/main/interfaces/index/stack/class_IndexableStack.php
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
-=======
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
->>>>>>> Some updates::inc/main/interfaces/index/stack/class_IndexableStack.php
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -34,12 +30,20 @@ use Org\Mxchange\CoreFramework\Index\Indexable;
  */
 interface IndexableStack extends Indexable, CalculatableBlock {
        /**
-        * Adds given hash to an index file
+        * Adds given data's hash to the index file
         *
         * @param       $stackName      Name of stack to add hash
         * @param       $data           Hash and gap position to be added to the index
         * @return      void
+        * @throws      InvalidArgumentException        If a parameter is not valid
         */
-       function addHashToIndex ($stackName, array $data);
+       function addHashedDataToIndex (string $stackName, array $data);
+
+       /**
+        * Checks whether the index' file has been fully loaded (and parsed)
+        *
+        * @return      $isLoaded       Whether the index' file has been loaded
+        */
+       function isIndexFileLoaded ();
 
 }