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

PrevUpHomeNext

Class sourcefile

boost::stacktrack::sourcefile — utility class to access a sourcefile_impl

Synopsis

#include <boost/stacktrack/location.hpp>

using namespace boost::stacktrack;

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

  // public member functions
  sourcefile_impl * operator->() ;
  std::string filename() const;
  int filenumber() const;
};

Description

sourcefile construct/copy/destruct

  1. sourcefile(int filenumber);

    create a handle for a given file number

    Parameters

    filenumber

    id for an existing file

  2. sourcefile(const char * filename);

    Parameters

    filename

    for handle - if there is already a sourcefile_impl for the given name then attach to it, otherwise create a new sourcefile_impl for the specified filename

  3. ~sourcefile();

sourcefile public member functions

  1. sourcefile_impl * operator->() ;
  2. std::string filename() const;

    Returns: name as string

  3. int filenumber() const;

    Returns: filenumber assigned to _impl

Copyright © 2005 James Fowler

PrevUpHomeNext