<?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;
*
* @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
*
*/
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 ();
}