All Frameworks Class Hierarchy This Framework Previous Next Indexes
SPAbase Class output_callback
SPAbase.toolkit_callback
|
+---output_callback
Usage: you can derive this class.
public class output_callback
Creates output callback standard output for ACIS.
Role: The output_callback implements standard output for ACIS.
Any time a standard C output call is made within ACIS, that call is redirected
through this callback class. At that point the platform-specific implementation
of output_callback obtains the output from its natural output stream.
Constructor and Destructor Index
- o
output_callback(FILE*)
- C++ constructor, creating an output_callback using the specified parameters.
- o
~output_callback()
- Destroys this callback.
Method Index
- o
flush()
- Called in response to fflush for the specified file.
- o
print_string(char*)
- Writes string to the output device.
- o
write_data(void*,int,int)
- Writes from array data, n items of size to the output device.
Data Member Index
- o
fp
- The file pointer to which this callback relates.
Constructor and Destructor
o output_callback
public output_callback( | FILE* | out_fp) |
-
C++ constructor, creating an output_callback using the specified parameters.
Role: Remembers the file to which this callback relates.
- Parameters:
-
- out_fp
- output file pointer.
o ~output_callback
protected virtual ~output_callback( | ) |
-
Destroys this callback.
Methods
o flush
public virtual int flush( | ) |
-
Called in response to fflush for the specified file.
o print_string
public virtual int print_string( | const char* | str) |
-
Writes string to the output device.
- Parameters:
-
- str
- string to write.
o write_data
public virtual int write_data( | const void* | data, |
| int | size, |
| int | nitems) |
-
Writes from array data, n items of size to the output device.
- Parameters:
-
- data
- items in list.
- size
- output device size.
- nitems
- number of items.
Data Members
o fp
protected FILE *fp
-
The file pointer to which this callback relates.
This object is included in the file: acoutput.hxx