TAO_Implementation_Repository  2.3.3
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 <UpdateableServerInfo.h>

Collaboration diagram for UpdateableServerInfo:
Collaboration graph
[legend]

Public Member Functions

 UpdateableServerInfo (const Repository_Ptr &repo, const ACE_CString &name, int pid=0)
 
 UpdateableServerInfo (const Repository_Ptr &repo, const Server_Info_Ptr &si, bool reset_start_count=false)
 
 UpdateableServerInfo (UpdateableServerInfo &other)
 
 ~UpdateableServerInfo (void)
 destructor (updates repo if needed) More...
 
void update_repo (void)
 explicitly update repo if needed More...
 
void notify_remote_access (ImplementationRepository::AAM_Status state)
 update remote access state More...
 
void server_info (const Server_Info_Ptr &si)
 assign a server info More...
 
const Server_Infooperator-> () const
 const Server_Info access More...
 
const Server_Infooperator* () const
 const Server_Info& access More...
 
const Server_Info_Ptredit (bool active=true)
 
bool null (void) const
 indicate it Server_Info_Ptr is null More...
 

Private Member Functions

const UpdateableServerInfooperator= (const UpdateableServerInfo &)
 

Private Attributes

Repository_Ptr repo_
 the repo More...
 
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 ( const Repository_Ptr repo,
const ACE_CString name,
int  pid = 0 
)

constructor

Parameters
repothe repo to report updates to
namethe name of the server to retrieve
pidan optional process id to further discriminate the server
UpdateableServerInfo::UpdateableServerInfo ( const Repository_Ptr repo,
const Server_Info_Ptr si,
bool  reset_start_count = false 
)

constructor

Parameters
repothe repo to report updates to
sian already retrieved Server_Info_Ptr
reset_start_countcontrols the reset of the start count value
UpdateableServerInfo::UpdateableServerInfo ( UpdateableServerInfo other)
UpdateableServerInfo::~UpdateableServerInfo ( void  )

destructor (updates repo if needed)

Member Function Documentation

const Server_Info_Ptr & UpdateableServerInfo::edit ( bool  active = true)

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

void UpdateableServerInfo::notify_remote_access ( ImplementationRepository::AAM_Status  state)

update remote access state

bool UpdateableServerInfo::null ( void  ) 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::server_info ( const Server_Info_Ptr si)

assign a server info

void UpdateableServerInfo::update_repo ( void  )

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

Repository_Ptr UpdateableServerInfo::repo_
private

the repo

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: