eAsnObjectNotMatch = 101,
60eUnsupportedSerialFmt = 102,
61eUnsupportedCompression = 103
66 switch(GetErrCode()) {
67 caseeInvalidKey:
return "eInvalidKey";
68 caseeAsnObjectNotMatch:
return "eAsnObjectNotMatch";
69 caseeUnsupportedSerialFmt:
return "eUnsupportedSerialFmt";
70 caseeUnsupportedCompression:
return "eUnsupportedCompression";
93 typedeflist< CRef<objects::CSeq_annot> >
TAnnots;
112 const string& nc_service =
"",
113 const string& password =
"",
119 const string& GetServiceName()
const;
124 voidSetCommTimeout(
floatsec);
133 stringSaveProject(
constobjects::IGBProject& project,
134 const string&
key=
"",
137 unsigned inttime_to_live = 0,
148 const string&
key=
"",
151 unsigned inttime_to_live = 0,
160 stringSaveString(
const string&
str,
161 const string&
key=
"",
163 unsigned inttime_to_live = 0,
175 unsigned inttime_to_live = 0,
190 unsigned inttime_to_live = 0,
197 stringSaveRawData(
const void*
buf,
size_t size,
198 const string&
key=
"",
199 unsigned inttime_to_live = 0,
204 const string&
key=
"",
205 unsigned inttime_to_live = 0,
210 stringClone(
const string&
key,
211 unsigned inttime_to_live = 0,
243unique_ptr<CNcbiIstream> GetIstream(
const string&
key,
boolraw=
false);
248unique_ptr<CObjectIStream> GetObjectIstream(
const string&
key);
251 voidGetString(
const string&
key,
string&
str);
254 void GetVector(
const string&
key, vector<char>& vec);
259 voidDelete(
const string&
key);
266 boolExists(
const string&
key);
272unique_ptr<CNcbiOstream> x_GetOutputStream(
string&
key,
273 unsigned inttime_to_live,
290 unsigned inttime_to_live = 0,
297 boolno_throw =
false)
const;
303 boolno_throw =
false)
const;
309 boolno_throw =
false)
const;
Basic network-based data object I/O.
Network BLOB storage API.
virtual const char * GetErrCodeString() const
Get error code interpreted as text.
NCBI_EXCEPTION_DEFAULT(CPrjStorageException, CException)
string m_Password
For password-protected Blobs.
const string & GetServiceName() const
Uint2 m_Version
Version number for stored data blob.
list< CRef< objects::CSeq_annot > > TAnnots
AutoPtr< CNetCacheAPI > m_NC
ESerialDataFormat TDataFormat
ENC_Compression TCompressionFormat
TDataFormat m_DataFmt
Data serialization format (one of ESerialDataFormat).
CProjectStorage(const CProjectStorage &)=delete
TCompressionFormat m_CmprsFmt
Data compression format.
Uint2 m_Magic
Data/application related magic number.
Base class for all serializable objects.
IGBProject - abstract interface for a project used by CGBProjectHandle.
static const char * str(char *buf, int n)
EErrCode
Error types that an application can generate.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
ESerialDataFormat
Data file format.
@ eSerial_AsnBinary
ASN.1 binary.
unsigned TNetStorageFlags
Bitwise OR of ENetStorageFlags.
uint16_t Uint2
2-byte (16-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
#define NCBI_UUDUTIL_EXPORT
void GetVector(const CHitElemGlyph &glyph, TVector &v)
CProject * GetProject(wxTreeCtrl &treeCtrl, const CItem &item)
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
static CNamedPipeClient * client
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4