Class FileObjectState

Inheritance Relationships

Derived Types

Class Documentation

class FileObjectState

Subclassed by eipScanner::fileObject::FileObjectEmptyState, eipScanner::fileObject::FileObjectLoadedState, eipScanner::fileObject::FileObjectNonExistentState, eipScanner::fileObject::FileObjectUploadInProgressState

Public Types

using UPtr = std::unique_ptr<FileObjectState>

Public Functions

FileObjectState(FileObjectStateCodes state, FileObject &owner, cip::CipUint objectId, MessageRouter::SPtr messageRouter)
~FileObjectState()
void initiateUpload(SessionInfoIf::SPtr si, EndUploadHandler handle)
bool transfer(SessionInfoIf::SPtr si)
FileObjectStateCodes getStateCode() const
void SyncState(SessionInfoIf::SPtr si)

Protected Functions

void logWithStateName(utils::LogLevel logLevel, const std::string &message) const
std::string getStateName() const
template<class State, class ...Types>
void setState(Types... args)

Protected Attributes

MessageRouter::SPtr _messageRouter
cip::CipUint _objectId
FileObjectStateCodes _stateCode
FileObject &_owner