chomik 0.2.1
experimental and minimalistic programming language

My name is Pawel Biernacki.
I am a software engineer.
This site is my hobby project.

Loading...
Searching...
No Matches
chomik::generic_stream_file_input Class Reference

#include <chomik.h>

Inheritance diagram for chomik::generic_stream_file_input:
Collaboration diagram for chomik::generic_stream_file_input:

Public Member Functions

 generic_stream_file_input (const std::string &file_name)
 
virtual bool get_allows_input () const
 
virtual bool get_should_be_opened () const override
 
virtual bool get_should_be_closed () const override
 
virtual std::istream & get_input_stream () override
 
virtual bool read_char (unsigned char &target) override
 
virtual void getline () override
 
virtual std::string getline_result () const override
 
virtual int read_integer () override
 
virtual bool get_is_good () override
 
- Public Member Functions inherited from chomik::generic_stream
 generic_stream ()
 
void set_max_size (int ms)
 
virtual ~generic_stream ()
 
virtual bool get_allows_output () const
 
virtual std::ostream & get_output_stream ()
 
virtual std::string get_result () const
 
virtual void set_result (const std::string &r)
 
virtual std::string read_string ()
 

Additional Inherited Members

- Protected Member Functions inherited from chomik::generic_stream
void read_string_of_x_characters (std::string &target, unsigned x)
 
- Protected Attributes inherited from chomik::generic_stream
int max_size
 

Constructor & Destructor Documentation

◆ generic_stream_file_input()

chomik::generic_stream_file_input::generic_stream_file_input ( const std::string & file_name)
inline

Member Function Documentation

◆ get_allows_input()

virtual bool chomik::generic_stream_file_input::get_allows_input ( ) const
inlinevirtual

Reimplemented from chomik::generic_stream.

◆ get_input_stream()

virtual std::istream & chomik::generic_stream_file_input::get_input_stream ( )
inlineoverridevirtual

Reimplemented from chomik::generic_stream.

◆ get_is_good()

virtual bool chomik::generic_stream_file_input::get_is_good ( )
inlineoverridevirtual

Reimplemented from chomik::generic_stream.

◆ get_should_be_closed()

virtual bool chomik::generic_stream_file_input::get_should_be_closed ( ) const
inlineoverridevirtual

Reimplemented from chomik::generic_stream.

◆ get_should_be_opened()

virtual bool chomik::generic_stream_file_input::get_should_be_opened ( ) const
inlineoverridevirtual

Reimplemented from chomik::generic_stream.

◆ getline()

virtual void chomik::generic_stream_file_input::getline ( )
inlineoverridevirtual

Reimplemented from chomik::generic_stream.

◆ getline_result()

virtual std::string chomik::generic_stream_file_input::getline_result ( ) const
inlineoverridevirtual

Reimplemented from chomik::generic_stream.

◆ read_char()

virtual bool chomik::generic_stream_file_input::read_char ( unsigned char & target)
inlineoverridevirtual

Reimplemented from chomik::generic_stream.

◆ read_integer()

virtual int chomik::generic_stream_file_input::read_integer ( )
inlineoverridevirtual

Reimplemented from chomik::generic_stream.


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

copyright by Pawel Biernacki

Vantaa 2022