ROSE  0.11.145.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Sawyer::Message::FileSink Class Reference

Description

Send free-format messages to a C FILE pointer.

Definition at line 1307 of file Message.h.

#include <util/Sawyer/Message.h>

Inheritance diagram for Sawyer::Message::FileSink:
Inheritance graph
[legend]
Collaboration diagram for Sawyer::Message::FileSink:
Collaboration graph
[legend]

Public Member Functions

virtual void post (const Mesg &, const MesgProps &)
 Causes a message to be emitted. More...
 
- Public Member Functions inherited from Sawyer::Message::UnformattedSink
virtual std::string maybeTerminatePrior (const Mesg &, const MesgProps &)
 Support function for emitting a message. More...
 
virtual std::string maybePrefix (const Mesg &, const MesgProps &)
 Support function for emitting a message. More...
 
virtual std::string maybeBody (const Mesg &, const MesgProps &)
 Support function for emitting a message. More...
 
virtual std::string maybeFinal (const Mesg &, const MesgProps &)
 Support function for emitting a message. More...
 
virtual std::string render (const Mesg &, const MesgProps &)
 Support function for emitting a message. More...
 
GangPtr gang () const
 Property: sink gang. More...
 
UnformattedSinkPtr gang (const GangPtr &g)
 Property: sink gang. More...
 
bool partialMessagesAllowed () const
 Property: allow partial message output. More...
 
UnformattedSinkPtr partialMessagesAllowed (bool)
 Property: allow partial message output. More...
 
PrefixPtr prefix () const
 Property: how to generate message prefixes. More...
 
UnformattedSinkPtr prefix (const PrefixPtr &p)
 Property: how to generate message prefixes. More...
 
- Public Member Functions inherited from Sawyer::Message::Destination
virtual void bakeDestinations (const MesgProps &, BakedDestinations &baked)
 Bakes message properties according to the plumbing lattice. More...
 
MesgProps mergePropertiesNS (const MesgProps &props)
 Merge properties of this lattice node into the specified properties. More...
 
const MesgPropsdefaultPropertiesNS () const
 Default values for message properties. More...
 
MesgPropsdefaultPropertiesNS ()
 Default values for message properties. More...
 
const MesgPropsoverridePropertiesNS () const
 Overrides message properties. More...
 
MesgPropsoverridePropertiesNS ()
 Overrides message properties. More...
 
- Public Member Functions inherited from Sawyer::SharedObject
 SharedObject ()
 Default constructor. More...
 
 SharedObject (const SharedObject &)
 Copy constructor. More...
 
virtual ~SharedObject ()
 Virtual destructor. More...
 
SharedObjectoperator= (const SharedObject &)
 Assignment. More...
 
- Public Member Functions inherited from Sawyer::SharedFromThis< Destination >
SharedPointer< Destination > sharedFromThis ()
 Create a shared pointer from this. More...
 
SharedPointer< const Destination > sharedFromThis () const
 Create a shared pointer from this. More...
 

Static Public Member Functions

static FileSinkPtr instance (FILE *f, const PrefixPtr &prefix=PrefixPtr())
 Allocating constructor. More...
 

Protected Member Functions

 FileSink (FILE *f, const PrefixPtr &prefix)
 Constructor for derived classes. More...
 
- Protected Member Functions inherited from Sawyer::Message::UnformattedSink
 UnformattedSink (const PrefixPtr &prefix)
 Constructor for derived classes. More...
 
void gangInternal (const GangPtr &g)
 Cause this sink to be coordinated with others. More...
 

Additional Inherited Members

- Protected Attributes inherited from Sawyer::Message::UnformattedSink
bool partialMessagesAllowed_
 
- Protected Attributes inherited from Sawyer::Message::Destination
Sawyer::SynchronizationTraits< Sawyer::SingleThreadedTag >::RecursiveMutex mutex_
 Mutex protecting data members here and in subclasses. More...
 
MesgProps dflts_
 Default properties merged into each incoming message. More...
 
MesgProps overrides_
 Override properties applied to incoming message. More...
 

Constructor & Destructor Documentation

Sawyer::Message::FileSink::FileSink ( FILE *  f,
const PrefixPtr prefix 
)
inlineprotected

Constructor for derived classes.

Non-subclass users should use instance instead.

Definition at line 1311 of file Message.h.

Member Function Documentation

static FileSinkPtr Sawyer::Message::FileSink::instance ( FILE *  f,
const PrefixPtr prefix = PrefixPtr() 
)
inlinestatic

Allocating constructor.

Constructs a new message sink that sends messages to the specified C FILE pointer.

Definition at line 1314 of file Message.h.

virtual void Sawyer::Message::FileSink::post ( const Mesg ,
const MesgProps bakedProperties 
)
virtual

Causes a message to be emitted.

The bakedProperties argument is one of the values returned by the bakeDestinations method.

Implements Sawyer::Message::Destination.


The documentation for this class was generated from the following file: