34 #ifndef FILE_MESSAGING__HPP
35 #define FILE_MESSAGING__HPP
86 const string& messageFilename,
MessageResponder *responderObject,
bool isReadOnly);
125 void SendCommand(
const string& targetApp,
unsigned long id,
129 void SendReply(
const string& targetApp,
unsigned long id,
const string applicationName
void DeleteFileMessenger(FileMessenger *messenger)
~FileMessagingManager(void)
FileMessenger * CreateNewFileMessenger(const string &messageFilename, MessageResponder *responderObject, bool readOnly)
FileMessagingManager(const string &appName)
void PollMessageFiles(void)
list< FileMessenger * > FileMessengerList
FileMessengerList messengers
FileMessenger(FileMessagingManager *parentManager, const string &messageFilename, MessageResponder *responderObject, bool isReadOnly)
void SendReply(const string &targetApp, unsigned long id, MessageResponder::ReplyStatus status, const string &data)
map< unsigned long, TargetApp2Status > CommandReplies
CommandReplies repliesReceived
map< string, string > TargetApp2Command
void ReceiveCommands(void)
map< string, MessageResponder::ReplyStatus > TargetApp2Status
void PollMessageFile(void)
map< unsigned long, TargetApp2Command > CommandOriginators
void SendPendingCommands(void)
CommandReplies repliesSent
CommandOriginators commandsReceived
const FileMessagingManager *const manager
MessageResponder *const responder
list< CommandInfo > CommandList
CommandOriginators commandsSent
const CDirEntry messageFile
void SendCommand(const string &targetApp, unsigned long id, const string &command, const string &data)
CommandList pendingCommands
virtual void ReceivedCommand(const string &fromApp, unsigned long id, const string &command, const string &data)=0
virtual ~MessageResponder(void)
virtual void ReceivedReply(const string &fromApp, unsigned long id, ReplyStatus status, const string &data)=0
Include a standard set of the NCBI C++ Toolkit most basic headers.
bool IdentifierToSeqId(const string &identifier, CRef< ncbi::objects::CSeq_id > &seqID)
bool SeqIdToIdentifier(const CRef< ncbi::objects::CSeq_id > &seqID, string &identifier)
int64_t Int8
8-byte (64-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static Messenger messenger
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
The NCBI C++/STL use hints.