Public Member Functions | Public Attributes | List of all members
MockSource Class Reference
Inheritance diagram for MockSource:
Inheritance graph
[legend]

Public Member Functions

virtual void close ()
 Close the owned fd. If deleteOnClose was specified at construction, the object is deleted. More...
 
virtual unsigned handleEvent (unsigned eventType)
 Return true to continue monitoring this source. More...
 
 MockSource (int fd)
 
virtual ~MockSource ()
 
- Public Member Functions inherited from XmlRpc::XmlRpcSource
int getfd () const
 Return the file descriptor being monitored. More...
 
bool getKeepOpen () const
 Return whether the file descriptor should be kept open if it is no longer monitored. More...
 
void setfd (int fd)
 Specify the file descriptor to monitor. More...
 
void setKeepOpen (bool b=true)
 Specify whether the file descriptor should be kept open if it is no longer monitored. More...
 
 XmlRpcSource (int fd=-1, bool deleteOnClose=false)
 
virtual ~XmlRpcSource ()
 Destructor. More...
 

Public Attributes

int close_calls
 
unsigned event_result
 
int handleEvent_calls
 
unsigned last_event
 

Detailed Description

Definition at line 121 of file test_dispatch.cpp.

Constructor & Destructor Documentation

◆ MockSource()

MockSource::MockSource ( int  fd)
inline

Definition at line 123 of file test_dispatch.cpp.

◆ ~MockSource()

virtual MockSource::~MockSource ( )
inlinevirtual

Definition at line 128 of file test_dispatch.cpp.

Member Function Documentation

◆ close()

virtual void MockSource::close ( )
inlinevirtual

Close the owned fd. If deleteOnClose was specified at construction, the object is deleted.

Reimplemented from XmlRpc::XmlRpcSource.

Definition at line 137 of file test_dispatch.cpp.

◆ handleEvent()

virtual unsigned MockSource::handleEvent ( unsigned  eventType)
inlinevirtual

Return true to continue monitoring this source.

Implements XmlRpc::XmlRpcSource.

Definition at line 131 of file test_dispatch.cpp.

Member Data Documentation

◆ close_calls

int MockSource::close_calls

Definition at line 146 of file test_dispatch.cpp.

◆ event_result

unsigned MockSource::event_result

Definition at line 144 of file test_dispatch.cpp.

◆ handleEvent_calls

int MockSource::handleEvent_calls

Definition at line 142 of file test_dispatch.cpp.

◆ last_event

unsigned MockSource::last_event

Definition at line 143 of file test_dispatch.cpp.


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


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:22