56 LOG_POST(
Info <<
"Initializing Visible Range Service...");
58 LOG_POST(
Info <<
"Finished initializing Visible Range Service");
63 LOG_POST(
Info <<
"Shutting down Visible Range Service...");
66 LOG_POST(
Info <<
"Finished shutting down Visible Range Service");
77 ERR_POST(
"CVisibleRangeService::AttachClient() - client already registered");
88 ERR_POST(
"CVisibleRangeService::DetachClient() - client is not attached");
95 static bool fReentry =
false;
105 (**it).OnVisibleRangeChanged (vrange,
source);
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
class CRegistryReadView provides a nested hierarchical view at a particular key.
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
bool GetBool(const string &key, bool default_val=false) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
virtual void InitService()
vector< IVisibleRangeClient * > TClients
virtual void LoadSettings()
virtual void ShutDownService()
virtual ~CVisibleRangeService()
virtual void BroadcastVisibleRange(const CVisibleRange &vrange, IVisibleRangeClient *source)
virtual void SaveSettings() const
virtual void AttachClient(IVisibleRangeClient *client)
virtual void DetachClient(IVisibleRangeClient *client)
virtual void SetRegistryPath(const string &path)
static void SetDefaultVisibleRangePolicy(EBasicPolicy policy)
static bool IsAutoBroadcast()
static EBasicPolicy GetDefaultVisibleRangePolicy()
static void SetAutoBroadcast(bool flag)
IVisibleRangeClient - represents an object that wants notifications about visible range changes.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Info(CExceptionArgs_Base &args)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const CharType(& source)[N]
static CNamedPipeClient * client
static const char * kAutoBroadcast
static const char * kPolicy