Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Server::DefaultShareCallback< _ShareType, _OneWay > Class Template Reference

ServerState's default share callback. More...

#include <ShareCallback.h>

Inheritance diagram for CODEX_Server::DefaultShareCallback< _ShareType, _OneWay >:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Server::DefaultShareCallback< _ShareType, _OneWay >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef CODEX_VSS::LabeledShare<
_ShareType, _OneWay > 
LSType
 Convenient shorthand for the type of a labeled share.

typedef LSType::LabelType LabelType
 Convenient shorthand for the type of a label.


Public Methods

 DefaultShareCallback (const LSType *ls)
 Constructor.

virtual ~DefaultShareCallback ()
 Virtual destructor.

const LSTypeoperator() (const LabelType &label, unsigned int server) const
 Get the sharing for a specified label.


Detailed Description

template<class _ShareType, class _OneWay>
class CODEX_Server::DefaultShareCallback< _ShareType, _OneWay >

ServerState's default share callback.

During configuration, ServerState creates default callbacks for its secrets until they can be taken over by another module.

Definition at line 68 of file ShareCallback.h.


Member Function Documentation

template<class _ShareType, class _OneWay>
const LSType& CODEX_Server::DefaultShareCallback< _ShareType, _OneWay >::operator() const LabelType   label,
unsigned int    server
const [inline, virtual]
 

Get the sharing for a specified label.

This method should be implemented by a derived class.

Parameters:
label  The label of the sharing to retrieve.
server  The requesting server.
Returns:
The corresponding labeled sharing.

Implements CODEX_Server::ShareCallbackBase< _ShareType, _OneWay >.

Definition at line 86 of file ShareCallback.h.

References CODEX_Server::DefaultShareCallback< _ShareType, _OneWay >::LabelType.


The documentation for this class was generated from the following file:
Generated on Wed Jun 2 16:33:19 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18