3 #ifndef SZA_UTIL_FASTPDBCLIENTTASK_H
4 #define SZA_UTIL_FASTPDBCLIENTTASK_H
19 #define MAX_NAME_LEN 100
21 #define FASTPDB_CALLBACK_FN(fn) void (fn)(std::string s)
32 class FastPdbClientMsg :
public GenericTaskMsg {
41 char source[MAX_NAME_LEN+1];
42 char project[MAX_NAME_LEN+1];
45 FASTPDB_CALLBACK_FN(*callback);
56 class FastPdbClientTask :
public ClientTask<FastPdbClientMsg> {
63 FastPdbClientTask(
bool spawn, std::string host,
unsigned connectPort, CondVar* condVar=0);
68 virtual ~FastPdbClientTask();
70 virtual void processServerData();
71 virtual void processMsg(FastPdbClientMsg* msg);
73 void sendListSourceMsg(std::string source, FASTPDB_CALLBACK_FN(*callback)=0);
74 void sendListProjectMsg(std::string project, FASTPDB_CALLBACK_FN(*callback)=0);
82 FASTPDB_CALLBACK_FN(*callback_);
91 #endif // End #ifndef SZA_UTIL_FASTPDBCLIENTTASK_H
virtual void processMsg(Msg *msg)
This method should be defined by each inheriting task to process its own task-specific messages...
Tagged: Wed 01-Feb-06 10:43:27.
Tagged: Fri Nov 14 12:39:34 UTC 2003.
Tagged: Tue Feb 18 13:08:16 PST 2014.