TAO_Implementation_Repository
2.3.3
|
Class for managing changes to ServerInfo memory to ensure it is persisted. More...
#include <UpdateableServerInfo.h>
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_Info * | operator-> () const |
const Server_Info access More... | |
const Server_Info & | operator* () const |
const Server_Info& access More... | |
const Server_Info_Ptr & | edit (bool active=true) |
bool | null (void) const |
indicate it Server_Info_Ptr is null More... | |
Private Member Functions | |
const UpdateableServerInfo & | operator= (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... | |
Class for managing changes to ServerInfo memory to ensure it is persisted.
UpdateableServerInfo::UpdateableServerInfo | ( | const Repository_Ptr & | repo, |
const ACE_CString & | name, | ||
int | pid = 0 |
||
) |
constructor
repo | the repo to report updates to |
name | the name of the server to retrieve |
pid | an 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
repo | the repo to report updates to |
si | an already retrieved Server_Info_Ptr |
reset_start_count | controls the reset of the start count value |
UpdateableServerInfo::UpdateableServerInfo | ( | UpdateableServerInfo & | other | ) |
UpdateableServerInfo::~UpdateableServerInfo | ( | void | ) |
destructor (updates repo if needed)
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
|
private |
void UpdateableServerInfo::server_info | ( | const Server_Info_Ptr & | si | ) |
assign a server info
void UpdateableServerInfo::update_repo | ( | void | ) |
explicitly update repo if needed
|
private |
the server info has changes and needs to be updated to the repo
|
private |
the repo
|
private |
the retrieved, passed, or non-stored server info