commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::Interface Class Reference

#include <Interface.h>

+ Inheritance diagram for commore::Interface:

Public Member Functions

 Interface (const AChar *name)
 
virtual ~Interface ()
 
virtual bool is_proxy () const
 
virtual long call (const Tuple &in_args, Tuple &out_args)
 
virtual long call (const Tuple &in_args, Tuple &out_args, const Tuple *param)
 
const AStringget_name () const
 
virtual PService get_service () const
 
CriticalSectionget_cs () const
 
virtual bool get_session_context (Tuple &t)
 
virtual void set_session_context (const Tuple &session_context)
 
virtual bool get_self_session_context (Tuple &t) const
 
virtual void set_self_session_context ()
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void interface_release ()
 
virtual void Run ()
 
virtual CriticalSectionget_cs ()
 

Protected Member Functions

bool set_service (const PService &service)
 
 Interface (const Interface &)
 

Protected Attributes

Internals_internals_
 

Friends

class Service
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const ACharfactory_name ()
 

Detailed Description

An Interface is the equivalent of an implemented interface of a specific object, in an oo system. That is, it gives access to a subset of an object's implemented methods, those defined by the implemented interface. The list of interfaces is for the use of Service class.

Constructor & Destructor Documentation

Interface::Interface ( const AChar name)
Parameters
nameof interface
Interface::~Interface ( )
virtual
commore::Interface::Interface ( const Interface )
inlineprotected

Member Function Documentation

long Interface::call ( const Tuple in_args,
Tuple out_args 
)
virtual

Base call method

Parameters
in_args
out_args
Returns
call status

Reimplemented in commore::ProxyService, commore::Service, and commore::ProxyInterface.

long Interface::call ( const Tuple in_args,
Tuple out_args,
const Tuple param 
)
virtual

Reimplemented in commore::ProxyInterface.

CriticalSection * Interface::get_cs ( ) const
Returns
critical section pointer (protection of Interface AutoRef)
const AString & Interface::get_name ( ) const
Returns
interface name
bool Interface::get_self_session_context ( Tuple t) const
virtual

Manage self session (needed for direct access to impl. note: these function work for Interface and Service they are needed ONLY on server side, when doing direct calls to another service, while executing a call()

Reimplemented in commore::Service.

PService Interface::get_service ( ) const
virtual
Returns
service interface belong to
bool Interface::get_session_context ( Tuple t)
virtual

Reimplemented in commore::Service.

virtual bool commore::Interface::is_proxy ( ) const
inlinevirtual
Returns
true if interface is not an implementation but a proxy

Reimplemented in commore::ProxyService, and commore::ProxyInterface.

void Interface::set_self_session_context ( )
virtual

Reimplemented in commore::Service.

bool Interface::set_service ( const PService service)
protected
void Interface::set_session_context ( const Tuple session_context)
virtual

Reimplemented in commore::Service.

Friends And Related Function Documentation

friend class Service
friend

Member Data Documentation

Internals_* commore::Interface::internals_
protected

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