InspIRCd  4.0
Public Member Functions | Public Attributes | List of all members
FilePosition Class Reference

#include <fileutils.h>

Public Member Functions

 FilePosition (const std::string &Name, unsigned long Line, unsigned long Column)
 
std::string str () const
 

Public Attributes

std::string name
 
unsigned long line
 
unsigned long column
 

Detailed Description

Represents the position within a file.

Constructor & Destructor Documentation

◆ FilePosition()

FilePosition::FilePosition ( const std::string &  Name,
unsigned long  Line,
unsigned long  Column 
)

Initialises a new file position with the specified name, line, and column.

Parameters
NameThe name of the file that the position points to.
LineThe line of the file that this position points to.
ColumnThe column of the file that this position points to.

Member Function Documentation

◆ str()

std::string FilePosition::str ( ) const

Returns a string that represents this file position.

Member Data Documentation

◆ column

unsigned long FilePosition::column

The column of the file that this position points to.

◆ line

unsigned long FilePosition::line

The line of the file that this position points to.

◆ name

std::string FilePosition::name

The name of the file that the position points to.


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