TAO_Implementation_Repository  2.1.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UpdateableServerInfo Class Reference

Class for managing changes to ServerInfo memory to ensure it is persisted. More...

#include <Locator_Repository.h>

Collaboration diagram for UpdateableServerInfo:
Collaboration graph

Public Member Functions

 UpdateableServerInfo (Locator_Repository *repo, const ACE_CString &name)
 
 UpdateableServerInfo (Locator_Repository *repo, const Server_Info_Ptr &si)
 
 UpdateableServerInfo (const Server_Info &si)
 
 ~UpdateableServerInfo ()
 destructor (updates repo if needed) More...
 
void update_repo ()
 explicitly update repo if needed More...
 
const Server_Infooperator-> () const
 const Server_Info access More...
 
const Server_Infooperator* () const
 const Server_Info& access More...
 
const Server_Info_Ptredit ()
 
void needs_update ()
 force indication of update needed More...
 
bool null () const
 indicate it Server_Info_Ptr is null More...
 

Private Member Functions

 UpdateableServerInfo (const UpdateableServerInfo &)
 
const UpdateableServerInfooperator= (const UpdateableServerInfo &)
 

Private Attributes

Locator_Repository *const repo_
 the repo More...
 
const Server_Info_Ptr si_
 the retrieved, passed, or non-stored server info More...
 
bool needs_update_
 the server info has changes and needs to be updated to the repo More...
 

Detailed Description

Class for managing changes to ServerInfo memory to ensure it is persisted.

Constructor & Destructor Documentation

UpdateableServerInfo::UpdateableServerInfo ( Locator_Repository repo,
const ACE_CString name 
)

constructor

Parameters
repothe repo to report updates to
namethe name of the server to retrieve
UpdateableServerInfo::UpdateableServerInfo ( Locator_Repository repo,
const Server_Info_Ptr si 
)

constructor

Parameters
repothe repo to report updates to
sian already retrieved Server_Info_Ptr
UpdateableServerInfo::UpdateableServerInfo ( const Server_Info si)

constructor (no repo updates will be performed)

Parameters
sia Server_Info to create a non-stored Server_Info_Ptr from
UpdateableServerInfo::~UpdateableServerInfo ( )

destructor (updates repo if needed)

UpdateableServerInfo::UpdateableServerInfo ( const UpdateableServerInfo )
private

Member Function Documentation

const Server_Info_Ptr & UpdateableServerInfo::edit ( )

retrieve smart pointer to non-const Server_Info and indicate repo update required

void UpdateableServerInfo::needs_update ( )

force indication of update needed

bool UpdateableServerInfo::null ( ) const

indicate it Server_Info_Ptr is null

const Server_Info & UpdateableServerInfo::operator* ( ) const

const Server_Info& access

const Server_Info * UpdateableServerInfo::operator-> ( ) const

const Server_Info access

const UpdateableServerInfo& UpdateableServerInfo::operator= ( const UpdateableServerInfo )
private
void UpdateableServerInfo::update_repo ( )

explicitly update repo if needed

Member Data Documentation

bool UpdateableServerInfo::needs_update_
private

the server info has changes and needs to be updated to the repo

Locator_Repository* const UpdateableServerInfo::repo_
private

the repo

const Server_Info_Ptr UpdateableServerInfo::si_
private

the retrieved, passed, or non-stored server info


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