예제 #1
0
void CSraPath::AddVolPath(const string& vol_path)
{
    if ( vol_path.empty() ) {
        return;
    }
    CFastMutexGuard guard(sx_PathMutex);
    if ( rc_t rc = SRAPathAddVolPath(*this, vol_path.c_str()) ) {
        NCBI_THROW3(CSraException, eInitFailed,
                    "Cannot add vol path", rc, vol_path);
    }
}
예제 #2
0
 /* AddVolPath
  *  add a volume path
  *
  *  "vol" [ IN ] - NUL-terminated volume search path
  *  may be a compound path with ':' separator characters, e.g.
  *  "sra2:sra1:sra0"
  *
  *  NB - volumes are searched in the order provided,
  *  first to last. they are never re-ordered.
  */
 inline rc_t AddVolPath ( const char *vol )  throw()
 {
     return SRAPathAddVolPath ( this, vol );
 }