pion::platform::EventFactory Class Reference

#include <Event.hpp>

List of all members.


Detailed Description

EventFactory: uses thread-specific Event allocators to create and destroy dynamic EventPtr objects

Definition at line 1369 of file Event.hpp.

Public Member Functions

 ~EventFactory ()
 non-virtual destructor
 EventFactory (void)
 default constructor
 EventFactory (EventAllocator &alloc)
 construct an EventFactory using an existing EventAllocator
 EventFactory (Event &e)
 construct an EventFactory using the EventAllocator of an existing Event
EventPtr create (const Event::EventType t)
void create (EventPtr &ptr, const Event::EventType t)
EventAllocatorgetAllocator (void)
 returns the EventAllocator used by this factory
Event::BlobParams make_blob (const std::string &str) const
 can be used to construct a new BLOB object based upon an existing std::string
Event::BlobParams make_blob (const char *ptr, const std::size_t len) const
 can be used to construct a new BLOB object based upon an existing memory buffer
Event::BlobParams make_blob (const char *ptr) const
 can be used to construct a new BLOB object based upon an existing c-style string

Classes

class  EventAllocatorFactory


Member Function Documentation

void pion::platform::EventFactory::create ( EventPtr ptr,
const Event::EventType  t 
) [inline]

updates an EventPtr so that it contains an empty Event of type t

Parameters:
ptr smart pointer to reset
t the new type of Event

Definition at line 1411 of file Event.hpp.

References pion::platform::EventPtr::is_safe().

EventPtr pion::platform::EventFactory::create ( const Event::EventType  t  )  [inline]

creates and returns a new EventPtr

Parameters:
type the type of Event to create
Returns:
EventPtr a reference-counting smart pointer that automatically destroys the Event when there are no more references

Definition at line 1400 of file Event.hpp.

Referenced by PionPlatformUnitTest::feedFileToReactor(), pion::plugins::TransformReactor::process(), and pion::platform::Codec::read().


The documentation for this class was generated from the following file:
Generated on Wed Apr 13 16:38:36 2011 for pion-platform by  doxygen 1.4.7