GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
file_info Class Reference

#include "file-info.h"

Public Member Functions

 file_info ()
 
 file_info (const file_info &)=default
 
 file_info (const std::string &fname)
 
 file_info (const std::string &text, const sys::time &timestamp)
 
 ~file_info ()=default
 
std::string get_line (std::size_t line) const
 
std::deque< std::string > get_lines (std::size_t line, std::size_t num_lines) const
 
std::vector< std::size_t > line_offsets () const
 
std::size_t num_lines () const
 
file_infooperator= (const file_info &)=default
 
std::size_t size () const
 
std::string text () const
 
sys::time timestamp () const
 

Detailed Description

Definition at line 40 of file file-info.h.

Constructor & Destructor Documentation

◆ file_info() [1/4]

file_info::file_info ( )
inline

Definition at line 44 of file file-info.h.

◆ file_info() [2/4]

file_info::file_info ( const std::string &  text,
const sys::time &  timestamp 
)
inline

Definition at line 48 of file file-info.h.

◆ file_info() [3/4]

file_info::file_info ( const std::string &  fname)
inline

Definition at line 53 of file file-info.h.

◆ file_info() [4/4]

file_info::file_info ( const file_info )
default

◆ ~file_info()

file_info::~file_info ( )
default

Member Function Documentation

◆ get_line()

std::string file_info::get_line ( std::size_t  line) const

Definition at line 40 of file file-info.cc.

Referenced by get_lines().

◆ get_lines()

std::deque< std::string > file_info::get_lines ( std::size_t  line,
std::size_t  num_lines 
) const

Definition at line 63 of file file-info.cc.

References get_line(), and num_lines().

◆ line_offsets()

std::vector<std::size_t> file_info::line_offsets ( ) const
inline

Definition at line 74 of file file-info.h.

◆ num_lines()

std::size_t file_info::num_lines ( ) const
inline

Definition at line 70 of file file-info.h.

Referenced by get_lines().

◆ operator=()

file_info& file_info::operator= ( const file_info )
default

◆ size()

std::size_t file_info::size ( ) const
inline

Definition at line 78 of file file-info.h.

◆ text()

std::string file_info::text ( ) const
inline

Definition at line 72 of file file-info.h.

◆ timestamp()

sys::time file_info::timestamp ( ) const
inline

Definition at line 76 of file file-info.h.


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