]> 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 daab0a1326d00033c818f9c47459da282884f5ab..2576ce5a4288b408a7da11255f6478c3cdbf455c 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace CoreFramework\Stack\Index;
+namespace Org\Mxchange\CoreFramework\Index\Stack;
 
 // Import framework stuff
-use CoreFramework\Filesystem\Block\CalculatableBlock;
-use CoreFramework\Index\Indexable;
+use Org\Mxchange\CoreFramework\Filesystem\Block\CalculatableBlock;
+use Org\Mxchange\CoreFramework\Index\Indexable;
 
 /**
  * An interface for Indexable stack classes
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @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
  *
@@ -30,12 +30,20 @@ use 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 ();
 
 }