TAO_Implementation_Repository 4.0.3
Loading...
Searching...
No Matches
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 ()
 Destructor (updates repo if needed)
 
void update_repo ()
 Explicitly update repo if needed.
 
void notify_remote_access (ImplementationRepository::AAM_Status state)
 Update remote access state.
 
void server_info (const Server_Info_Ptr &si)
 Assign a server info.
 
const Server_Infooperator-> () const
 const Server_Info access
 
const Server_Infooperator* () const
 const Server_Info& access
 
const Server_Info_Ptredit (bool active=true)
 
bool null () const
 Indicate it Server_Info_Ptr is null.
 

Private Member Functions

const UpdateableServerInfooperator= (const UpdateableServerInfo &)
 

Private Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ UpdateableServerInfo() [1/3]

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() [2/3]

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() [3/3]

UpdateableServerInfo::UpdateableServerInfo ( UpdateableServerInfo & other)

◆ ~UpdateableServerInfo()

UpdateableServerInfo::~UpdateableServerInfo ( )

Destructor (updates repo if needed)

Member Function Documentation

◆ edit()

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

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

◆ notify_remote_access()

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

Update remote access state.

◆ null()

bool UpdateableServerInfo::null ( ) const

Indicate it Server_Info_Ptr is null.

◆ operator*()

const Server_Info & UpdateableServerInfo::operator* ( ) const

const Server_Info& access

◆ operator->()

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

const Server_Info access

◆ operator=()

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

◆ server_info()

void UpdateableServerInfo::server_info ( const Server_Info_Ptr & si)

Assign a server info.

◆ update_repo()

void UpdateableServerInfo::update_repo ( )

Explicitly update repo if needed.

Member Data Documentation

◆ needs_update_

bool UpdateableServerInfo::needs_update_
private

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

◆ repo_

Repository_Ptr UpdateableServerInfo::repo_
private

The repo.

◆ si_

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: