TAO_Implementation_Repository 4.0.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 () | |
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_Info * | operator-> () const |
const Server_Info access | |
const Server_Info & | operator* () const |
const Server_Info& access | |
const Server_Info_Ptr & | edit (bool active=true) |
bool | null () const |
Indicate it Server_Info_Ptr is null. | |
Private Member Functions | |
const UpdateableServerInfo & | operator= (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. | |
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 | ( | ) |
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 | ( | ) | 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 | ( | ) |
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.