FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Private Attributes | List of all members
F_stream Class Reference

Class for file stream based on standard IO. More...

Inheritance diagram for F_stream:
Inheritance graph
[legend]
Collaboration diagram for F_stream:
Collaboration graph
[legend]

Public Member Functions

 F_stream (FILE *_fd)
 The constructor sets the file pointer. More...
 
virtual ~F_stream ()
 Empty destructor. More...
 
virtual int getC ()
 Returns the next character from the file. More...
 
virtual int read (void *buf, size_t m, size_t n)
 Reads the specified number of bytes from the file. More...
 
virtual int write (void *buf, size_t m, size_t n)
 Writes the specified number of bytes to the file. More...
 
- Public Member Functions inherited from FFa_stream
virtual ~FFa_stream ()
 Empty destructor. More...
 

Private Attributes

FILE * fd
 File pointer. More...
 

Additional Inherited Members

- Protected Member Functions inherited from FFa_stream
 FFa_stream ()
 Default constructor. More...
 

Detailed Description

Class for file stream based on standard IO.

Constructor & Destructor Documentation

◆ F_stream()

F_stream::F_stream ( FILE *  _fd)
inline

The constructor sets the file pointer.

◆ ~F_stream()

virtual F_stream::~F_stream ( )
inlinevirtual

Empty destructor.

Member Function Documentation

◆ getC()

virtual int F_stream::getC ( )
inlinevirtual

Returns the next character from the file.

Implements FFa_stream.

◆ read()

virtual int F_stream::read ( void *  buf,
size_t  m,
size_t  n 
)
inlinevirtual

Reads the specified number of bytes from the file.

Implements FFa_stream.

◆ write()

virtual int F_stream::write ( void *  buf,
size_t  m,
size_t  n 
)
inlinevirtual

Writes the specified number of bytes to the file.

Implements FFa_stream.

Member Data Documentation

◆ fd

FILE* F_stream::fd
private

File pointer.


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