The Pedigree Project 0.1
Public Types | Public Member Functions | Private Attributes | List of all members
ServiceFeatures Class Reference

#include <ServiceFeatures.h>

+ Collaboration diagram for ServiceFeatures:

Public Types

enum  Type {
  write = 16 , read = 1 , touch = 2 , probe = 4 ,
  withdraw = 8
}
 

Public Member Functions

virtual bool provides (Type service)
 
virtual void add (Type s)
 
virtual void remove (Type s)
 

Private Attributes

uint32_t m_OpEnum
 

Detailed Description

Service Operation Enumeration

This class provides a central interface for finding out the features a Service exposes to the system.

Definition at line 31 of file ServiceFeatures.h.

Member Enumeration Documentation

◆ Type

Enumerator
write 

Write: send data to the Service. Open to interpretation (OTI)

read 

Read: obtain data form the service. OTI

touch 

Touch: inform of new state, pass relevant object data

probe 

Probe: what's happening? OTI

withdraw 

Withdraw: remove state previously registered with touch.

Definition at line 33 of file ServiceFeatures.h.

Constructor & Destructor Documentation

◆ ServiceFeatures()

ServiceFeatures::ServiceFeatures ( )

Definition at line 22 of file ServiceFeatures.cc.

◆ ~ServiceFeatures()

ServiceFeatures::~ServiceFeatures ( )
virtual

Definition at line 23 of file ServiceFeatures.cc.

Member Function Documentation

◆ add()

void ServiceFeatures::add ( Type  s)
virtual

Used by the Service itself when installing

Definition at line 29 of file ServiceFeatures.cc.

References provides().

◆ provides()

bool ServiceFeatures::provides ( Type  service)
virtual

Does the operation provide a specific service?

Definition at line 25 of file ServiceFeatures.cc.

Referenced by add(), ScsiDisk::initialise(), panic(), remove(), ServiceManager::serve(), PartitionService::serve(), and Debugger::start().

+ Here is the caller graph for this function:

◆ remove()

void ServiceFeatures::remove ( Type  s)
virtual

Used by the Service itself to dynamically change offered features

Definition at line 34 of file ServiceFeatures.cc.

References provides().

Member Data Documentation

◆ m_OpEnum

uint32_t ServiceFeatures::m_OpEnum
private

Definition at line 63 of file ServiceFeatures.h.


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