public Boolean Initialise() { Boolean retVal = false; try { _state = Common.NodeState.Initialising; DLoggerManager.Instance.Logger.Log(DFramework.Logging.Interfaces.LoggerMessageType.VerboseHigh | DFramework.Logging.Interfaces.LoggerMessageType.Information | DFramework.Logging.Interfaces.LoggerMessageType.Sensitive, "Initialising FileReaderNode."); //Clear outputs StringContents.SetValue(String.Empty); retVal = true; } finally { _state = retVal ? Common.NodeState.Ready : Common.NodeState.Error; DLoggerManager.Instance.Logger.Log(DFramework.Logging.Interfaces.LoggerMessageType.VerboseHigh | DFramework.Logging.Interfaces.LoggerMessageType.Information | DFramework.Logging.Interfaces.LoggerMessageType.Sensitive, "Initialised FileReaderNode."); } return(retVal); }
private void _read() { _type = ((ValueType)m_io.ReadU1()); switch (Type) { case ValueType.CustomSerializedObject: { _contents = new CustomSerializedObjectContents(m_io, this, m_root); break; } case ValueType.Php3Object: { _contents = new Php3ObjectContents(m_io, this, m_root); break; } case ValueType.Object: { _contents = new ObjectContents(m_io, this, m_root); break; } case ValueType.VariableReference: { _contents = new IntContents(m_io, this, m_root); break; } case ValueType.Php6String: { _contents = new StringContents(m_io, this, m_root); break; } case ValueType.Float: { _contents = new FloatContents(m_io, this, m_root); break; } case ValueType.ObjectReference: { _contents = new IntContents(m_io, this, m_root); break; } case ValueType.Null: { _contents = new NullContents(m_io, this, m_root); break; } case ValueType.Bool: { _contents = new BoolContents(m_io, this, m_root); break; } case ValueType.Int: { _contents = new IntContents(m_io, this, m_root); break; } case ValueType.Array: { _contents = new ArrayContents(m_io, this, m_root); break; } case ValueType.String: { _contents = new StringContents(m_io, this, m_root); break; } } }