TAO_Implementation_Repository
2.2.6
|
Class for managing changes to ServerInfo memory to ensure it is persisted. More...
#include <UpdateableServerInfo.h>
Public Member Functions | |
UpdateableServerInfo (Locator_Repository *repo, const ACE_CString &name, int pid=0) | |
UpdateableServerInfo (Locator_Repository *repo, const Server_Info_Ptr &si, bool reset_start_count=false) | |
UpdateableServerInfo (const Server_Info &si) | |
~UpdateableServerInfo (void) | |
destructor (updates repo if needed) More... | |
void | update_repo (void) |
explicitly update repo if needed 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 (void) |
void | needs_update (void) |
force indication of update needed More... | |
bool | null (void) const |
indicate it Server_Info_Ptr is null More... | |
Private Member Functions | |
UpdateableServerInfo (const UpdateableServerInfo &) | |
const UpdateableServerInfo & | operator= (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... | |
Class for managing changes to ServerInfo memory to ensure it is persisted.
UpdateableServerInfo::UpdateableServerInfo | ( | Locator_Repository * | 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 | ( | Locator_Repository * | 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 | ( | const Server_Info & | si | ) |
constructor (no repo updates will be performed)
si | a Server_Info to create a non-stored Server_Info_Ptr from |
UpdateableServerInfo::~UpdateableServerInfo | ( | void | ) |
destructor (updates repo if needed)
|
private |
const Server_Info_Ptr & UpdateableServerInfo::edit | ( | void | ) |
retrieve smart pointer to non-const Server_Info and indicate repo update required
void UpdateableServerInfo::needs_update | ( | void | ) |
force indication of update needed
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::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