UDPSocket::Address const & group)
: name (name_), socket (),
event (name, senf::membind(&MCReader::handler, this), socket,
- senf::scheduler::FdEvent::EV_READ)
+ senf::scheduler::FdEvent::EV_READ)
{
socket.protocol().reuseaddr(true);
socket.bind(group);
public:
MCWriter(std::string const & name, UDPSocket::Address const & group,
- senf::ClockService::clock_type interval);
+ senf::ClockService::clock_type interval);
};
prefix_ MCWriter::MCWriter(std::string const & name_, UDPSocket::Address const & group_,
senf::scheduler::SignalEvent sigint (SIGINT, &sigintHandler);
UDPSocket::Address g1 ("225.1:43434");
- UDPSocket::Address g2 ("225.2:43434");
+ UDPSocket::Address g2 ("225.2:43434");
- MCReader r1g1 (1u, "r1g1", g1);
- MCReader r2g1 (2u, "r2g1", g1);
- MCReader r1g2 (3u, "r1g2", g2);
- MCReader r2g2 (4u, "r2g2", g2);
+ MCReader r1g1 (1u, "r1g1", g1);
+ MCReader r2g1 (2u, "r2g1", g1);
+ MCReader r1g2 (3u, "r1g2", g2);
+ MCReader r2g2 (4u, "r2g2", g2);
- MCWriter w1g1 ("w1g1", g1, senf::ClockService::milliseconds(600));
- MCWriter w2g1 ("w2g1", g1, senf::ClockService::milliseconds(800));
- MCWriter w1g2 ("w1g2", g2, senf::ClockService::milliseconds(700));
- MCWriter w2g2 ("w2g2", g2, senf::ClockService::milliseconds(900));
+ MCWriter w1g1 ("w1g1", g1, senf::ClockService::milliseconds(600));
+ MCWriter w2g1 ("w2g1", g1, senf::ClockService::milliseconds(800));
+ MCWriter w1g2 ("w1g2", g2, senf::ClockService::milliseconds(700));
+ MCWriter w2g2 ("w2g2", g2, senf::ClockService::milliseconds(900));
- senf::scheduler::process();
+ senf::scheduler::process();
}
catch (std::exception const & ex) {
- std::cerr << ex.what() << "\n";
- return 1;
+ std::cerr << ex.what() << "\n";
+ return 1;
}
};
/** \file
\brief psi2ts.hh public header */
-#ifndef HH_psi2ts_
-#define HH_psi2ts_ 1
+#ifndef HH_SENF_Examples_psi2tsModule_psi2ts_
+#define HH_SENF_Examples_psi2tsModule_psi2ts_ 1
// Custom includes
#include <senf/PPI/PPI.hh>
/** \file
\brief ActiveFeeder public header */
-#ifndef HH_ActiveFeeder_
-#define HH_ActiveFeeder_ 1
+#ifndef HH_SENF_PPI_ActiveFeeder_
+#define HH_SENF_PPI_ActiveFeeder_ 1
// Custom includes
#include "Module.hh"
/** \file
\brief AnnotationRouter public header */
-#ifndef HH_AnnotationRouter_
-#define HH_AnnotationRouter_ 1
+#ifndef HH_SENF_PPI_AnnotationRouter_
+#define HH_SENF_PPI_AnnotationRouter_ 1
// Custom includes
#include <boost/ptr_container/ptr_map.hpp>
/** \file
\brief CloneSource public header */
-#ifndef HH_CloneSource_
-#define HH_CloneSource_ 1
+#ifndef HH_SENF_PPI_CloneSource_
+#define HH_SENF_PPI_CloneSource_ 1
// Custom includes
#include "../Packets/Packets.hh"
/** \file
\brief Connectors public header */
-#ifndef HH_Connectors_
-#define HH_Connectors_ 1
+#ifndef HH_SENF_PPI_Connectors_
+#define HH_SENF_PPI_Connectors_ 1
// Custom includes
#include <deque>
/** \file
\brief Connectors internal header */
-#ifndef IH_Connectors_
-#define IH_Connectors_ 1
+#ifndef IH_SENF_PPI_Connectors_
+#define IH_SENF_PPI_Connectors_ 1
// Custom includes
/** \file
\brief DebugEvent public header */
-#ifndef HH_DebugEvent_
-#define HH_DebugEvent_ 1
+#ifndef HH_SENF_PPI_DebugEvent_
+#define HH_SENF_PPI_DebugEvent_ 1
// Custom includes
#include "Events.hh"
/** \file
\brief DebugModules public header */
-#ifndef HH_DebugModules_
-#define HH_DebugModules_ 1
+#ifndef HH_SENF_PPI_DebugModules_
+#define HH_SENF_PPI_DebugModules_ 1
// Custom includes
#include <deque>
/** \file
\brief DiscardSink public header */
-#ifndef HH_DiscardSink_
-#define HH_DiscardSink_ 1
+#ifndef HH_SENF_PPI_DiscardSink_
+#define HH_SENF_PPI_DiscardSink_ 1
// Custom includes
#include "Connectors.hh"
/** \file
\brief EventManager public header */
-#ifndef HH_EventManager_
-#define HH_EventManager_ 1
+#ifndef HH_SENF_PPI_EventManager_
+#define HH_SENF_PPI_EventManager_ 1
// Custom includes
#include <boost/ptr_container/ptr_vector.hpp>
/** \file
\brief Events public header */
-#ifndef HH_Events_
-#define HH_Events_ 1
+#ifndef HH_SENF_PPI_Events_
+#define HH_SENF_PPI_Events_ 1
// Custom includes
#include <vector>
/** \file
\brief Events internal header */
-#ifndef IH_Events_
-#define IH_Events_ 1
+#ifndef IH_SENF_PPI_Events_
+#define IH_SENF_PPI_Events_ 1
// Custom includes
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef FORWARDSWITCH_HH_
-#define FORWARDSWITCH_HH_
+#ifndef HH_SENF_PPI_ForwardSwitch_
+#define HH_SENF_PPI_ForwardSwitch_
// Custom includes
#include "Connectors.hh"
}}} //namespaces
#include "ForwardSwitch.cci"
-#endif /*FORWARDSWITCH_HH_*/
+#endif /*HH_SENF_PPI_ForwardSwitch_*/
/** \file
\brief IOEvent public header */
-#ifndef HH_IOEvent_
-#define HH_IOEvent_ 1
+#ifndef HH_SENF_PPI_IOEvent_
+#define HH_SENF_PPI_IOEvent_ 1
// Custom includes
#include "../Scheduler/Scheduler.hh"
/** \file
\brief IdleEvent public header */
-#ifndef HH_IdleEvent_
-#define HH_IdleEvent_ 1
+#ifndef HH_SENF_PPI_IdleEvent_
+#define HH_SENF_PPI_IdleEvent_ 1
// Custom includes
#include "Events.hh"
/** \file
\brief IntervalTimer public header */
-#ifndef HH_IntervalTimer_
-#define HH_IntervalTimer_ 1
+#ifndef HH_SENF_PPI_IntervalTimer_
+#define HH_SENF_PPI_IntervalTimer_ 1
// Custom includes
#include "../Scheduler/ClockService.hh"
/** \file
\brief Joins public header */
-#ifndef HH_Joins_
-#define HH_Joins_ 1
+#ifndef HH_SENF_PPI_Joins_
+#define HH_SENF_PPI_Joins_ 1
// Custom includes
#include <boost/ptr_container/ptr_vector.hpp>
\brief Module public header
*/
-#ifndef HH_Module_
-#define HH_Module_ 1
+#ifndef HH_SENF_PPI_Module_
+#define HH_SENF_PPI_Module_ 1
// Custom includes
#include <vector>
/** \file
\brief Module internal header */
-#ifndef IH_Module_
-#define IH_Module_ 1
+#ifndef IH_SENF_PPI_Module_
+#define IH_SENF_PPI_Module_ 1
// Custom includes
/** \file
\brief ModuleManager public header */
-#ifndef HH_ModuleManager_
-#define HH_ModuleManager_ 1
+#ifndef HH_SENF_PPI_ModuleManager_
+#define HH_SENF_PPI_ModuleManager_ 1
// Custom includes
#include <vector>
/** \file
\brief PPI public header */
-#ifndef HH_PPI_
-#define HH_PPI_ 1
+#ifndef HH_SENF_PPI_PPI_
+#define HH_SENF_PPI_PPI_ 1
#include "all_includes.hh"
/** \file
\brief PassiveQueue public header */
-#ifndef HH_PassiveQueue_
-#define HH_PassiveQueue_ 1
+#ifndef HH_SENF_PPI_PassiveQueue_
+#define HH_SENF_PPI_PassiveQueue_ 1
// Custom includes
#include "Connectors.hh"
/** \file
\brief Queueing public header */
-#ifndef HH_Queueing_
-#define HH_Queueing_ 1
+#ifndef HH_SENF_PPI_Queueing_
+#define HH_SENF_PPI_Queueing_ 1
// Custom includes
#include "predecl.hh"
// along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef RATEFILTER_HH_
-#define RATEFILTER_HH_
+#ifndef HH_SENF_PPI_RateFilter_
+#define HH_SENF_PPI_RateFilter_
// Custom includes
#include "Connectors.hh"
}}} //namespaces
-#endif /*RATEFILTER_HH_*/
+#endif /*HH_SENF_PPI_RateFilter_*/
/** \file
\brief Route public header */
-#ifndef HH_Route_
-#define HH_Route_ 1
+#ifndef HH_SENF_PPI_Route_
+#define HH_SENF_PPI_Route_ 1
// Custom includes
#include <boost/type_traits.hpp>
/** \file
\brief Route internal header */
-#ifndef IH_Route_
-#define IH_Route_ 1
+#ifndef IH_SENF_PPI_Route_
+#define IH_SENF_PPI_Route_ 1
// Custom includes
#include <boost/type_traits/is_convertible.hpp>
/** \file
\brief Setup public header */
-#ifndef HH_Setup_
-#define HH_Setup_ 1
+#ifndef HH_SENF_PPI_Setup_
+#define HH_SENF_PPI_Setup_ 1
// Custom includes
#include <boost/type_traits.hpp>
/** \file
\brief SocketSink public header */
-#ifndef HH_SocketSink_
-#define HH_SocketSink_ 1
+#ifndef HH_SENF_PPI_SocketSink_
+#define HH_SENF_PPI_SocketSink_ 1
// Custom includes
#include "../Packets/Packets.hh"
/** \file
\brief SocketSource public header */
-#ifndef HH_SocketSource_
-#define HH_SocketSource_ 1
+#ifndef HH_SENF_PPI_SocketSource_
+#define HH_SENF_PPI_SocketSource_ 1
// Custom includes
#include "../Packets/Packets.hh"
/** \file
\brief ThrottleBarrier public header */
-#ifndef HH_ThrottleBarrier_
-#define HH_ThrottleBarrier_ 1
+#ifndef HH_SENF_PPI_ThrottleBarrier_
+#define HH_SENF_PPI_ThrottleBarrier_ 1
// Custom includes
#include "Connectors.hh"
/** \file
\brief Callback public header */
-#ifndef HH_Callback_
-#define HH_Callback_ 1
+#ifndef HH_SENF_PPI_detail_Callback_
+#define HH_SENF_PPI_detail_Callback_ 1
// Custom includes
#include <boost/function.hpp>
/** \file
\brief EventBinding public header */
-#ifndef HH_EventBinding_
-#define HH_EventBinding_ 1
+#ifndef HH_SENF_PPI_detail_EventBinding_
+#define HH_SENF_PPI_detail_EventBinding_ 1
// Custom includes
#include "../../Scheduler/ClockService.hh"
/** \file
\brief predecl public header */
-#ifndef HH_predecl_
-#define HH_predecl_ 1
+#ifndef HH_SENF_PPI_predecl_
+#define HH_SENF_PPI_predecl_ 1
// Custom includes
/** \file
\brief ArrayParser public header */
-#ifndef HH_ArrayParser_
-#define HH_ArrayParser_ 1
+#ifndef HH_SENF_Packets_ArrayParser_
+#define HH_SENF_Packets_ArrayParser_ 1
/** \defgroup parsecollection Collection parsers
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_ArrayParser_i_)
-#define HH_ArrayParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_ArrayParser_i_)
+#define HH_SENF_Packets_ArrayParser_i_
//#include "ArrayParser.cci"
#include "ArrayParser.ct"
#include "ArrayParser.cti"
/** \file
\brief ArrayParser internal header */
-#ifndef IH_ArrayParser_
-#define IH_ArrayParser_ 1
+#ifndef IH_SENF_Packets_ArrayParser_
+#define IH_SENF_Packets_ArrayParser_ 1
// Custom includes
#include <boost/iterator/iterator_facade.hpp>
/** \file
\brief AuxParser public header */
-#ifndef HH_AuxParser_
-#define HH_AuxParser_ 1
+#ifndef HH_SENF_Packets_AuxParser_
+#define HH_SENF_Packets_AuxParser_ 1
-#ifndef HH_Packets_
+#ifndef HH_SENF_Packets_Packets_
#error "Don't include 'AuxParser.hh' directly, include 'Packets.hh'"
#endif
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_AuxParser_i_)
-#define HH_AuxParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_AuxParser_i_)
+#define HH_SENF_Packets_AuxParser_i_
//#include "AuxParser.cci"
//#include "AuxParser.ct"
#include "AuxParser.cti"
/** \file
\brief DataPacket public header */
-#ifndef HH_DataPacket_
-#define HH_DataPacket_ 1
+#ifndef HH_SENF_Packets_DataPacket_
+#define HH_SENF_Packets_DataPacket_ 1
// Custom includes
#include "PacketType.hh"
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_DataPacket_impl_)
-#define HH_DataPacket_impl_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_DataPacket_impl_)
+#define HH_SENF_Packets_DataPacket_impl_
//#include "DataPacket.cci"
//#include "DataPacket.ct"
//#include "DataPacket.cti"
/** \file
\brief EthernetPacket public header */
-#ifndef HH_EthernetPacket_
-#define HH_EthernetPacket_ 1
+#ifndef HH_SENF_Packets_DefaultBundle_EthernetPacket_
+#define HH_SENF_Packets_DefaultBundle_EthernetPacket_ 1
// Custom includes
#include <algorithm>
/** \file
\brief IPv4Packet public header */
-#ifndef HH_IPv4Packet_
-#define HH_IPv4Packet_ 1
+#ifndef HH_SENF_Packets_DefaultBundle_IPv4Packet_
+#define HH_SENF_Packets_DefaultBundle_IPv4Packet_ 1
// Custom includes
#include "../../Socket/Protocols/INet/INet4Address.hh"
/** \file
\brief IPv6Extensions public header */
-#ifndef HH_IPv6Extensions_
-#define HH_IPv6Extensions_ 1
+#ifndef HH_SENF_Packets_DefaultBundle_IPv6Extensions_
+#define HH_SENF_Packets_DefaultBundle_IPv6Extensions_ 1
// Custom includes
#include "IPv6Packet.hh"
/** \file
\brief IPv6Packet public header */
-#ifndef HH_IPv6Packet_
-#define HH_IPv6Packet_ 1
+#ifndef HH_SENF_Packets_DefaultBundle_IPv6Packet_
+#define HH_SENF_Packets_DefaultBundle_IPv6Packet_ 1
// Custom includes
#include "../../Socket/Protocols/INet/INet6Address.hh"
/** \file
\brief LLC/SNAP public header */
-#ifndef HH_LlcSnapPacket_
-#define HH_LlcSnapPacket_ 1
+#ifndef HH_SENF_Packets_DefaultBundle_LlcSnapPacket_
+#define HH_SENF_Packets_DefaultBundle_LlcSnapPacket_ 1
// Custom includes
#include <algorithm>
// Definition of non-inline non-template functions
// Custom includes
-#ifndef RTPPACKET_HH_
-#define RTPPACKET_HH_
+#ifndef HH_SENF_Packets_DefaultBundle_RTPPacket_
+#define HH_SENF_Packets_DefaultBundle_RTPPacket_
#include "../../Packets/Packets.hh"
#include "../../Socket/Protocols/INet/INet6Address.hh"
/** \file
\brief UDPPacket public header */
-#ifndef HH_UDPPacket_
-#define HH_UDPPacket_ 1
+#ifndef HH_SENF_Packets_DefaultBundle_UDPPacket_
+#define HH_SENF_Packets_DefaultBundle_UDPPacket_ 1
// Custom includes
#include "../../Packets/Packets.hh"
/** \file
\brief IntParser public header */
-#ifndef HH_IntParser_
-#define HH_IntParser_ 1
+#ifndef HH_SENF_Packets_IntParser_
+#define HH_SENF_Packets_IntParser_ 1
// Custom includes
#include <iostream>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_IntParser_i_)
-#define HH_IntParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_IntParser_i_)
+#define HH_SENF_Packets_IntParser_i_
//#include "IntParser.cci"
//#include "IntParser.ct"
//#include "IntParser.cti"
/** \file
\brief IntParser internal header */
-#ifndef IH_IntParser_
-#define IH_IntParser_ 1
+#ifndef IH_SENF_Packets_IntParser_
+#define IH_SENF_Packets_IntParser_ 1
// Custom includes
#include "PacketTypes.hh"
/** \file
\brief ListBParser public header */
-#ifndef HH_ListBParser_
-#define HH_ListBParser_ 1
+#ifndef HH_SENF_Packets_ListBParser_
+#define HH_SENF_Packets_ListBParser_ 1
// Custom includes
#include "ListParser.hh"
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_ListBParser_i_)
-#define HH_ListBParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_ListBParser_i_)
+#define HH_SENF_Packets_ListBParser_i_
//#include "ListBParser.cci"
//#include "ListBParser.ct"
#include "ListBParser.cti"
/** \file
\brief ListBParser internal header */
-#ifndef IH_ListBParser_
-#define IH_ListBParser_ 1
+#ifndef IH_SENF_Packets_ListBParser_
+#define IH_SENF_Packets_ListBParser_ 1
// Custom includes
#include "ListParser.ih"
/** \file
\brief ListNParser public header */
-#ifndef HH_ListNParser_
-#define HH_ListNParser_ 1
+#ifndef HH_SENF_Packets_ListNParser_
+#define HH_SENF_Packets_ListNParser_ 1
// Custom includes
#include "ListParser.hh"
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_ListNParser_i_)
-#define HH_ListNParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_ListNParser_i_)
+#define HH_SENF_Packets_ListNParser_i_
//#include "ListNParser.cci"
#include "ListNParser.ct"
#include "ListNParser.cti"
/** \file
\brief ListNParser internal header */
-#ifndef IH_ListNParser_
-#define IH_ListNParser_ 1
+#ifndef IH_SENF_Packets_ListNParser_
+#define IH_SENF_Packets_ListNParser_ 1
// Custom includes
#include "ListParser.ih"
/** \file
\brief ListParser public header */
-#ifndef HH_ListParser_
-#define HH_ListParser_ 1
+#ifndef HH_SENF_Packets_ListParser_
+#define HH_SENF_Packets_ListParser_ 1
// Custom includes
#include <boost/utility.hpp>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_ListParser_i_)
-#define HH_ListParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_ListParser_i_)
+#define HH_SENF_Packets_ListParser_i_
//#include "ListParser.cci"
#include "ListParser.ct"
#include "ListParser.cti"
/** \file
\brief ListParser internal header */
-#ifndef IH_ListParser_
-#define IH_ListParser_ 1
+#ifndef IH_SENF_Packets_ListParser_
+#define IH_SENF_Packets_ListParser_ 1
// Custom includes
#include <boost/iterator/iterator_facade.hpp>
/** \file
\brief DTCPPacket public header */
-#ifndef HH_DTCPPacket_
-#define HH_DTCPPacket_ 1
+#ifndef HH_SENF_Packets_MPEGDVBBundle_DTCPPacket_
+#define HH_SENF_Packets_MPEGDVBBundle_DTCPPacket_ 1
// Custom includes
#include "../../Packets/Packets.hh"
/** \file
\brief MPESection public header */
-#ifndef HH_MPESection_
-#define HH_MPESection_ 1
+#ifndef HH_SENF_Packets_MPEGDVBBundle_MPESection_
+#define HH_SENF_Packets_MPEGDVBBundle_MPESection_ 1
// Custom includes
#include <boost/crc.hpp>
/** \file
\brief SNDUPacket public header */
-#ifndef HH_SNDUPacket_
-#define HH_SNDUPacket_ 1
+#ifndef HH_SENF_Packets_MPEGDVBBundle_SNDUPacket_
+#define HH_SENF_Packets_MPEGDVBBundle_SNDUPacket_ 1
// Custom includes
#include <algorithm>
/** \file
\brief TLVPacket public header */
-#ifndef HH_TLVPacket_
-#define HH_TLVPacket_ 1
+#ifndef HH_SENF_Packets_MPEGDVBBundle_TLVPacket_
+#define HH_SENF_Packets_MPEGDVBBundle_TLVPacket_ 1
// Custom includes
#include <algorithm>
/** \file
\brief TransportPacket public header */
-#ifndef HH_TransportPacket_
-#define HH_TransportPacket_ 1
+#ifndef HH_SENF_Packets_MPEGDVBBundle_TransportPacket_
+#define HH_SENF_Packets_MPEGDVBBundle_TransportPacket_ 1
// Custom includes
#include "../../Packets/Packets.hh"
/** \file
\brief Packet public header */
-#ifndef HH_Packet_
-#define HH_Packet_ 1
+#ifndef HH_SENF_Packets_Packet_
+#define HH_SENF_Packets_Packet_ 1
// Custom includes
#include <boost/operators.hpp>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_Packet_i_)
-#define HH_Packet_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_Packet_i_)
+#define HH_SENF_Packets_Packet_i_
#include "Packet.cci"
#include "Packet.ct"
#include "Packet.cti"
/** \file
\brief PacketData public header */
-#ifndef HH_PacketData_
-#define HH_PacketData_ 1
+#ifndef HH_SENF_Packets_PacketData_
+#define HH_SENF_Packets_PacketData_ 1
// Custom includes
#include <boost/utility.hpp>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_PacketData_i_)
-#define HH_PacketData_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketData_i_)
+#define HH_SENF_Packets_PacketData_i_
#include "PacketData.cci"
//#include "PacketData.ct"
#include "PacketData.cti"
/** \file
\brief PacketImpl public header */
-#ifndef HH_PacketImpl_
-#define HH_PacketImpl_ 1
+#ifndef HH_SENF_Packets_PacketImpl_
+#define HH_SENF_Packets_PacketImpl_ 1
// Custom includes
#include <memory>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_PacketImpl_i_)
-#define HH_PacketImpl_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketImpl_i_)
+#define HH_SENF_Packets_PacketImpl_i_
#include "PacketImpl.cci"
//#include "PacketImpl.ct"
#include "PacketImpl.cti"
/** \file
\brief PacketInterpreter public header */
-#ifndef HH_PacketInterpreter_
-#define HH_PacketInterpreter_ 1
+#ifndef HH_SENF_Packets_PacketInterpreter_
+#define HH_SENF_Packets_PacketInterpreter_ 1
// Custom includes
#include "../boost/intrusive/ilist.hpp"
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_PacketInterpreter_i_)
-#define HH_PacketInterpreter_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketInterpreter_i_)
+#define HH_SENF_Packets_PacketInterpreter_i_
#include "PacketInterpreter.cci"
#include "PacketInterpreter.ct"
#include "PacketInterpreter.cti"
<hr>
*/
-#ifndef HH_PacketParser_
-#define HH_PacketParser_ 1
+#ifndef HH_SENF_Packets_PacketParser_
+#define HH_SENF_Packets_PacketParser_ 1
// Custom includes
#include <boost/utility/enable_if.hpp>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_PacketParser_i_)
-#define HH_PacketParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketParser_i_)
+#define HH_SENF_Packets_PacketParser_i_
#include "PacketParser.cci"
#include "PacketParser.ct"
#include "PacketParser.cti"
/** \file
\brief PacketParser internal header */
-#ifndef IH_PacketParser_
-#define IH_PacketParser_ 1
+#ifndef IH_SENF_Packets_PacketParser_
+#define IH_SENF_Packets_PacketParser_ 1
// Custom includes
#include "../Utils/mpl.hh"
/** \file
\brief PacketRegistry public header */
-#ifndef HH_PacketRegistryImpl_
-#define HH_PacketRegistryImpl_ 1
+#ifndef HH_SENF_Packets_PacketRegistry_
+#define HH_SENF_Packets_PacketRegistry_ 1
// Custom includes
#include <map>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_PacketRegistryImpl_i_)
-#define HH_PacketRegistryImpl_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketRegistry_i_)
+#define HH_SENF_Packets_PacketRegistry_i_
#include "PacketRegistry.cci"
#include "PacketRegistry.ct"
#include "PacketRegistry.cti"
/** \file
\brief PacketRegistry internal header */
-#ifndef IH_PacketRegistryImpl_
-#define IH_PacketRegistryImpl_ 1
+#ifndef IH_SENF_Packets_PacketRegistry_
+#define IH_SENF_Packets_PacketRegistry_ 1
// Custom includes
#include <ext/functional>
/** \file
\brief PacketType public header */
-#ifndef HH_PacketType_
-#define HH_PacketType_ 1
+#ifndef HH_SENF_Packets_PacketType_
+#define HH_SENF_Packets_PacketType_ 1
// Custom includes
#include <iostream>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_PacketType_i_)
-#define HH_PacketType_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketType_i_)
+#define HH_SENF_Packets_PacketType_i_
#include "PacketType.cci"
#include "PacketType.ct"
#include "PacketType.cti"
/** \file
\brief PacketTypes public header */
-#ifndef HH_PacketTypes_
-#define HH_PacketTypes_ 1
+#ifndef HH_SENF_Packets_PacketTypes_
+#define HH_SENF_Packets_PacketTypes_ 1
// Custom includes
#include <vector>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_PacketTypes_i_)
-#define HH_PacketTypes_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketTypes_i_)
+#define HH_SENF_Packets_PacketTypes_i_
//#include "PacketTypes.cci"
//#include "PacketTypes.ct"
//#include "PacketTypes.cti"
/** \file
\brief Packets public header */
-#ifndef HH_Packets_
-#define HH_Packets_ 1
+#ifndef HH_SENF_Packets_Packets_
+#define HH_SENF_Packets_Packets_ 1
-#define HH_Packets__decls_
+#define HH_SENF_Packets_Packets__decls_
#include "PacketTypes.hh"
#include "PacketImpl.hh"
#include "ParseHelpers.hh"
#include "DataPacket.hh"
-#undef HH_Packets__decls_
+#undef HH_SENF_Packets_Packets__decls_
#include "PacketTypes.hh"
#include "PacketImpl.hh"
/** \file
\brief ParseHelpers public header */
-#ifndef HH_ParseHelpers_
-#define HH_ParseHelpers_ 1
+#ifndef HH_SENF_Packets_ParseHelpers_
+#define HH_SENF_Packets_ParseHelpers_ 1
-#ifndef HH_Packets_
+#ifndef HH_SENF_Packets_Packets_
#error "Don't include 'ParseHelpers.hh' directly, include 'Packets.hh'"
#endif
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_ParseHelpers_i_)
-#define HH_ParseHelpers_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_ParseHelpers_i_)
+#define HH_SENF_Packets_ParseHelpers_i_
//#include "ParseHelpers.cci"
//#include "ParseHelpers.ct"
//#include "ParseHelpers.cti"
template <class T> T BOOST_PP_CAT(name, _dispatch)(boost::true_type) const \
{ return parse<T>( SENF_PARSER_OFFSET(name) ); } \
template <class T> T BOOST_PP_CAT(name, _dispatch)(boost::false_type) const \
- { return parse<T>( BOOST_PP_CAT(aux,_)(), SENF_PARSER_OFFSET(name) ); } \
+ { return parse<T>( BOOST_PP_CAT(aux,_)(), SENF_PARSER_OFFSET(name) ); } \
BOOST_PP_CAT(name, _t) BOOST_PP_CAT(name, _)() const \
{ return BOOST_PP_CAT(name, _dispatch) <BOOST_PP_CAT(name, _t)>( \
boost::integral_constant<bool, BOOST_PP_CAT(name, _aux_fixed)>()); } \
}
template <class Parser>
-prefix_ Parser senf::SafePacketParserWrapper<Parser>::operator*()
+prefix_ Parser & senf::SafePacketParserWrapper<Parser>::operator*()
const
{
SENF_ASSERT( i_ );
}
template <class Parser>
-prefix_ Parser const * senf::SafePacketParserWrapper<Parser>::operator->()
+prefix_ Parser * senf::SafePacketParserWrapper<Parser>::operator->()
const
{
SENF_ASSERT( i_ );
/** \file
\brief SafeIterator public header */
-#ifndef HH_SafeIterator_
-#define HH_SafeIterator_ 1
+#ifndef HH_SENF_Packets_SafeIterator_
+#define HH_SENF_Packets_SafeIterator_ 1
-#ifndef HH_Packets_
+#ifndef HH_SENF_Packets_Packets_
#error "Don't include 'SafeIterator.hh' directly, include 'Packets.hh'"
#endif
///@}
///////////////////////////////////////////////////////////////////////////
- Parser operator*() const; ///< Access the stored parser
+ Parser & operator*() const; ///< Access the stored parser
/**< On every access, the stored parsers iterator will be
updated / re-validated. */
- Parser const * operator->() const; ///< Access the stored parser
+ Parser * operator->() const; ///< Access the stored parser
/**< On every access, the stored parsers iterator will be
updated / re-validated. */
bool boolean_test() const; ///< Check validity
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_SafeIterator_i_)
-#define HH_SafeIterator_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_SafeIterator_i_)
+#define HH_SENF_Packets_SafeIterator_i_
#include "SafeIterator.cci"
//#include "SafeIterator.ct"
#include "SafeIterator.cti"
std::advance(j, oldSize);
std::fill(i(), j, 0u);
safe_data_iterator safe_i (*this);
+ typename AuxPolicy::WrapperPolicy safeAux (static_cast<AuxPolicy&>(*this));
data().insert(j, senf::init_bytes<NewParser>::value - oldSize, 0u);
- AuxPolicy::aux(N, safe_i, state());
- NewParser( AuxPolicy::adjust(safe_i, state()), state() ).init();
+ safeAux.aux(N, safe_i, state());
+ NewParser( safeAux.adjust(safe_i, state()), state() ).init();
} else {
data_iterator j (i());
std::advance(j, senf::init_bytes<NewParser>::value);
/** \file
\brief VariantParser public header */
-#ifndef HH_VariantParser_
-#define HH_VariantParser_ 1
+#ifndef HH_SENF_Packets_VariantParser_
+#define HH_SENF_Packets_VariantParser_ 1
-#ifndef HH_Packets_
+#ifndef HH_SENF_Packets_Packets_
#error "Don't include 'VariantParser.hh' directly, include 'Packets.hh'"
#endif
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_VariantParser_i_)
-#define HH_VariantParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_VariantParser_i_)
+#define HH_SENF_Packets_VariantParser_i_
//#include "VariantParser.cci"
#include "VariantParser.ct"
#include "VariantParser.cti"
/** \file
\brief VariantParser internal header */
-#ifndef IH_VariantParser_
-#define IH_VariantParser_ 1
+#ifndef IH_SENF_Packets_VariantParser_
+#define IH_SENF_Packets_VariantParser_ 1
// Custom includes
#include "PacketParser.hh"
{
# include SENF_PARSER()
- SENF_PARSER_SKIP_BITS( 4 );
+ SENF_PARSER_BITFIELD_RO( len, 4, unsigned );
SENF_PARSER_BITFIELD_RO( type, 4, unsigned );
+ // just here so the second variant is 'var'
+ SENF_PARSER_VARIANT( value, len,
+ (senf::VoidPacketParser)
+ (senf::UInt8Parser)
+ (senf::UInt16Parser)
+ (senf::UInt32Parser)
+ );
SENF_PARSER_VARIANT( content_, type,
- ( novalue( nocontent, key(10, senf::VoidPacketParser)) )
- ( id( content, SubParser ) )
+ ( novalue( nocontent, key(10, senf::VoidPacketParser) ) )
+ ( id( content, SubParser ) )
);
SENF_PARSER_FINALIZE(TestParser);
/** \file
\brief VectorParser public header */
-#ifndef HH_VectorParser_
-#define HH_VectorParser_ 1
+#ifndef HH_SENF_Packets_VectorParser_
+#define HH_SENF_Packets_VectorParser_ 1
// Custom includes
#include <boost/iterator/iterator_facade.hpp>
///////////////////////////////hh.e////////////////////////////////////////
#endif
-#if !defined(HH_Packets__decls_) && !defined(HH_VectorParser_i_)
-#define HH_VectorParser_i_
+#if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_VectorParser_i_)
+#define HH_SENF_Packets_VectorParser_i_
//#include "VectorParser.cci"
#include "VectorParser.ct"
#include "VectorParser.cti"
/** \file
\brief VectorParser internal header */
-#ifndef IH_VectorParser_
-#define IH_VectorParser_ 1
+#ifndef IH_SENF_Packets_VectorParser_
+#define IH_SENF_Packets_VectorParser_ 1
// Custom includes
/** \file
\brief main.test public header */
-#ifndef HH_main_test_
-#define HH_main_test_ 1
+#ifndef HH_SENF_Packets_main_test_
+#define HH_SENF_PAckets_main_test_ 1
// Custom includes
/** \file
\brief ClockService public header */
-#ifndef HH_ClockService_
-#define HH_ClockService_ 1
+#ifndef HH_SENF_Scheduler_ClockService_
+#define HH_SENF_Scheduler_ClockService_ 1
// Custom includes
#include <sys/time.h>
/** \file
\brief Config public header */
-#ifndef HH_Console_Config_
-#define HH_Console_Config_ 1
+#ifndef HH_SENF_Scheduler_Console_Config_
+#define HH_SENF_Scheduler_Console_Config_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief Config internal header */
-#ifndef IH_Console_Config_
-#define IH_Console_Config_ 1
+#ifndef IH_SENF_Scheduler_Console_Config_
+#define IH_SENF_Scheduler_Console_Config_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief ConfigFile public header */
-#ifndef HH_ConfigFile_
-#define HH_ConfigFile_ 1
+#ifndef HH_SENF_Scheduler_Console_ConfigFile_
+#define HH_SENF_Scheduler_Console_ConfigFile_ 1
// Custom includes
#include "Config.hh"
/** \file
\brief ConfigFile internal header */
-#ifndef IH_ConfigFile_
-#define IH_ConfigFile_ 1
+#ifndef IH_SENF_Scheduler_Console_ConfigFile_
+#define IH_SENF_Scheduler_Console_ConfigFile_ 1
// Custom includes
/** \file
\brief Console public header */
-#ifndef HH_Console_
-#define HH_Console_ 1
+#ifndef HH_SENF_Scheduler_Console_Console_
+#define HH_SENF_Scheduler_Console_Console_ 1
// Custom includes
/** \file
\brief Executor public header */
-#ifndef HH_Executor_
-#define HH_Executor_ 1
+#ifndef HH_SENF_Scheduler_Console_Executor_
+#define HH_SENF_Scheduler_Console_Executor_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief LazyDirectory public header */
-#ifndef HH_LazyDirectory_
-#define HH_LazyDirectory_ 1
+#ifndef HH_SENF_Scheduler_Console_LazyDirectory_
+#define HH_SENF_Scheduler_Console_LazyDirectory_ 1
// Custom includes
#include <boost/utility.hpp>
class to add the node to the tree.
*/
-#ifndef HH_Node_
-#define HH_Node_ 1
+#ifndef HH_SENF_Scheduler_Console_Node_
+#define HH_SENF_Scheduler_Console_Node_ 1
// Custom includes
#include <map>
/** \file
\brief Node internal header */
-#ifndef IH_Node_
-#define IH_Node_ 1
+#ifndef IH_SENF_Scheduler_Console_Node_
+#define IH_SENF_Scheduler_Console_Node_ 1
// Custom includes
/** \file
\brief OverloadedCommand public header */
-#ifndef HH_OverloadedCommand_
-#define HH_OverloadedCommand_ 1
+#ifndef HH_SENF_Scheduler_Console_OverloadedCommand_
+#define HH_SENF_Scheduler_Console_OverloadedCommand_ 1
// Custom includes
#include "Node.hh"
/** \file
\brief Parse public header */
-#ifndef HH_Parse_
-#define HH_Parse_ 1
+#ifndef HH_SENF_Scheduler_Console_Parse_
+#define HH_SENF_Scheduler_Console_Parse_ 1
/** \defgroup console_parser The parser
/** \file
\brief Parse internal header */
-#ifndef IH_Parse_
-#define IH_Parse_ 1
+#ifndef IH_SENF_Scheduler_Console_Parse_
+#define IH_SENF_Scheduler_Console_Parse_ 1
// Custom includes
#include <vector>
/** \file
\brief ParsedCommand public header */
-#ifndef HH_ParsedCommand_
-#define HH_ParsedCommand_ 1
+#ifndef HH_SENF_Scheduler_Console_ParsedCommand_
+#define HH_SENF_Scheduler_Console_ParsedCommand_ 1
// Custom includes
/** \file
\brief ParsedCommand internal header */
-#ifndef IH_ParsedCommand_
-#define IH_ParsedCommand_ 1
+#ifndef IH_SENF_Scheduler_Console_ParsedCommand_
+#define IH_SENF_Scheduler_Console_ParsedCommand_ 1
// Custom includes
#include <boost/function.hpp>
/** \file
\brief ProgramOptions public header */
-#ifndef HH_ProgramOptions_
-#define HH_ProgramOptions_ 1
+#ifndef HH_SENF_Scheduler_Console_ProgramOptions_
+#define HH_SENF_Scheduler_Console_ProgramOptions_ 1
// Custom includes
#include "Config.hh"
/** \file
\brief ProgramOptions internal header */
-#ifndef IH_ProgramOptions_
-#define IH_ProgramOptions_ 1
+#ifndef IH_SENF_Scheduler_Console_ProgramOptions_
+#define IH_SENF_Scheduler_Console_ProgramOptions_ 1
// Custom includes
#include <boost/scoped_ptr.hpp>
/** \file
\brief Readline public header */
-#ifndef HH_Readline_
-#define HH_Readline_ 1
+#ifndef HH_SENF_Scheduler_Console_Readline_
+#define HH_SENF_Scheduler_Console_Readline_ 1
// Custom includes
#include <boost/scoped_ptr.hpp>
/** \file
\brief ScopedDirectory public header */
-#ifndef HH_ScopedDirectory_
-#define HH_ScopedDirectory_ 1
+#ifndef HH_SENF_Scheduler_Console_ScopedDirectory_
+#define HH_SENF_Scheduler_Console_ScopedDirectory_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief Server public header */
-#ifndef HH_Server_
-#define HH_Server_ 1
+#ifndef HH_SENF_Scheduler_Console_Server_
+#define HH_SENF_Scheduler_Console_Server_ 1
// Custom includes
#include <set>
/** \file
\brief Server internal header */
-#ifndef IH_Server_
-#define IH_Server_ 1
+#ifndef IH_SENF_Scheduler_Console_Server_
+#define IH_SENF_Scheduler_Console_Server_ 1
// Custom includes
#include <boost/iostreams/concepts.hpp>
/** \file
\brief Sysdir public header */
-#ifndef HH_Sysdir_
-#define HH_Sysdir_ 1
+#ifndef HH_SENF_Scheduler_Console_Sysdir_
+#define HH_SENF_Scheduler_Console_Sysdir_ 1
// Custom includes
#include "Node.hh"
/** \file
\brief Sysdir internal header */
-#ifndef IH_Sysdir_
-#define IH_Sysdir_ 1
+#ifndef IH_SENF_Scheduler_Console_Sysdir_
+#define IH_SENF_Scheduler_Console_Sysdir_ 1
// Custom includes
/** \file
\brief Traits public header */
-#ifndef HH_Traits_
-#define HH_Traits_ 1
+#ifndef HH_SENF_Scheduler_Console_Traits_
+#define HH_SENF_Scheduler_Console_Traits_ 1
// Custom includes
#include <iostream>
/** \file
\brief Traits internal header */
-#ifndef IH_Traits_
-#define IH_Traits_ 1
+#ifndef IH_SENF_Scheduler_Console_Traits_
+#define IH_SENF_Scheduler_Console_Traits_ 1
// Custom includes
#include <string>
/** \file
\brief Variables public header */
-#ifndef HH_Variables_
-#define HH_Variables_ 1
+#ifndef HH_SENF_Scheduler_Console_Variables_
+#define HH_SENF_Scheduler_Console_Variables_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief Variables internal header */
-#ifndef IH_Variables_
-#define IH_Variables_ 1
+#ifndef IH_SENF_Scheduler_Console_Variables_
+#define IH_SENF_Scheduler_Console_Variables_ 1
// Custom includes
#include <boost/function.hpp>
/** \file
\brief EventHook public header */
-#ifndef HH_EventHook_
-#define HH_EventHook_ 1
+#ifndef HH_SENF_Scheduler_EventHook_
+#define HH_SENF_Scheduler_EventHook_ 1
// Custom includes
#include <boost/function.hpp>
/** \file
\brief EventHook internal header */
-#ifndef IH_EventHook_
-#define IH_EventHook_ 1
+#ifndef IH_SENF_Scheduler_EventHook_
+#define IH_SENF_Scheduler_EventHook_ 1
// Custom includes
#include "../Utils/singleton.hh"
/** \file
\brief EventManager public header */
-#ifndef HH_SchedulerEventManager_
-#define HH_SchedulerEventManager_ 1
+#ifndef HH_SENF_Scheduler_EventManager_
+#define HH_SENF_Scheduler_EventManager_ 1
// Custom includes
#include <string>
/** \file
\brief FIFORunner public header */
-#ifndef HH_FIFORunner_
-#define HH_FIFORunner_ 1
+#ifndef HH_SENF_Scheduler_FIFORunner_
+#define HH_SENF_Scheduler_FIFORunner_ 1
// Custom includes
#include <signal.h>
std::pair<FdSet::iterator,FdSet::iterator> range (fds_.equal_range(event));
int events (0);
for (FdSet::iterator i (range.first); i != range.second; ++i)
- events |= i->events_;
+ events |= i->events_;
if (event.events_ & events)
- throw FdEvent::DuplicateEventRegistrationException();
+ throw FdEvent::DuplicateEventRegistrationException();
if (! detail::FdManager::instance().set(event.fd_, events | event.events_, &event))
return false;
std::pair<FdSet::iterator,FdSet::iterator> range (fds_.equal_range(event));
if (range.first == range.second)
- detail::FdManager::instance().remove(event.fd_);
+ detail::FdManager::instance().remove(event.fd_);
else {
int events (0);
for (FdSet::iterator i (range.first); i != range.second; ++i)
events |= i->events_;
- detail::FdManager::instance().set(event.fd_, events, &(*range.first));
+ detail::FdManager::instance().set(event.fd_, events, &(*range.first));
}
}
std::pair<FdSet::iterator,FdSet::iterator> range (fds_.equal_range(event));
int events (0);
for (FdSet::iterator i (range.first); i != range.second; ++i)
- events |= i->events_;
+ events |= i->events_;
if (event.events_ & events)
- throw FdEvent::DuplicateEventRegistrationException();
+ throw FdEvent::DuplicateEventRegistrationException();
detail::FIFORunner::instance().enqueue(&event);
fds_.insert(range.first, event);
disable();
events_ = events;
if (en)
- enabled();
+ enabled();
return *this;
}
detail::FdDispatcher::FdSet::iterator const i_end (detail::FdDispatcher::instance().fds_.end());
bool all ((events & (EV_ERR | EV_HUP)) && ! (events & (EV_READ | EV_PRIO | EV_WRITE)));
for (; i != i_end && fd_ == i->fd_; ++i) {
- i->signaledEvents_ = events;
- if (i->events_ & events || all)
- i->setRunnable();
+ i->signaledEvents_ = events;
+ if (i->events_ & events || all)
+ i->setRunnable();
}
}
prefix_ senf::scheduler::FdEvent::~FdEvent()
{
if (detail::FdDispatcher::alive())
- disable();
+ disable();
}
prefix_ senf::scheduler::FdEvent & senf::scheduler::FdEvent::action(Callback const & cb)
pollable_ (true), events_ (events)
{
if (initiallyEnabled)
- enable();
+ enable();
}
///////////////////////////////////////////////////////////////////////////
/** \file
\brief FdDispatcher public header */
-#ifndef HH_FdDispatcher_
-#define HH_FdDispatcher_ 1
+#ifndef HH_SENF_Scheduler_FdEvent_
+#define HH_SENF_Scheduler_FdEvent_ 1
// Custom includes
#include "../boost/intrusive/iset_hook.hpp"
namespace scheduler {
namespace detail {
- struct FdSetTag;
- typedef boost::intrusive::iset_base_hook<FdSetTag> FdSetBase;
+ struct FdSetTag;
+ typedef boost::intrusive::iset_base_hook<FdSetTag> FdSetBase;
struct FdSetCompare;
struct FindFd;
class FdDispatcher;
member function it should be defined as a class member).
*/
class FdEvent
- : public detail::FIFORunner::TaskInfo,
- public detail::FdSetBase,
- public detail::FdManager::Event
+ : public detail::FIFORunner::TaskInfo,
+ public detail::FdSetBase,
+ public detail::FdManager::Event
{
public:
///////////////////////////////////////////////////////////////////////////
// Types
- typedef boost::function<void (int)> Callback;
+ typedef boost::function<void (int)> Callback;
enum Events {
EV_NONE = 0 ///< No event
///@{
template <class Handle>
- FdEvent(std::string const & name, Callback const & cb, Handle const & handle, int events,
- bool initiallyEnabled = true);
+ FdEvent(std::string const & name, Callback const & cb, Handle const & handle, int events,
+ bool initiallyEnabled = true);
///< Register a file descriptor event
/**< Registers \a cb to be called when any of the \a events
occurs on \a handle. If \a initiallyEnabled is set \c
\param[in] cb Callback to call. This callback may \e
explicitly be set to \c 0 if the value cannot be
initialized. */
- ~FdEvent();
+ ~FdEvent();
///@}
///////////////////////////////////////////////////////////////////////////
- void disable(); ///< Disable event
- void enable(); ///< Enable event
+ void disable(); ///< Disable event
+ void enable(); ///< Enable event
- FdEvent & action(Callback const & cb); ///< Change event callback
+ FdEvent & action(Callback const & cb); ///< Change event callback
- FdEvent & events(int events); ///< Change event mask
+ FdEvent & events(int events); ///< Change event mask
FdEvent & addEvents(int events); ///< Add additional events to event mask
FdEvent & removeEvents(int events); ///< Remove events from event mask
int events(); ///< Current event mask
protected:
private:
- virtual void signal(int events);
- virtual void v_run();
+ virtual void signal(int events);
+ virtual void v_run();
virtual char const * v_type() const;
virtual std::string v_info() const;
- Callback cb_;
- int fd_;
+ Callback cb_;
+ int fd_;
bool pollable_;
- int events_;
- int signaledEvents_;
+ int events_;
+ int signaledEvents_;
friend class detail::FdSetCompare;
friend class detail::FindFd;
/** \file
\brief FdDispatcher internal header */
-#ifndef IH_FdDispatcher_
-#define IH_FdDispatcher_ 1
+#ifndef IH_SENF_Scheduler_FdEvent_
+#define IH_SENF_Scheduler_FdEvent_ 1
// Custom includes
#include "../boost/intrusive/iset.hpp"
namespace detail {
struct FdSetCompare {
- bool operator()(FdEvent const & a, FdEvent const & b) const
- { return a.fd_ < b.fd_; }
+ bool operator()(FdEvent const & a, FdEvent const & b) const
+ { return a.fd_ < b.fd_; }
};
struct FindFd {
- bool operator()(FdEvent const & a, int b) const
- { return a.fd_ < b; }
- bool operator()(int a, FdEvent const & b) const
- { return a < b.fd_; }
+ bool operator()(FdEvent const & a, int b) const
+ { return a.fd_ < b; }
+ bool operator()(int a, FdEvent const & b) const
+ { return a < b.fd_; }
};
class FdDispatcher
- : public senf::singleton<FdDispatcher>
+ : public senf::singleton<FdDispatcher>
{
public:
- using senf::singleton<FdDispatcher>::instance;
- using senf::singleton<FdDispatcher>::alive;
-
+ using senf::singleton<FdDispatcher>::instance;
+ using senf::singleton<FdDispatcher>::alive;
+
bool add(FdEvent & event);
void remove(FdEvent & event);
FdDispatcher();
~FdDispatcher();
- typedef boost::intrusive::imultiset< FdSetBase::value_traits<FdEvent>,
- FdSetCompare,
- false > FdSet;
+ typedef boost::intrusive::imultiset< FdSetBase::value_traits<FdEvent>,
+ FdSetCompare,
+ false > FdSet;
FdSet fds_;
};
class FileDispatcher
- : public senf::singleton<FileDispatcher>
+ : public senf::singleton<FileDispatcher>
{
public:
- using senf::singleton<FileDispatcher>::instance;
- using senf::singleton<FileDispatcher>::alive;
+ using senf::singleton<FileDispatcher>::instance;
+ using senf::singleton<FileDispatcher>::alive;
void add(FdEvent & event);
void remove(FdEvent & event);
// We really only need a list here but we need to use the same event structure used by
// the FdEvent.
- typedef boost::intrusive::imultiset< FdSetBase::value_traits<FdEvent>,
- FdSetCompare,
- false > FdSet;
+ typedef boost::intrusive::imultiset< FdSetBase::value_traits<FdEvent>,
+ FdSetCompare,
+ false > FdSet;
FdSet fds_;
int managerTimeout_;
/** \file
\brief FdManager public header */
-#ifndef HH_FdManager_
-#define HH_FdManager_ 1
+#ifndef HH_SENF_Scheduler_FdManager_
+#define HH_SENF_Scheduler_FdManager_ 1
// Custom includes
#include "Poller.hh"
/** \file
\brief Poller public header */
-#ifndef HH_Poller_
-#define HH_Poller_ 1
+#ifndef HH_SENF_Scheduler_Poller_
+#define HH_SENF_Scheduler_Poller_ 1
// Custom includes
#include <sys/epoll.h>
/** \file
\brief ReadHelper public header */
-#ifndef HH_ReadHelper_
-#define HH_ReadHelper_ 1
+#ifndef HH_SENF_Scheduler_ReadHelper_
+#define HH_SENF_Scheduler_ReadHelper_ 1
// Custom includes
#include <string>
/** \file
\brief ReadHelper internal header */
-#ifndef IH_ReadHelper_
-#define IH_ReadHelper_ 1
+#ifndef IH_SENF_Scheduler_ReadHelper_
+#define IH_SENF_Scheduler_ReadHelper_ 1
// Custom includes
\brief Scheduler public header
*/
-#ifndef HH_Scheduler_
-#define HH_Scheduler_ 1
+#ifndef HH_SENF_Scheduler_Scheduler_
+#define HH_SENF_Scheduler_Scheduler_ 1
// Custom includes
#include "../Utils/Logger/SenfLog.hh"
/** \file
\brief SignalDispatcher public header */
-#ifndef HH_SignalDispatcher_
-#define HH_SignalDispatcher_ 1
+#ifndef HH_SENF_Scheduler_SignalEvent_
+#define HH_SENF_Scheduler_SignalEvent_ 1
// Custom includes
#include <signal.h>
/** \file
\brief SignalDispatcher internal header */
-#ifndef IH_SignalDispatcher_
-#define IH_SignalDispatcher_ 1
+#ifndef IH_SENF_Scheduler_SignalEvent_
+#define IH_SENF_Scheduler_SignalEvent_ 1
// Custom includes
#include "FdManager.hh"
/** \file
\brief TimerDispatcher public header */
-#ifndef HH_TimerDispatcher_
-#define HH_TimerDispatcher_ 1
+#ifndef HH_SENF_Scheduler_TimerEvent_
+#define HH_SENF_Scheduler_TimerEvent_ 1
// Custom includes
#include <signal.h>
/** \file
\brief TimerDispatcher internal header */
-#ifndef IH_TimerDispatcher_
-#define IH_TimerDispatcher_ 1
+#ifndef IH_SENF_Scheduler_TimerEvent_
+#define IH_SENF_Scheduler_TimerEvent_ 1
// Custom includes
#include "../boost/intrusive/iset.hpp"
/** \file
\brief WriteHelper public header */
-#ifndef HH_WriteHelper_
-#define HH_WriteHelper_ 1
+#ifndef HH_SENF_Scheduler_WriteHelper_
+#define HH_SENF_Scheduler_WriteHelper_ 1
// Custom includes
#include <string>
\brief NoAddressingPolicy public header
*/
-#ifndef HH_AddressingPolicy_
-#define HH_AddressingPolicy_ 1
+#ifndef HH_SENF_Socket_AddressingPolicy_
+#define HH_SENF_Socket_AddressingPolicy_ 1
// Custom includes
#include "SocketPolicy.hh"
\brief ClientSocketHandle public header
*/
-#ifndef HH_ClientSocketHandle_
-#define HH_ClientSocketHandle_ 1
+#ifndef HH_SENF_Socket_ClientSocketHandle_
+#define HH_SENF_Socket_ClientSocketHandle_ 1
// Custom includes
#include <boost/call_traits.hpp>
/** \file
\brief ClientSocketHandle internal header */
-#ifndef IH_ClientSocketHandle_
-#define IH_ClientSocketHandle_ 1
+#ifndef IH_SENF_Socket_ClientSocketHandle_
+#define IH_SENF_Socket_ClientSocketHandle_ 1
// Custom includes
#include "../Utils/IteratorTraits.hh"
\brief CommunicationPolicy public header
*/
-#ifndef HH_CommunicationPolicy_
-#define HH_CommunicationPolicy_ 1
+#ifndef HH_SENF_Socket_CommunicationPolicy_
+#define HH_SENF_Socket_CommunicationPolicy_ 1
// Custom includes
#include "SocketPolicy.hh"
the SocketHandle classes should not be changed.
*/
-#ifndef HH_FileHandle_
-#define HH_FileHandle_ 1
+#ifndef HH_SENF_Socket_FileHandle_
+#define HH_SENF_Socket_FileHandle_ 1
// Custom includes
#include <memory> // std::auto_ptr
\brief FileHandle internal header
*/
-#ifndef IH_FileHandle_
-#define IH_FileHandle_ 1
+#ifndef IH_SENF_Socket_FileHandle_
+#define IH_SENF_Socket_FileHandle_ 1
// Custom includes
#include <boost/intrusive_ptr.hpp>
\brief FramingPolicy public header
*/
-#ifndef HH_FramingPolicy_
-#define HH_FramingPolicy_ 1
+#ifndef HH_SENF_Socket_FramingPolicy_
+#define HH_SENF_Socket_FramingPolicy_ 1
// Custom includes
#include "SocketPolicy.hh"
\brief NetdeviceController public header
*/
-#ifndef HH_NetdeviceController_
-#define HH_NetdeviceController_ 1
+#ifndef HH_SENF_Socket_NetdeviceController_
+#define HH_SENF_Socket_NetdeviceController_ 1
// Custom includes
#include <string>
\brief ProtocolClientSocketHandle public header
*/
-#ifndef HH_ProtocolClientSocketHandle_
-#define HH_ProtocolClientSocketHandle_ 1
+#ifndef HH_SENF_Socket_ProtocolClientSocketHandle_
+#define HH_SENF_Socket_ProtocolClientSocketHandle_ 1
// Custom includes
#include "ClientSocketHandle.hh"
\brief ProtocolServerSocketHandle public header
*/
-#ifndef HH_ProtocolServerSocketHandle_
-#define HH_ProtocolServerSocketHandle_ 1
+#ifndef HH_SENF_Socket_ProtocolServerSocketHandle_
+#define HH_SENF_Socket_ProtocolServerSocketHandle_ 1
// Custom includes
#include "ServerSocketHandle.hh"
*/
#if !BOOST_PP_IS_ITERATING
-#ifndef MPP_PSSH__ProtocolServerSocketHandle_
+#ifndef MPP_SENF_Socket_ProtocolServerSocketHandle_
// Custom includes
#include <boost/preprocessor/iteration/iterate.hpp>
#endif
#endif
#if !BOOST_PP_IS_ITERATING
-#ifdef MPP_PSSH__ProtocolServerSocketHandle_
+#ifdef MPP_SENF_Socket_ProtocolServerSocketHandle_
///////////////////////////////////////////////////////////////////////////
// Undefine local Macros
//////////////////////////////mpp_PSSH_.e////////////////////////////////////////
#else
-#define MPP_PSSH__ProtocolServerSocketHandle_ 1
+#define MPP_SENF_Socket_ProtocolServerSocketHandle_ 1
#endif
#endif
/** \file
\brief AddressExceptions public header */
-#ifndef HH_AddressExceptions_
-#define HH_AddressExceptions_ 1
+#ifndef HH_SENF_Socket_Protocols_AddressExceptions_
+#define HH_SENF_Socket_Protocols_AddressExceptions_ 1
// Custom includes
#include "../Utils/Exception.hh"
/** \defgroup addr_group Addressing classes
*/
-#ifndef HH_BSDAddressingPolicyMixin_
-#define HH_BSDAddressingPolicyMixin_ 1
+#ifndef HH_SENF_Socket_Protocols_BSDAddressingPolicy_
+#define HH_SENF_Socket_Protocols_BSDAddressingPolicy_ 1
// Custom includes
#include "../SocketHandle.hh"
/** \file
\brief BSDSocketAddress public header */
-#ifndef HH_BSDSocketAddress_
-#define HH_BSDSocketAddress_ 1
+#ifndef HH_SENF_Socket_Protocols_BSDSocketAddress_
+#define HH_SENF_Socket_Protocols_BSDSocketAddress_ 1
// Custom includes
#include "../../Utils/safe_bool.hh"
/** \file
\brief BSDSocketProtocol public header */
-#ifndef HH_BSDSocketProtocol_
-#define HH_BSDSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_BSDSocketProtocol_
+#define HH_SENF_Socket_Protocols_BSDSocketProtocol_ 1
// Custom includes
#include "../../Socket/SocketProtocol.hh"
/** \file
\brief INet public header */
-#ifndef HH_DVB_
-#define HH_DVB_ 1
+#ifndef HH_SENF_Socket_Protocols_DVB_DVB_
+#define HH_SENF_Socket_Protocols_DVB_DVB_ 1
#include "all_includes.hh"
/** \file
\brief DVBDemuxHandles public header */
-#ifndef HH_DVBDemuxHandles_
-#define HH_DVBDemuxHandles_ 1
+#ifndef HH_SENF_Socket_Protocols_DVB_DVBDemuxHandles_
+#define HH_SENF_Socket_Protocols_DVB_DVBDemuxHandles_ 1
// Custom includes
#include "../../../Socket/FramingPolicy.hh"
/** \file
\brief DVBDemuxSocketProtocol public header */
-#ifndef HH_DVBDemuxSocketProtocol_
-#define HH_DVBDemuxSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_DVB_DVBDemuxSocketProtocol_
+#define HH_SENF_Socket_Protocols_DVB_DVBDemuxSocketProtocol_ 1
#include <linux/dvb/dmx.h>
prefix_ int16_t senf::DVBFrontendSocketProtocol::signalStrength()
const
{
- int16_t strength;
+ int16_t strength;
if (::ioctl(fd(), FE_READ_SIGNAL_STRENGTH, &strength) < 0)
SENF_THROW_SYSTEM_EXCEPTION("Could not get signal strength of DVB adapter.");
return strength;
/** \file
\brief DVBFrontendHandle public header */
-#ifndef HH_DVBFrontendHandle_
-#define HH_DVBFrontendHandle_ 1
+#ifndef HH_SENF_Socket_Protocols_DVB_DVBFrontendHandle_
+#define HH_SENF_Socket_Protocols_DVB_DVBFrontendHandle_ 1
// Custom includes
#include <boost/cstdint.hpp>
/** \file
\brief DatagramSocketProtocol public header */
-#ifndef HH_DatagramSocketProtocol_
-#define HH_DatagramSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_DatagramSocketProtocol_
+#define HH_SENF_Socket_Protocols_DatagramSocketProtocol_ 1
// Custom includes
#include <sys/time.h>
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef CONNECTEDRAWINETSOCKETHANDLE_HH_
-#define CONNECTEDRAWINETSOCKETHANDLE_HH_
+#ifndef CONNECTEDHH_SENF_Socket_Protocols_INet_RawINetSocketHandle_
+#define CONNECTEDHH_SENF_Socket_Protocols_INet_RawINetSocketHandle_
// Custom includes
#include "INetSocketProtocol.hh"
}
-#endif /*CONNECTEDRAWINETSOCKETHANDLE_HH_*/
+#endif /*CONNECTEDHH_SENF_Socket_Protocols_INet_RawINetSocketHandle_*/
protocol interface
*/
-#ifndef HH_ConnectedUDPSocketHandle_
-#define HH_ConnectedUDPSocketHandle_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_ConnectedUDPSocketHandle_
+#define HH_SENF_Socket_Protocols_INet_ConnectedUDPSocketHandle_ 1
// Custom includes
#include "INetSocketProtocol.hh"
/** \file
\brief INet public header */
-#ifndef HH_INet_
-#define HH_INet_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_INet_
+#define HH_SENF_Socket_Protocols_INet_INet_ 1
#include "all_includes.hh"
/** \file
\brief INet4Address public header */
-#ifndef HH_INet4Address_
-#define HH_INet4Address_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_INet4Address_
+#define HH_SENF_Socket_Protocols_INet_INet4Address_ 1
// Custom includes
#include <iostream>
/** \file
\brief INet6Address public header */
-#ifndef HH_INet6Address_
-#define HH_INet6Address_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_INet6Address_
+#define HH_SENF_Socket_Protocols_INet_INet6Address_ 1
// Custom includes
#include <iostream>
/** \file
\brief INet6Address internal header */
-#ifndef IH_INet6Address_
-#define IH_INet6Address_ 1
+#ifndef IH_SENF_Socket_Protocols_INet_INet6Address_
+#define IH_SENF_Socket_Protocols_INet_INet6Address_ 1
// Custom includes
\brief INet[46]Address and INet[46]AddressingPolicy public header
*/
-#ifndef HH_INetAddressing_
-#define HH_INetAddressing_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_INetAddressing_
+#define HH_SENF_Socket_Protocols_INet_INetAddressing_ 1
// Custom includes
#include <string>
for SOCK_DGRAM (UDP) and not SOCK_STREAM (TCP) sockets
*/
-#ifndef HH_INetSocketProtocol_
-#define HH_INetSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_INetSocketProtocol_
+#define HH_SENF_Socket_Protocols_INet_INetSocketProtocol_ 1
// Custom includes
#include "../../../Socket/SocketProtocol.hh"
/** \file
\brief MulticastSocketProtocol public header */
-#ifndef HH_MulticastSocketProtocol_
-#define HH_MulticastSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_MulticastSocketProtocol_
+#define HH_SENF_Socket_Protocols_INet_MulticastSocketProtocol_ 1
// Custom includes
#include "../../../Socket/SocketProtocol.hh"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef RAWINETSOCKETHANDLE_HH_
-#define RAWINETSOCKETHANDLE_HH_
+#ifndef HH_SENF_Socket_Protocols_INet_RawINetSocketHandle_
+#define HH_SENF_Socket_Protocols_INet_RawINetSocketHandle_
// Custom includes
}
-#endif /*RAWINETSOCKETHANDLE_HH_*/
+#endif /*HH_SENF_Socket_Protocols_INet_RawINetSocketHandle_*/
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef RAWINETPROTOCOL_HH_
-#define RAWINETPROTOCOL_HH_
+#ifndef HH_SENF_Socket_Protocols_INet_RawINetSocketProtocol_
+#define HH_SENF_Socket_Protocols_INet_RawINetSocketProtocol_
// Custom includes
#include "INetAddressing.hh"
/// @}
}
-#endif /*RAWINETPROTOCOL_HH_*/
+#endif /*HH_SENF_Socket_Protocols_INet_RawINetSocketProtocol_*/
protocol interface
*/
-#ifndef HH_TCPSocketHandle_
-#define HH_TCPSocketHandle_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_TCPSocketHandle_
+#define HH_SENF_Socket_Protocols_INet_TCPSocketHandle_ 1
// Custom includes
#include "INetSocketProtocol.hh"
\brief TCPSocketProtocol public header
*/
-#ifndef HH_TCPSocketProtocol_
-#define HH_TCPSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_TCPSocketProtocol_
+#define HH_SENF_Socket_Protocols_INet_TCPSocketProtocol_ 1
// Custom includes
#include "../../../Socket/SocketProtocol.hh"
protocol interface
*/
-#ifndef HH_UDPSocketHandle_
-#define HH_UDPSocketHandle_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_UDPSocketHandle_
+#define HH_SENF_Socket_Protocols_INet_UDPSocketHandle_ 1
// Custom includes
#include "INetSocketProtocol.hh"
\brief UDPSocketProtocol public header
*/
-#ifndef HH_UDPSocketProtocol_
-#define HH_UDPSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_UDPSocketProtocol_
+#define HH_SENF_Socket_Protocols_INet_UDPSocketProtocol_ 1
// Custom includes
#include "../../../Socket/SocketProtocol.hh"
\brief LLSocketAddress and LLAddressingPolicy public header
*/
-#ifndef HH_LLAddressing_
-#define HH_LLAddressing_ 1
+#ifndef HH_SENF_Socket_Protocols_Raw_LLAddressing_
+#define HH_SENF_Socket_Protocols_Raw_LLAddressing_ 1
// Custom includes
#include <sys/socket.h>
senf::MACAddress const senf::MACAddress::None;
prefix_ std::string senf::MACAddress::toString() const {
- std::ostringstream tmp;
- tmp << (*this);
- return tmp.str();
+ std::ostringstream tmp;
+ tmp << (*this);
+ return tmp.str();
}
///////////////////////////////////////////////////////////////////////////
/** \file
\brief MACAddress public header */
-#ifndef HH_MACAddress_
-#define HH_MACAddress_ 1
+#ifndef HH_SENF_Socket_Protocols_Raw_MACAddress_
+#define HH_SENF_Socket_Protocols_Raw_MACAddress_ 1
// Custom includes
#include <iostream>
BOOST_AUTO_UNIT_TEST(macAddress)
{
- std::string test ("A1-b2-C3:d4:E5:f6");
+ std::string test ("A1-b2-C3:d4:E5:f6");
senf::MACAddress mac (senf::MACAddress::from_string(test));
BOOST_CHECK_EQUAL( mac[0], 0xA1u );
\brief PacketSocketProtocol and PacketSocketHandle public header
*/
-#ifndef HH_PacketSocketHandle_
-#define HH_PacketSocketHandle_ 1
+#ifndef HH_SENF_Socket_Protocols_Raw_PacketSocketHandle_
+#define HH_SENF_Socket_Protocols_Raw_PacketSocketHandle_ 1
// Custom includes
#include "../../../Socket/SocketPolicy.hh"
/** \file
\brief Raw public header */
-#ifndef HH_Raw_
-#define HH_Raw_ 1
+#ifndef HH_SENF_Socket_Protocols_Raw_Raw_
+#define HH_SENF_Socket_Protocols_Raw_Raw_ 1
#include "all_includes.hh"
\brief PacketSocketProtocol and PacketSocketHandle public header
*/
-#ifndef HH_TunTapSocketHandle_
-#define HH_TunTapSocketHandle_ 1
+#ifndef HH_SENF_Socket_Protocols_Raw_TunTapSocketHandle_
+#define HH_SENF_Socket_Protocols_Raw_TunTapSocketHandle_ 1
// Custom includes
#include "../../../Socket/SocketPolicy.hh"
/** \file
\brief ConnectedUNDatagramSocketHandle public header */
-#ifndef CONNECTEDUNDATAGRAMSOCKETHANDLE_HH_
-#define CONNECTEDUNDATAGRAMSOCKETHANDLE_HH_
+#ifndef HHE_SENF_Socket_Protocols_UN_ConnectedUNDatagramSocketHandle_
+#define HHE_SENF_Socket_Protocols_UN_ConnectedUNDatagramSocketHandle_
// Custom includes
#include "UNAddressing.hh"
/** \file
\brief INet public header */
-#ifndef HH_UN_
-#define HH_UN_ 1
+#ifndef HH_SENF_Socket_Protocols_UN_UN_
+#define HH_SENF_Socket_Protocols_UN_UN_ 1
#include "all_includes.hh"
/** \file
\brief UNAddressing public header */
-#ifndef HH_UNAddressing_
-#define HH_UNAddressing_ 1
+#ifndef HH_SENF_Socket_Protocols_UN_UNAddressing_
+#define HH_SENF_Socket_Protocols_UN_UNAddressing_ 1
// Custom includes
#include <iostream>
/** \file
\brief UNDatagramSocketHandle public header */
-#ifndef HH_UNDatagramSocketHandle_
-#define HH_UNDatagramSocketHandle_ 1
+#ifndef HH_SENF_Socket_Protocols_UN_UNDatagramSocketHandle_
+#define HH_SENF_Socket_Protocols_UN_UNDatagramSocketHandle_ 1
// Custom includes
#include "UNAddressing.hh"
/** \file
\brief UNSocketProtocol public header */
-#ifndef HH_UNSocketProtocol_
-#define HH_UNSocketProtocol_ 1
+#ifndef HH_SENF_Socket_Protocols_UN_UNSocketProtocol_
+#define HH_SENF_Socket_Protocols_UN_UNSocketProtocol_ 1
// Custom includes
#include "../../../Socket/SocketProtocol.hh"
\todo ReadWritePolicy.test.cc
*/
-#ifndef HH_ReadWritePolicy_
-#define HH_ReadWritePolicy_ 1
+#ifndef HH_SENF_Socket_ReadWritePolicy_
+#define HH_SENF_Socket_ReadWritePolicy_ 1
// Custom includes
#include "SocketPolicy.hh"
\brief ServerSocketHandle public header
*/
-#ifndef HH_ServerSocketHandle_
-#define HH_ServerSocketHandle_ 1
+#ifndef HH_SENF_Socket_ServerSocketHandle_
+#define HH_SENF_Socket_ServerSocketHandle_ 1
// Custom includes
#include <boost/static_assert.hpp>
/** \file
\brief Socket public header */
-#ifndef HH_Socket_
-#define HH_Socket_ 1
+#ifndef HH_SENF_Socket_Socket_
+#define HH_SENF_Socket_Socket_ 1
#include "all_includes.hh"
\brief SocketHandle public header
*/
-#ifndef HH_SocketHandle_
-#define HH_SocketHandle_ 1
+#ifndef HH_SENF_Socket_SocketHandle_
+#define HH_SENF_Socket_SocketHandle_ 1
// Custom includes
#include <memory> // std::auto_ptr
\brief SocketHandle internal header
*/
-#ifndef IH_SocketHandle_
-#define IH_SocketHandle_ 1
+#ifndef IH_SENF_Socket_SocketHandle_
+#define IH_SENF_Socket_SocketHandle_ 1
// Custom includes
#include <map>
as base classes to build other policy classes.
*/
-#ifndef HH_SocketPolicy_
-#define HH_SocketPolicy_ 1
+#ifndef HH_SENF_Socket_SocketPolicy_
+#define HH_SENF_Socket_SocketPolicy_ 1
// Custom includes
\brief Policy Framework internal header
*/
-#ifndef IH_SocketPolicy_
-#define IH_SocketPolicy_ 1
+#ifndef IH_SENF_Socket_SocketPolicy_
+#define IH_SENF_Socket_SocketPolicy_ 1
// Custom includes
#include <boost/preprocessor/seq/for_each.hpp>
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef HH_SocketPolicy_test_
-#define HH_SocketPolicy_test_ 1
+#ifndef HH_SENF_Socket_SocketPolicy_test_
+#define HH_SENF_Socket_SocketPolicy_test_ 1
// Custom includes
#include "SocketPolicy.hh"
accessibility of the socket body from all facets.
*/
-#ifndef HH_SocketProtocol_
-#define HH_SocketProtocol_ 1
+#ifndef HH_SENF_Socket_SocketProtocol_
+#define HH_SENF_Socket_SocketProtocol_ 1
// Custom includes
#include <boost/utility.hpp>
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#ifndef HH_SocketProtocol_test_
-#define HH_SocketProtocol_test_ 1
+#ifndef HH_SENF_Socket_SocketProtocol_test_
+#define HH_SENF_Socket_SocketProtocol_test_ 1
// Custom includes
#include "SocketProtocol.hh"
/** \file
\brief Backtrace public header */
-#ifndef HH_Backtrace_
-#define HH_Backtrace_ 1
+#ifndef HH_SENF_Utils_Backtrace_
+#define HH_SENF_Utils_Backtrace_ 1
// Custom includes
#include <iostream>
/** \file
\brief Buffer public header */
-#ifndef HH_Buffer_
-#define HH_Buffer_ 1
+#ifndef HH_SENF_Utils_Buffer_
+#define HH_SENF_Utils_Buffer_ 1
// Custom includes
#include "../config.hh"
/** \file
\brief Daemon public header */
-#ifndef HH_Daemon_
-#define HH_Daemon_ 1
+#ifndef HH_SENF_Utils_Daemon_Daemon_
+#define HH_SENF_Utils_Daemon_Daemon_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief Daemon internal header */
-#ifndef IH_Daemon_
-#define IH_Daemon_ 1
+#ifndef IH_SENF_Utils_Daemon_Daemon_
+#define IH_SENF_Utils_Daemon_Daemon_ 1
// Custom includes
#include <deque>
/** \file
\brief Exception public header */
-#ifndef HH_Exception_
-#define HH_Exception_ 1
+#ifndef HH_SENF_Utils_Exception_
+#define HH_SENF_Utils_Exception_ 1
// Custom includes
#include <exception>
/** \file
\brief IpChecksum public header */
-#ifndef HH_IpChecksum_
-#define HH_IpChecksum_ 1
+#ifndef HH_SENF_Utils_IpChecksum_
+#define HH_SENF_Utils_IpChecksum_ 1
// Custom includes
#include <boost/cstdint.hpp>
/** \file
\brief IteratorTraits public header */
-#ifndef HH_IteratorTraits_
-#define HH_IteratorTraits_ 1
+#ifndef HH_SENF_Utils_IteratorTraits_
+#define HH_SENF_Utils_IteratorTraits_ 1
// Custom includes
#include <boost/type_traits/integral_constant.hpp>
/** \file
\brief IteratorTraits internal header */
-#ifndef IH_IteratorTraits_
-#define IH_IteratorTraits_ 1
+#ifndef IH_SENF_Utils_IteratorTraits_
+#define IH_SENF_Utils_IteratorTraits_ 1
// Custom includes
/** \file
\brief AreaRegistry public header */
-#ifndef HH_AreaRegistry_
-#define HH_AreaRegistry_ 1
+#ifndef HH_SENF_Utils_Logger_AreaRegistry_
+#define HH_SENF_Utils_Logger_AreaRegistry_ 1
// Custom includes
#include <map>
/** \file
\brief AreaRegistry internal header */
-#ifndef IH_AreaRegistry_
-#define IH_AreaRegistry_ 1
+#ifndef IH_SENF_Utils_Logger_AreaRegistry_
+#define IH_SENF_Utils_Logger_AreaRegistry_ 1
// Custom includes
#include <string>
/** \file
\brief Config public header */
-#ifndef HH_Config_
-#define HH_Config_ 1
+#ifndef HH_SENF_Utils_Logger_Config_
+#define HH_SENF_Utils_Logger_Config_ 1
// Custom includes
#include "Levels.hh"
/** \file
\brief Config internal header */
-#ifndef IH_Config_
-#define IH_Config_ 1
+#ifndef IH_SENF_Utils_Logger_Config_
+#define IH_SENF_Utils_Logger_Config_ 1
// Custom includes
#include <boost/preprocessor/expand.hpp>
/** \file
\brief ConsoleTarget public header */
-#ifndef HH_ConsoleTarget_
-#define HH_ConsoleTarget_ 1
+#ifndef HH_SENF_Utils_Logger_ConsoleTarget_
+#define HH_SENF_Utils_Logger_ConsoleTarget_ 1
// Custom includes
#include "IOStreamTarget.hh"
/** \file
\brief Definitions public header */
-#ifndef HH_Definitions_
-#define HH_Definitions_ 1
+#ifndef HH_SENF_Utils_Logger_Definitions_
+#define HH_SENF_Utils_Logger_Definitions_ 1
// Custom includes
/** \file
\brief Definitions internal header */
-#ifndef IH_Definitions_
-#define IH_Definitions_ 1
+#ifndef IH_SENF_Utils_Logger_Definitions_
+#define IH_SENF_Utils_Logger_Definitions_ 1
// Custom includes
/** \file
\brief FileTarget public header */
-#ifndef HH_FileTarget_
-#define HH_FileTarget_ 1
+#ifndef HH_SENF_Utils_Logger_FileTarget_
+#define HH_SENF_Utils_Logger_FileTarget_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief IOStreamTarget public header */
-#ifndef HH_IOStreamTarget_
-#define HH_IOStreamTarget_ 1
+#ifndef HH_SENF_Utils_Logger_IOStreamTarget_
+#define HH_SENF_Utils_Logger_IOStreamTarget_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief Levels public header */
-#ifndef HH_Levels_
-#define HH_Levels_ 1
+#ifndef HH_SENF_Utils_Logger_Levels_
+#define HH_SENF_Utils_Logger_Levels_ 1
// Custom includes
/** \file
\brief Levels internal header */
-#ifndef IH_Levels_
-#define IH_Levels_ 1
+#ifndef IH_SENF_Utils_Logger_Levels_
+#define IH_SENF_Utils_Logger_Levels_ 1
// Custom includes
/** \file
\brief Log public header */
-#ifndef HH_Log_
-#define HH_Log_ 1
+#ifndef HH_SENF_Utils_Logger_Log_
+#define HH_SENF_Utils_Logger_Log_ 1
// Custom includes
#include <boost/preprocessor/seq/size.hpp>
/** \file
\brief Log internal header */
-#ifndef IH_Log_
-#define IH_Log_ 1
+#ifndef IH_SENF_Utils_Logger_Log_
+#define IH_SENF_Utils_Logger_Log_ 1
// Custom includes
#include <sstream>
/** \file
\brief Logger public header */
-#ifndef HH_Logger_
-#define HH_Logger_ 1
+#ifndef HH_SENF_Utils_Logger_Logger_
+#define HH_SENF_Utils_Logger_Logger_ 1
#include "all_includes.hh"
/** \file
\brief Parameters public header */
-#ifndef HH_Parameters_
-#define HH_Parameters_ 1
+#ifndef HH_SENF_Utils_Logger_Parameters_
+#define HH_SENF_Utils_Logger_Parameters_ 1
// Custom includes
/** \file
\brief Parameters internal header */
-#ifndef IH_Parameters_
-#define IH_Parameters_ 1
+#ifndef IH_SENF_Utils_Logger_Parameters_
+#define IH_SENF_Utils_Logger_Parameters_ 1
// Custom includes
#include <iostream>
/** \file
\brief SenfLog public header */
-#ifndef HH_SenfLog_
-#define HH_SenfLog_ 1
+#ifndef HH_SENF_Utils_Logger_SenfLog_
+#define HH_SENF_Utils_Logger_SenfLog_ 1
// Custom includes
#include "../../config.hh"
/** \file
\brief StreamRegistry public header */
-#ifndef HH_StreamRegistry_
-#define HH_StreamRegistry_ 1
+#ifndef HH_SENF_Utils_Logger_StreamRegistry_
+#define HH_SENF_Utils_Logger_StreamRegistry_ 1
// Custom includes
#include <map>
/** \file
\brief StreamRegistry internal header */
-#ifndef IH_StreamRegistry_
-#define IH_StreamRegistry_ 1
+#ifndef IH_SENF_Utils_Logger_StreamRegistry_
+#define IH_SENF_Utils_Logger_StreamRegistry_ 1
// Custom includes
#include <string>
/** \file
\brief StringTarget public header */
-#ifndef HH_StringTarget_
-#define HH_StringTarget_ 1
+#ifndef HH_SENF_Utils_Logger_StringTarget_
+#define HH_SENF_Utils_Logger_StringTarget_ 1
// Custom includes
#include <sstream>
/** \file
\brief SyslogTarget public header */
-#ifndef HH_SyslogTarget_
-#define HH_SyslogTarget_ 1
+#ifndef HH_SENF_Utils_Logger_SyslogTarget_
+#define HH_SENF_Utils_Logger_SyslogTarget_ 1
// Custom includes
#include <syslog.h>
/** \file
\brief Target public header */
-#ifndef HH_Target_
-#define HH_Target_ 1
+#ifndef HH_SENF_Utils_Logger_Target_
+#define HH_SENF_Utils_Logger_Target_ 1
// Custom includes
#include <set>
/** \file
\brief Target internal header */
-#ifndef IH_Target_
-#define IH_Target_ 1
+#ifndef IH_SENF_Utils_Logger_Target_
+#define IH_SENF_Utils_Logger_Target_ 1
// Custom includes
#include <memory>
/** \file
\brief TimeSource public header */
-#ifndef HH_TimeSource_
-#define HH_TimeSource_ 1
+#ifndef HH_SENF_Utils_Logger_TimeSource_
+#define HH_SENF_Utils_Logger_TimeSource_ 1
// Custom includes
#include <boost/cstdint.hpp>
/** \file
\brief TimeSource internal header */
-#ifndef IH_TimeSource_
-#define IH_TimeSource_ 1
+#ifndef IH_SENF_Utils_Logger_TimeSource_
+#define IH_SENF_Utils_Logger_TimeSource_ 1
// Custom includes
#include <boost/scoped_ptr.hpp>
/** \file
\brief main.test public header */
-#ifndef HH_main_test_
-#define HH_main_test_ 1
+#ifndef HH_SENF_Utils_Logger_main_test_
+#define HH_SENF_Utils_Logger_main_test_ 1
// Custom includes
/** \file
\brief Phoenix public header */
-#ifndef HH_Phoenix_
-#define HH_Phoenix_ 1
+#ifndef HH_SENF_Utils_Phoenix_
+#define HH_SENF_Utils_Phoenix_ 1
// Custom includes
#include <boost/spirit/phoenix/functions.hpp>
/** \file
\brief Phoenix internal header */
-#ifndef IH_Phoenix_
-#define IH_Phoenix_ 1
+#ifndef IH_SENF_Utils_Phoenix_
+#define IH_SENF_Utils_Phoenix_ 1
// Custom includes
/** \file
\brief Range public header */
-#ifndef HH_Range_
-#define HH_Range_ 1
+#ifndef HH_SENF_Utils_Range_
+#define HH_SENF_Utils_Range_ 1
// Custom includes
#include <boost/range/iterator_range.hpp>
/** \file
\brief String public header */
-#ifndef HH_String_
-#define HH_String_ 1
+#ifndef HH_SENF_Utils_String_
+#define HH_SENF_Utils_String_ 1
// Custom includes
#include <string>
/** \file
\brief Tags public header */
-#ifndef HH_Tags_
-#define HH_Tags_ 1
+#ifndef HH_SENF_Utils_Tags_
+#define HH_SENF_Utils_Tags_ 1
// Custom includes
/** \file
\brief TypeIdValue public header */
-#ifndef HH_TypeIdValue_
-#define HH_TypeIdValue_ 1
+#ifndef HH_SENF_Utils_TypeIdValue_
+#define HH_SENF_Utils_TypeIdValue_ 1
// Custom includes
#include <typeinfo>
/** \file
\brief TypeInfo public header */
-#ifndef HH_TypeInfo_
-#define HH_TypeInfo_ 1
+#ifndef HH_SENF_Utils_TypeInfo_
+#define HH_SENF_Utils_TypeInfo_ 1
// Custom includes
#include <string>
</pre> (with possibliy adjusted path).
*/
-#ifndef HH_auto_unit_test_
-#define HH_auto_unit_test_ 1
+#ifndef HH_SENF_Utils_auto_unit_test_
+#define HH_SENF_Utils_auto_unit_test_ 1
// Custom includes
#include <boost/version.hpp>
/** \file
\brief public header for hexdump */
-#ifndef HH_hexdump_
-#define HH_hexdump_ 1
+#ifndef HH_SENF_Utils_hexdump_
+#define HH_SENF_Utils_hexdump_ 1
// Custom includes
#include <iostream>
/** \file
\brief hexdump internal header */
-#ifndef IH_hexdump_
-#define IH_hexdump_ 1
+#ifndef IH_SENF_Utils_hexdump_
+#define IH_SENF_Utils_hexdump_ 1
// Custom includes
#include <string>
/** \file
\brief intrusive_refcount public header */
-#ifndef HH_intrusive_refcount_
-#define HH_intrusive_refcount_ 1
+#ifndef HH_SENF_Utils_intrusive_refcount_
+#define HH_SENF_Utils_intrusive_refcount_ 1
// Custom includes
#include <boost/utility.hpp>
ob.*fn use.
*/
-#ifndef HH_membind_
-#define HH_membind_ 1
+#ifndef HH_SENF_Utils_membind_
+#define HH_SENF_Utils_membind_ 1
// Custom includes
#include <boost/bind.hpp>
/** \file
\brief mpl public header */
-#ifndef HH_mpl_
-#define HH_mpl_ 1
+#ifndef HH_SENF_Utils_mpl_
+#define HH_SENF_Utils_mpl_ 1
// Custom includes
#include "../config.hh"
/** \file
\brief mpl internal header */
-#ifndef IH_mpl_
-#define IH_mpl_ 1
+#ifndef IH_SENF_Utils_mpl_
+#define IH_SENF_Utils_mpl_ 1
// Custom includes
library.
*/
-#ifndef HH_parameter_
-#define HH_parameter_ 1
+#ifndef HH_SENF_Utils_parameter_
+#define HH_SENF_Utils_parameter_ 1
// Custom includes
#include <boost/parameter/binding.hpp>
/** \file
\brief pool_alloc_mixin public header */
-#ifndef HH_pool_alloc_mixin_
-#define HH_pool_alloc_mixin_ 1
+#ifndef HH_SENF_Utils_pool_alloc_mixin_
+#define HH_SENF_Utils_pool_alloc_mixin_ 1
// Custom includes
#include <boost/pool/singleton_pool.hpp>
/** \file
\brief preprocessor public header */
-#ifndef HH_preprocessor_
-#define HH_preprocessor_ 1
+#ifndef HH_SENF_Utils_preprocessor_
+#define HH_SENF_Utils_preprocessor_ 1
// Custom includes
#include <boost/preprocessor/seq/size.hpp>
/** \file
\brief range public header */
-#ifndef HH_range_
-#define HH_range_ 1
+#ifndef HH_SENF_Utils_range_
+#define HH_SENF_Utils_range_ 1
// Custom includes
/** \file
\brief safe_bool public header */
-#ifndef HH_safe_bool_
-#define HH_safe_bool_ 1
+#ifndef HH_SENF_Utils_safe_bool_
+#define HH_SENF_Utils_safe_bool_ 1
// Custom includes
/** \file
\brief senfassert public header */
-#ifndef HH_senfassert_
-#define HH_senfassert_ 1
+#ifndef HH_SENF_Utils_senfassert_
+#define HH_SENF_Utils_senfassert_ 1
// Custom includes
#include "../Utils/senfassert.hh"
/** \file
\brief signalnames public header */
-#ifndef HH_signalnames_
-#define HH_signalnames_ 1
+#ifndef HH_SENF_Utils_signalnames_
+#define HH_SENF_Utils_signalnames_ 1
// Custom includes
#include <string>
/** \file
\brief singleton public header */
-#ifndef HH_singleton_
-#define HH_singleton_ 1
+#ifndef HH_SENF_Utils_singleton_
+#define HH_SENF_Utils_singleton_ 1
// Custom includes
#include <boost/utility.hpp>
/** \file
\brief type_traits public header */
-#ifndef HH_type_traits_
-#define HH_type_traits_ 1
+#ifndef HH_SENF_Utils_type_traits_
+#define HH_SENF_Utils_type_traits_ 1
// Custom includes
#include <boost/type_traits/function_traits.hpp>
"// Free Software Foundation, Inc.,\n"
"// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"))
+(set (make-local-variable 'ccide-project-name) "SENF")
+
(let ((local-conf (ccide-project-search-upwards "project-local.el")))
(if local-conf
(load-file local-conf)))