62 objects::CScope* scope)
const
68 for ( ; iter; ++iter) {
105 if (&scope == it->GetScope()) {
116 if (
id == it->GetId()) {
140 const string& s = it->GetTitle();
149 vector<CGBProjectHandle::TId> projIds;
152 projIds.push_back(it->GetId());
160 vector<CGBProjectHandle::TId> projIds;
163 projIds.push_back(it->GetId());
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CAtomicCounter::TValue TId
void GetLabel(const CObject &obj, string *str, CLabel::ELabelType type, objects::CScope *scope) const
CGBProjectHandle * GetProjectFromId(CGBProjectHandle::TId id)
CGBProjectHandle * GetProjectFromScope(const CScope &scope)
vector< CGBProjectHandle::TId > GetLoadedProjects() const
static CAtomicCounter m_IdCounter
CGBWorkspace.
vector< CGBProjectHandle::TId > GetUnloadedProjects() const
TId m_Id
instance run-time Id, unique within an application session
string MakeUniqueProjectTitle(const string &label) const
Create a unique label for a project.
bool RemoveProject(CGBProjectHandle::TId id)
Template class for iteration on objects of class C (non-medifiable version)
Template class for iteration on objects of class C.
CUniqueLabelGenerator Modifies the given label so that it becomes unique in the given set of labels b...
bool RemoveProject(CGBProjectHandle::TId id)
const CWorkspaceFolder * FindParentFolder(CGBProjectHandle::TId id) const
static const char * str(char *buf, int n)
TValue Add(int delta) THROWS_NONE
Atomically add value (=delta), and return new counter value.
static void RegisterLabelHandler(const string &type, ILabelHandler &handler)
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
string MakeUniqueLabel(const string &label) const
after considering all existing labels produces a modified unique version of the original label
static bool HasHandler(const CTypeInfo &type)
void AddExistingLabel(const string &label)
adds an existing label
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
TWorkspace & SetWorkspace(void)
Assign a value to Workspace data member.
bool IsSetWorkspace(void) const
projects in this workspace Check if a value has been assigned to Workspace data member.
const TWorkspace & GetWorkspace(void) const
Get the Workspace member data.