A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/file__db__engine_8cpp_source.html below:

NCBI C++ ToolKit: src/sample/app/objmgr/file_db_engine.cpp Source File

58  return

objects::CSeq_id_Handle::GetHandle(*seqid);

60  static string ToString

(

const

objects::CSeq_id_Handle&

id

)

65

*os << *

id

.GetSeqId();

82  if

(

file

.Exists()) {

116  else if

(cmdcount < 100)

118  else if

(cmdcount < 1000)

131  const string

& blob_id =

cmd

.GetBlobId();

132  if

(blob_id.empty()) {

154  for

(

const auto

&

f

: files) {

156

fnames.push_back(

f

->GetName());

158  if

(fnames.empty()) {

164  for

(

const auto

& name : fnames) {

169

cmds.push_back(

cmd

);

222  for

(

const auto

& it :

m_TmpIds

) {

241  int

cmdcount = it.second;

242  while

(cmdcount > 0) {

245  if

(

file

.Exists()) {

257  while

(cmdcount > it.second) {

260  if

(

file

.Exists()) {

User-defined methods of the data storage class.

CNcbiIstream & ReadMap(CNcbiIstream &is, TMap &cont)

Read a map from a stream.

CNcbiOstream & WriteMap(CNcbiOstream &os, const TMap &cont)

Write a map to a stream.

static objects::CSeq_id_Handle FromString(const string &str)

static string ToString(const objects::CSeq_id_Handle &id)

template<typename TElem> CContElemConverter

virtual void SaveCommand(const CSeqEdit_Cmd &cmd)

virtual void CommitTransaction()

void CreateBlob(const string &blobid)

virtual void RollbackTransaction()

ESerialDataFormat m_DataFormat

string x_GetCmdFileName(const string &blobid, int cmdcount)

virtual void NotifyIdChanged(const CSeq_id_Handle &id, const string &newblobid)

virtual bool HasBlob(const string &blobid) const

virtual bool FindSeqId(const CSeq_id_Handle &id, string &blobid) const

virtual void GetCommands(const string &blob_id, TCommands &cmds) const

virtual void BeginTransaction()

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

list< CRef< CSeqEdit_Cmd > > TCommands

container_type::const_iterator const_iterator

const_iterator end() const

const_iterator find(const key_type &key) const

static const char * str(char *buf, int n)

TEntries GetEntries(const string &mask=kEmptyStr, TGetEntriesFlags flags=0) const

Get directory entries based on the specified "mask".

bool CreatePath(TCreateFlags flags=fCreate_Default) const

Create the directory path recursively possibly more than one at a time.

virtual bool Exists(void) const

Check if directory "dirname" exists.

static char GetPathSeparator(void)

Get path separator symbol specific for the current platform.

virtual bool Remove(TRemoveFlags flags=eRecursive) const

Delete existing directory.

const string & GetPath(void) const

Get entry path.

@ fIgnoreRecursive

Suppress "self recursive" elements (the directories "." and "..").

@ eSerial_AsnText

ASN.1 text.

static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)

Create serial object writer and attach it to an output stream.

static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)

Create serial object reader and attach it to an input stream.

#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::ofstream CNcbiOfstream

Portable alias for ofstream.

IO_PREFIX::ifstream CNcbiIfstream

Portable alias for ifstream.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...

NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.


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