78 }
NCBI_CATCH(
"Reading " +
string(path.ToUTF8()));
86 }
NCBI_CATCH(
"Reading " +
string(path.ToUTF8()));
102 }
NCBI_CATCH(
"Writing " +
string(path.ToUTF8()));
145 field->
SetData().SetObject(*layout);
CRegistryReadView GetReadView(const string §ion) const
void Write(CNcbiOstream &istr) const
CRegistryWriteView GetWriteView(const string §ion)
class CRegistryReadView provides a nested hierarchical view at a particular key.
CConstRef< objects::CUser_field > GetField(const string &key) const
provide raw field access
CRef< objects::CUser_field > SetField(const string &key)
provide raw field access
bool DeleteField(const string &key)
delete the specified field (and any of its subfields) from this view and from its registry.
static wxString ResolvePath(const wxString &path, const wxString &rel_name)
Utility function to hide the platform specifics of locating our standard directories and files.
static wxString ResolvePathExisting(const wxString &path, const wxString &delim=wxT(","))
Utility function to hide the platform specifics of locating our standard directories.
CConstRef< objects::CUser_object > GetDefaultLayout()
CRef< CRegistryFile > m_Registry
CConstRef< objects::CUser_object > GetLayout()
CRegistryWriteView GetWriteView(const string §ion)
void SetLayout(objects::CUser_object *layout)
CRegistryReadView GetReadView(const string §ion) const
CRef< CRegistryFile > m_Default
static CWndLayoutReg & GetInstance()
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
#define NCBI_CATCH(message)
Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
const TData & GetData(void) const
Get the Data member data.
bool CanGetData(void) const
Check if it is safe to call GetData method.
const TObject & GetObject(void) const
Get the variant data.
void SetData(TData &value)
Assign a value to Data data member.
bool IsObject(void) const
Check if variant Object is selected.
static const wxChar * kLayoutPath
static const char * kWindowPos
static const char * kWindowLayouts2
string GetVideoId()
Returns id of video configuration to be used for saving settings.