*/
private $wrapperInstance = NULL;
+ /**
+ * An instance of a file I/O pointer class (not handler)
+ */
+ private $pointerInstance = NULL;
+
/**
* Thousands separator
*/
return $this->iteratorInstance;
}
+ /**
+ * Setter for FrameworkInputOutputPointer instance
+ *
+ * @param $pointerInstance An instance of an FrameworkInputOutputPointer
+ * @return void
+ */
+ protected final function setPointerInstance (FrameworkInputOutputPointer $pointerInstance) {
+ $this->pointerInstance = $pointerInstance;
+ }
+
+ /**
+ * Getter for FrameworkInputOutputPointer instance
+ *
+ * @return $pointerInstance An instance of an FrameworkInputOutputPointer
+ */
+ public final function getPointerInstance () {
+ return $this->pointerInstance;
+ }
+
/**
* Checks whether an object equals this object. You should overwrite this
* method to implement own equality checks
/**
* Creates an instance of this class
*
+ * @param $fileName Absolute Name of stack file
* @return $stackInstance An instance of a Stackable class
*/
- public final static function create???FileStack () {
+ public final static function create???FileStack ($fileName) {
// Get new instance
$stackInstance = new ???FileStack();
+ // Get the I/O file pointer instance and handle over file name
+ $pointerInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_output_class', $fileName);
+
+ // Set instance here in stack
+ $stackInstance->setPointerInstance($pointerInstance);
+
// Return the prepared instance
return $stackInstance;
}