|  | PUMA Library Reference Manual
    | 
#include <Puma/Source.h>
 Inheritance diagram for Puma::Source:
 Inheritance diagram for Puma::Source:Interface for all input sources.
| Public Member Functions | |
| Source () | |
| Constructs an empty source object. | |
| virtual | ~Source () | 
| Destroys the source object. | |
| virtual int | read (char *buffer, int n)=0 | 
| Read n bytes from the source into the given string buffer. | |
| virtual int | size () | 
| Get the size of the source. | |
| 
 | inline | 
Constructs an empty source object.
| 
 | inlinevirtual | 
Destroys the source object.
| 
 | pure virtual | 
Read n bytes from the source into the given string buffer.
| buffer | The string used as buffer for the bytes read. | 
| n | The number of bytes to read. | 
Implemented in Puma::FdSource, Puma::FileSource, Puma::KeyboardSource, Puma::Pipe, and Puma::StringSource.
| 
 | inlinevirtual | 
Get the size of the source.
To be implemented if a specific source supports asking for its size.
Reimplemented in Puma::FdSource, and Puma::StringSource.