Belle II Software  release-08-01-10
InputContext Class Referenceabstract

Class representing a resource context for gearbox. More...

#include <InputHandler.h>

Inheritance diagram for InputContext:

Public Member Functions

virtual int readXmlData (char *buffer, int buffsize)=0
 Read a block of XML data into buffer, at most buffsize bytes and return the number of bytes read. More...
 
virtual ~InputContext ()
 Close the context.
 

Detailed Description

Class representing a resource context for gearbox.

This class is responsible for providing read access to an XML resource and to free any memory associated with the resource on destruction

Definition at line 25 of file InputHandler.h.

Member Function Documentation

◆ readXmlData()

virtual int readXmlData ( char *  buffer,
int  buffsize 
)
pure virtual

Read a block of XML data into buffer, at most buffsize bytes and return the number of bytes read.

Parameters
bufferpointer where to write XML data
buffsizenumber of bytes to write, actual number of bytes can be less if XML is shorter
Returns
number of bytes actually written

Implemented in StringContext, and FileContext.


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