stlab.adobe.com Adobe Systems Incorporated

A type detailing parser position information. More...

#include <istream.hpp>

List of all members.

Public Types

typedef boost::function
< std::string(name_t,
std::streampos)> 
getline_proc_impl_t
typedef boost::shared_ptr
< getline_proc_impl_t
getline_proc_t

Public Member Functions

std::string file_snippet () const
 line_position_t (const char *, int line_index=0)
 line_position_t (name_t file_path, getline_proc_t getline_proc, int line_number=1, std::streampos line_start=0, std::streampos position=-1)
const char * stream_name () const

Public Attributes

int line_number_m
std::streampos line_start_m
std::streampos position_m

Detailed Description

line_position_t is used to remember a position on a particular line of a file.

Definition at line 153 of file istream.hpp.


Member Typedef Documentation

typedef boost::function<std::string (name_t, std::streampos)> getline_proc_impl_t

Definition at line 156 of file istream.hpp.

typedef boost::shared_ptr<getline_proc_impl_t> getline_proc_t

Definition at line 157 of file istream.hpp.


Constructor & Destructor Documentation

line_position_t ( adobe::name_t  file_path,
getline_proc_t  getline_proc,
int  line_number = 1,
std::streampos  line_start = 0,
std::streampos  position = -1 
)

line_number starts at 1.

line_position_t ( const char *  ,
int  line_index = 0 
) [explicit]

This constructor is used with __FILE__ and __LINE__; line_index starts at 0


Member Function Documentation

std::string file_snippet (  ) const

Definition at line 176 of file istream.hpp.

const char* stream_name (  ) const

Definition at line 173 of file istream.hpp.


Member Data Documentation

type int to match __LINE__ token

Definition at line 183 of file istream.hpp.

The stream position for the start of the line

Definition at line 184 of file istream.hpp.

The stream position for the current character on the current line

Definition at line 185 of file istream.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google