diff options
Diffstat (limited to 'syncCommand.h')
-rw-r--r-- | syncCommand.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/syncCommand.h b/syncCommand.h deleted file mode 100644 index b738513..0000000 --- a/syncCommand.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef _SYNCCOMMAND_H -#define _SYNCCOMMAND_H -#include <boost/archive/text_oarchive.hpp> -#include <boost/archive/text_iarchive.hpp> - -#include "connectionList.h" -#include "threadUtils.hpp" -#include "syncConnectionCommand.h" -#include "syncRouteCommand.h" -#include "syncRtpCommand.h" -#include "networkPrefix.h" -#include <string> - -class SyncCommand -{ -public: - SyncCommand(ConnectionList & cl ); - SyncCommand(ConnectionList & cl ,u_int16_t mux); - SyncCommand(const std::string &); - SyncCommand(NetworkPrefix); - ~SyncCommand(); - -private: - SyncCommand(const SyncCommand &); - SyncConnectionCommand * scc_; - SyncRouteCommand * src_; - SyncRtpCommand * srtpc_; - friend class boost::serialization::access; - template<class Archive> - void serialize(Archive & ar, const unsigned int version) - { - std::string syncstr; - if (scc_) - { - syncstr = "connection"; - } - if ( src_) - { - syncstr = "route"; - } - if ( srtpc_) - { - syncstr = "rtp"; - } - ar & syncstr; -// std::cout << "syncstr received " <<syncstr << std::endl; - if (syncstr == "connection") - ar & *scc_; - if (syncstr == "route") - ar & *src_; - if (syncstr == "rtp") - ar & *srtpc_; -// std::cout << "syncstr done " <<syncstr << std::endl; - } -}; - - -#endif // _SYNCCOMMAND_H |