00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef SEMAINE_CMS_SENDER_BYTESSENDER_H
00011 #define SEMAINE_CMS_SENDER_BYTESSENDER_H
00012
00013
00014 #include <semaine/config.h>
00015
00016 #include <semaine/cms/sender/Sender.h>
00017
00018 using namespace semaine::cms::sender;
00019
00020
00021 namespace semaine {
00022 namespace cms {
00023 namespace sender {
00024
00025 class BytesSender : public Sender
00026 {
00027 public:
00042 BytesSender(const std::string & topicName, const std::string & datatype, const std::string & source)
00043 throw(CMSException, SystemConfigurationException);
00044
00055 BytesSender(const std::string & cmsUrl, const std::string & cmsUser, const std::string & cmsPassword, const std::string & topicName, const std::string & datatype, const std::string & source)
00056 throw (CMSException, SystemConfigurationException);
00057
00058 virtual ~BytesSender();
00059
00087 void sendBytesMessage(const unsigned char * bytes, std::size_t numBytes, long long usertime,
00088 const std::string & event = SEMAINE_CMS_EVENT_SINGLE, const std::string & contentID = "",
00089 long long contentCreationTime = -1, const std::string & contentType = "")
00090 throw(CMSException, SystemConfigurationException);
00091
00092
00093
00094 };
00095
00096 }
00097 }
00098 }
00099
00100 #endif
00101