stlab.adobe.com Adobe Systems Incorporated

#include <istream.hpp>

Public Types

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

Public Member Functions

std::string file_snippet () const
 
 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)
 
 line_position_t (const char *, int line_index=0)
 
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

line_number_m

type int to match LINE token

Definition at line 183 of file istream.hpp.

line_start_m

The stream position for the start of the line

Definition at line 184 of file istream.hpp.

position_m

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