boost.png (6897 bytes) Home Libraries People FAQ More

PrevUpHomeNext

Class sink_impl

boost::stacktrack::sink_impl — destination for output of trace data doxygen

Synopsis

#include <boost/stacktrack/sink.hpp>

using namespace boost::stacktrack;

class sink_impl {
public:
  // construct/copy/destruct
  sink_impl(const char *);
  ~sink_impl();

  // public member functions
  unsigned cycle() const;
  void next_cycle() ;
  void write(const scopeloc_base &, raw_event &) ;
  void write(const scopeloc_base &, raw_event &, const std::string &) ;
  void writeInfo(raw_event &, const std::string &) ;
  void writeBaseAndInfo(raw_event &, const std::string &) ;
  virtual bool writable() ;
  const std::string & name() const;
  virtual std::string filename() const;
  virtual int open() ;
  virtual void close() ;
  virtual void activate() ;

  // public static functions
  static bool logging() ;
  static void logging_enable(bool = true) ;

  // protected member functions
  void connected() ;
  void write_prologue() ;
  virtual void _next_cycle() ;
  virtual void _write(raw_event &) ;

  // protected static functions
  static sink_impl & sink() ;

  atomic_counter _handles;
  unsigned _pid;
  unsigned _cycle;
  time_t _start_time;
  double _start_time_hires;
  std::string _nameparm;

  static static sink_impl * _sink;
  static static sink_impl * _default_sink;
  static static bool _logging;
};

Description

sink_impl construct/copy/destruct

  1. sink_impl(const char * name);
  2. ~sink_impl();

sink_impl public member functions

  1. unsigned cycle() const;
  2. void next_cycle() ;
  3. void write(const scopeloc_base & b, raw_event & entry) ;
  4. void write(const scopeloc_base & b, raw_event & entry, const std::string & ) ;
  5. void writeInfo(raw_event & base, const std::string & str) ;
  6. void writeBaseAndInfo(raw_event & base, const std::string & str) ;
  7. virtual bool writable() ;
  8. const std::string & name() const;
  9. virtual std::string filename() const;
  10. virtual int open() ;
  11. virtual void close() ;
  12. virtual void activate() ;

sink_impl public static functions

  1. static bool logging() ;
  2. static void logging_enable(bool on = true) ;

sink_impl protected member functions

  1. void connected() ;
  2. void write_prologue() ;
  3. virtual void _next_cycle() ;
  4. virtual void _write(raw_event & entry) ;

sink_impl protected static functions

  1. static sink_impl & sink() ;
Copyright © 2005 James Fowler

PrevUpHomeNext