Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/BdbCondAdmin/BdbIntervalUtil.cc File Reference

#include <iostream.h>
#include <fstream.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include "BdbUtil/Bdb.hh"
#include "BdbTime/BdbTime.hh"
#include "BdbCond/BdbConditions.hh"
#include "BdbCond/BdbObsoleteDatabase.hh"
#include "BdbCond/BdbCondDatabaseMgr.hh"
#include "BdbCond/BdbIntervalR.hh"
#include "BdbCond/BdbIntervalGene.hh"
#include "BdbCond/BdbIntervalItr.hh"
#include "BdbCond/BdbCondRevision.hh"
#include "BdbCond/BdbCondContainerLink.hh"
#include "BdbCond/BdbCondPath.hh"
#include "BdbCond/BdbCondTransientCache.hh"
#include "BdbCond/BdbCondCacheItr.hh"
#include "BdbCond/BdbCondContainerProfile.hh"
#include "BdbCond/BdbCondHistoryOperations.hh"
#include "BdbCond/BdbCondDebug.hh"
#include "BdbAccess/BdbAuth.hh"
#include "BdbApplication/BdbDomain.hh"
#include "BdbDistribution/BdbStandardDbIdMgr.hh"
#include "BdbDistribution/BdbFdName.hh"
#include <ooIndex.h>
#include "BbrStdUtils/Tokenize.hh"
#include "boost/cregex.hpp"
#include "BbrStdUtils/RegExp.hh"
#include <map>
#include <vector>
#include <string>

Go to the source code of this file.

Namespaces

namespace  boost

Enumerations

enum  CmdType {
  CMD_UNKNOWN, CMD_HELP, CMD_DETECTORS, CMD_CONTAINERS,
  CMD_REGISTRY, CMD_REVISION, CMD_DEPENDENCY_LIST, CMD_DEPENDENCY_TREE,
  CMD_GENEALOGY, CMD_TOP_LIST, CMD_BASELINE_LIST, CMD_REVISION_LIST,
  CMD_DELETE, CMD_DELETE_MANY, CMD_COPY, CMD_CHECKPOINT,
  CMD_PRODUCE, CMD_REVISE2D, CMD_REVISE2D_UPDATE, CMD_REVISEOIDS,
  CMD_REVISEOIDS_UPDATE, CMD_REVISETOP, CMD_REVISETOP_UPDATE, CMD_REVISETOP_MANY,
  CMD_REVISETOP_MANY_UPDATE, CMD_CREATE_REVISION, CMD_DELETE_REVISION, CMD_CREATE_HISTORY,
  CMD_REMOVE_HISTORY, CMD_COMMENT, CMD_HISTORY, CMD_FETCHNSTORE,
  CMD_REMOVEINTERVAL, CMD_CLASSES, CMD_COMPOSITES, CMD_VALIDATE,
  CMD_CREATE_LINK, CMD_REMOVE_LINK, CMD_REMOVE_LINK_MANY, CMD_SHOW_LINK,
  CMD_LOCK_LINK, CMD_UNLOCK_LINK, CMD_MERGE, CMD_VERIFY_MERGE,
  CMD_MERGE2, CMD_VERIFY_MERGE2, CMD_SPLIT, CMD_COMPARE,
  CMD_PURGE, CMD_VERIFY, CMD_PROFILE, CMD_NANOCORRECTION,
  CMD_VERIFY_CONFIG, CMD_TRANSLATE_TIME, CMD_SYNCHRONIZE_INDEX
}

Functions

void error (const string &str)
void usage (const char *str=(char *) 0)
CmdType translateCommand (const char *str)
d_ULong translateRevisionId (const char *str)
int translateFormat (const char *str)
int translateConfigVersion (const char *str)
bool translateCopyLevelType (const char *str, BdbCondDatabaseMgr::LevelType &theLevelType)
const char * translateLocalContName (const char *str)
bool translateTime (const char *str, BdbTime &theTime)
bool translateNumber (const char *theString, BdbTime &theTime)
bool translateDateTimeZone (char *argv[], int &theNumAvailParams, int &theNextAvailPar, const char *theDataAndTimeKey, const char *theTimeZoneKey, BdbTime &theTime)
bool translateStrategy (const char *str, BdbObsoleteDatabase::SelectionStrategyType &theStrategy)
bool translateLongFormat (const char *str)
bool translateAll (const char *str)
bool translateNoBackup (const char *str)
bool translateOperation (const char *str, d_ULong &theOperation)
bool translateVerbose (const char *str)
bool translateOid (const char *str, ooId &theOid)
bool translate_d_ULong (const char *str, d_ULong &theValue)
d_ULong beginSec (const BdbHandle(BdbInterval)&theInterval)
d_ULong endSec (const BdbHandle(BdbInterval)&theInterval)
d_ULong versionSec (const BdbHandle(BdbInterval)&theInterval)
void printSeconds (d_ULong sec, char *str)
void printDate (d_ULong sec, char *str)
void getIntervalOid (const BdbHandle(BdbInterval)&theInterval, char *oid)
void getObjectOid (const BdbHandle(BdbInterval)&theInterval, char *oid)
void getIntervalRevision (const BdbHandle(BdbInterval)&theInterval, char *revision, char *revision_4)
void printNode (int level, const BdbHandle(BdbInterval)&theInterval, const char *givenName=(char *) 0, const char *nodeId=(char *) 0)
void printNextNode (int level, const BdbHandle(BdbInterval)&theInterval, const char *nodeId)
void printSubTree (const BdbHandle(ooGeneObj)&theGeneObj, const BdbHandle(BdbInterval)&theInterval, d_ULong index)
void printRevisionSubTree (const BdbHandle(BdbCondRevision)&theRevision, bool longFormat, int theLevel=0)
int getListOfDetectors (vector< string > &theList)
int cmd_help ()
int cmd_print_detectors ()
int cmd_print_containers (bool allContainers, bool longFormat, bool allIndexes, bool useOldIndexes, bool useLinksOnly, const char *theOriginName)
int cmd_print_registry ()
int cmd_print_revision (d_ULong theRevisionId)
int cmd_print_dependency_list (d_ULong theRevisionId=BdbCondRevision::ILLEGAL)
int cmd_print_dependency_tree (bool longFormat)
int cmd_print_genealogy (const BdbTime &beginValidityTime, const BdbTime &endValidityTime)
int cmd_print_top_list (const BdbTime &beginValidityTime, const BdbTime &endValidityTime)
int cmd_print_baseline_list (const BdbTime &beginValidityTime, const BdbTime &endValidityTime)
int cmd_print_revision_list (d_ULong theRevisionId, const BdbTime &beginValidityTime, const BdbTime &endValidityTime)
int cmd_delete (bool deleteObjects, bool removeContainerLinkFlag)
int cmd_delete_many (bool deleteObjects, bool removeContainerLinkFlag, bool verbose)
int cmd_copy (const char *newDetectorName, const char *newContainerName, BdbCondDatabaseMgr::LevelType theLevelType, d_ULong theRevisionId, bool copyCondObjects, bool copyToLocalDb, const char *theContName, bool compositeVTableWarnings)
int cmd_checkpoint ()
int cmd_produce (const char *filename, int theVersion, bool topmostIfUnassignedFlag)
int cmd_revise2d (d_ULong theBaseRevisionId, const char *theDescription, BdbObsoleteDatabase::SelectionStrategyType theStrategy, const BdbTime &beginValidityTime, const BdbTime &endValidityTime, const BdbTime &beginVersionTime, const BdbTime &endVersionTime, bool updateOnlyFlag=false)
int cmd_reviseOIDs (d_ULong theBaseRevisionId, const char *theDescription, const char *filename, bool updateOnlyFlag=false)
int cmd_revise_top (d_ULong theBaseRevisionId, const char *theDescription, const BdbTime &beginValidityTime, const BdbTime &endValidityTime, bool updateOnlyFlag=false)
int cmd_revise_top_many (const char *inputFile, const char *outputFile, bool includeFlag, const char *includeExcludeFile, const char *theDescription, const BdbTime &beginValidityTime, const BdbTime &endValidityTime, bool verbose, bool updateOnlyFlag=false)
int cmd_create_revision (d_ULong theBaseRevisionId, const char *theDescription)
int cmd_delete_revision (d_ULong theRevisionId)
int cmd_create_history (bool noBackup)
int cmd_remove_history ()
int cmd_comment (const char *theComment)
int cmd_history (d_ULong theOperation, const BdbTime &beginTime, const BdbTime &endTime)
int cmd_fetchnstore (const BdbTime &fetchTime, bool topmostFlag, d_ULong theRevisionId, const BdbTime &beginTime, const BdbTime &endTime)
int cmd_removeinterval (const BdbTime &theTime)
int cmd_print_classes (bool longFormat)
int cmd_composites (const char *schema, bool longFormat)
int cmd_validate (bool longFormat)
int cmd_create_link (const char *theLinkDetector, const char *theLinkContainer, const char *theOrigin, const char *theDetector, const char *theContainer, bool verify)
int cmd_remove_link (const char *theLinkDetector, const char *theLinkContainer, bool removeIntervalContainerFlag)
int cmd_remove_link_many (const char *theLinkDetector, const char *theLinkContainer, bool removeIntervalContainerFlag, bool verbose)
int cmd_show_link (const char *theLinkDetector, const char *theLinkContainer)
int cmd_lock_link (const char *theLinkDetector, const char *theLinkContainer)
int cmd_unlock_link (const char *theLinkDetector, const char *theLinkContainer)
int cmd_merge (const char *toDetectorName, const char *toContainerName, const BdbTime &mergeTime, bool mergeToLeft)
int cmd_verify_merge (const char *toDetectorName, const char *toContainerName, const BdbTime &mergeTime, bool mergeToLeft)
int cmd_merge2 (const char *toDetectorName, const char *toContainerName, const BdbTime &beginMergeTime, const BdbTime &endMergeTime, bool mergeInner)
int cmd_verify_merge2 (const char *toDetectorName, const char *toContainerName, const BdbTime &beginMergeTime, const BdbTime &endMergeTime, bool mergeInner)
int cmd_split (const BdbTime &theTime)
int cmd_compare (const char *toDetectorName, const char *toContainerName, bool compareStructuralVsExact, bool includeLink, bool includeIntervals, bool includeRevisions, bool includeHistory, bool verbose)
int cmd_purge (const BdbTime &beginValidityTime, const BdbTime &endValidityTime, bool keepRevisedIntervals, d_ULong maxNumOfTopLayers, d_ULong maxNumOfLayersUnderRevisedInterval)
int cmd_verify (const BdbTime &beginValidityTime, const BdbTime &endValidityTime, bool verbose)
int cmd_profile (const BdbTime &beginValidityTime, const BdbTime &endValidityTime)
int cmd_nanocorrection (const BdbTime &beginValidityTime, const BdbTime &endValidityTime, bool verifyOnly, bool verbose)
int cmd_verify_config (const char *theDetectorName, const char *theContainerName, const char *filename, const BdbTime &beginValidityTime, const BdbTime &endValidityTime)
int cmd_translate_time (const BdbTime &theTime, const char *outputTimeZone)
int cmd_translate_time (const BdbTime &theTime)
int cmd_synchronize_index ()
int main (int argc, char *argv[])
int load_include_exclude_list (const char *theFileName, map< string, string > *theDict)
void tokenize_string (const string &theString, map< string, string > *theDict)
void write_config_record (ofstream &fout, const char *theDetector, const char *theContainer, bool useTopFlag, d_ULong theRevisionId, const string &theOwner)
void printIntervalHeader (ostream &stream, const BdbHandle(BdbIntervalR)&theIntervalH)
bool verifySubTree (const BdbHandle(BdbIntervalR)&theIntervalH, const BdbHandle(BdbIntervalGene)&theBaseIntervalGeneH, bool verbose)
void buildCacheFromSubTree (const BdbHandle(BdbIntervalR)&theIntervalH, BdbCondCache< BdbRefAny > *theIntervalsCache)
bool compareIndexAgainstSubTree (const BdbHandle(BdbIntervalR)&theIntervalH, bool verbose)
bool findZeroLengthInSubTree (const BdbHandle(BdbIntervalR)&theIntervalH, bool verbose)

Variables

const char rcsid [] = "$Id: BdbIntervalUtil.cc,v 1.55 2002/08/07 21:47:51 gapon Exp $"
const int STATUS_SUCCESS = 0
const int STATUS_ERROR = 1
char * program = "BdbIntervalUtil"
char * detector = (char*)0
char * container = (char*)0
BdbObsoleteDatabasetheDatabasePtr
int format = 0
bool force = false


Enumeration Type Documentation

enum CmdType
 

Enumeration values:
CMD_UNKNOWN 
CMD_HELP 
CMD_DETECTORS 
CMD_CONTAINERS 
CMD_REGISTRY 
CMD_REVISION 
CMD_DEPENDENCY_LIST 
CMD_DEPENDENCY_TREE 
CMD_GENEALOGY 
CMD_TOP_LIST 
CMD_BASELINE_LIST 
CMD_REVISION_LIST 
CMD_DELETE 
CMD_DELETE_MANY 
CMD_COPY 
CMD_CHECKPOINT 
CMD_PRODUCE 
CMD_REVISE2D 
CMD_REVISE2D_UPDATE 
CMD_REVISEOIDS 
CMD_REVISEOIDS_UPDATE 
CMD_REVISETOP 
CMD_REVISETOP_UPDATE 
CMD_REVISETOP_MANY 
CMD_REVISETOP_MANY_UPDATE 
CMD_CREATE_REVISION 
CMD_DELETE_REVISION 
CMD_CREATE_HISTORY 
CMD_REMOVE_HISTORY 
CMD_COMMENT 
CMD_HISTORY 
CMD_FETCHNSTORE 
CMD_REMOVEINTERVAL 
CMD_CLASSES 
CMD_COMPOSITES 
CMD_VALIDATE 
CMD_CREATE_LINK 
CMD_REMOVE_LINK 
CMD_REMOVE_LINK_MANY 
CMD_SHOW_LINK 
CMD_LOCK_LINK 
CMD_UNLOCK_LINK 
CMD_MERGE 
CMD_VERIFY_MERGE 
CMD_MERGE2 
CMD_VERIFY_MERGE2 
CMD_SPLIT 
CMD_COMPARE 
CMD_PURGE 
CMD_VERIFY 
CMD_PROFILE 
CMD_NANOCORRECTION 
CMD_VERIFY_CONFIG 
CMD_TRANSLATE_TIME 
CMD_SYNCHRONIZE_INDEX 

Definition at line 98 of file BdbIntervalUtil.cc.

Referenced by main().


Function Documentation

d_ULong beginSec const BdbHandle(BdbInterval)&    theInterval [static]
 

Definition at line 3849 of file BdbIntervalUtil.cc.

References BdbIntervalBase::beginTime(), and BdbTime::getGmtSec().

Referenced by findZeroLengthInSubTree().

void buildCacheFromSubTree const BdbHandle(BdbIntervalR)&    theIntervalH,
BdbCondCache< BdbRefAny > *    theIntervalsCache
[static]
 

Definition at line 8447 of file BdbIntervalUtil.cc.

References BdbCondCache< Object >::addObject(), BdbHandle, and BdbItr.

Referenced by compareIndexAgainstSubTree().

int cmd_checkpoint   [static]
 

Definition at line 6007 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, BdbCondDatabaseMgr::createCheckpoint(), detector, result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_comment const char *    theComment [static]
 

Definition at line 7242 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, BdbCondDatabaseMgr::commentHistory(), container, detector, rcsid, result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_compare const char *    toDetectorName,
const char *    toContainerName,
bool    compareStructuralVsExact,
bool    includeLink,
bool    includeIntervals,
bool    includeRevisions,
bool    includeHistory,
bool    verbose
[static]
 

Definition at line 8203 of file BdbIntervalUtil.cc.

References BdbStatus, error(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_composites const char *    schema,
bool    longFormat
[static]
 

Definition at line 7541 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, cout, detector, error(), BdbCondDatabaseMgr::getClasses(), BdbCondDatabaseBase::listAllClasses(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_copy const char *    newDetectorName,
const char *    newContainerName,
BdbCondDatabaseMgr::LevelType    theLevelType,
d_ULong    theRevisionId,
bool    copyCondObjects,
bool    copyToLocalDb,
const char *    theContName,
bool    compositeVTableWarnings
[static]
 

Definition at line 5973 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, BdbCondDatabaseMgr::copyIntervalContainer(), detector, error(), BdbCondDatabaseMgr::LevelType, result, STATUS_ERROR, and STATUS_SUCCESS.

int cmd_create_history bool    noBackup [static]
 

Definition at line 7207 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, BdbCondDatabaseMgr::createHistory(), detector, result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_create_link const char *    theLinkDetector,
const char *    theLinkContainer,
const char *    theOrigin,
const char *    theDetector,
const char *    theContainer,
bool    verify
[static]
 

Definition at line 7829 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, BdbCondDatabaseMgr::createIntervalContainerLink(), error(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_create_revision d_ULong    theBaseRevisionId,
const char *    theDescription
[static]
 

Definition at line 7076 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, cout, BdbDatabase::createRevision(), error(), STATUS_ERROR, and STATUS_SUCCESS.

int cmd_delete bool    deleteObjects,
bool    removeContainerLinkFlag
[static]
 

Definition at line 5825 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, detector, error(), BdbCondDatabaseMgr::removeIntervalContainer(), STATUS_ERROR, and STATUS_SUCCESS.

int cmd_delete_many bool    deleteObjects,
bool    removeContainerLinkFlag,
bool    verbose
[static]
 

Definition at line 5866 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, cout, detector, BdbCondDatabaseBase::listAllClasses(), BdbCondDatabaseMgr::removeIntervalContainer(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_delete_revision d_ULong    theRevisionId [static]
 

Definition at line 7105 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbStatus, container, cout, BdbDatabase::deleteRevision(), detector, error(), BdbCondDatabaseBase::findRegistry(), force, BdbCondRevision::ILLEGAL, result, and STATUS_ERROR.

Referenced by main().

int cmd_fetchnstore const BdbTime   fetchTime,
bool    topmostFlag,
d_ULong    theRevisionId,
const BdbTime   beginTime,
const BdbTime   endTime
[static]
 

Definition at line 7322 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, container, cout, detector, error(), BdbDatabase::findInterval(), force, BdbCondPath::instance(), result, BdbCondPath::setRevision(), STATUS_ERROR, STATUS_SUCCESS, and BdbDatabase::store().

Referenced by main().

int cmd_help   [static]
 

Definition at line 4303 of file BdbIntervalUtil.cc.

References cout, program, and STATUS_SUCCESS.

Referenced by main().

int cmd_history d_ULong    theOperation,
const BdbTime   beginTime,
const BdbTime   endTime
[static]
 

Definition at line 7262 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbRef, BdbStatus, container, cout, error(), BdbCondDatabaseBase::findHistory(), host, BdbCondHistoryOperations::OPERATION_UNKNOWN, result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_lock_link const char *    theLinkDetector,
const char *    theLinkContainer
[static]
 

Definition at line 8015 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, error(), BdbCondDatabaseMgr::lockIntervalContainerLink(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_merge const char *    toDetectorName,
const char *    toContainerName,
const BdbTime   mergeTime,
bool    mergeToLeft
[static]
 

Definition at line 8059 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, detector, error(), BdbCondDatabaseMgr::mergeIntervalContainers(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_merge2 const char *    toDetectorName,
const char *    toContainerName,
const BdbTime   beginMergeTime,
const BdbTime   endMergeTime,
bool    mergeInner
[static]
 

Definition at line 8121 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, detector, error(), BdbCondDatabaseMgr::mergeIntervalContainers(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_nanocorrection const BdbTime   beginValidityTime,
const BdbTime   endValidityTime,
bool    verifyOnly,
bool    verbose
[static]
 

Definition at line 8961 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, cout, detector, error(), BdbCondDatabaseMgr::nanoCorrection(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_baseline_list const BdbTime   beginValidityTime,
const BdbTime   endValidityTime
[static]
 

Definition at line 5760 of file BdbIntervalUtil.cc.

References BdbHandle, container, detector, error(), BdbIntervalItr::next(), BdbTime::plusInfinity, printNode(), result, BdbIntervalItr::setBaseline(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_classes bool    longFormat [static]
 

Definition at line 7424 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, cout, detector, error(), BdbCondDatabaseMgr::getClasses(), BdbCondDatabaseBase::listAllClasses(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_containers bool    allContainers,
bool    longFormat,
bool    allIndexes,
bool    useOldIndexes,
bool    useLinksOnly,
const char *    theOriginName
[static]
 

Definition at line 5311 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, cout, detector, error(), BdbCondDatabaseBase::findContainerLink(), BdbCondDatabaseBase::findHistory(), BdbCondContainerLink::getOrigin(), BdbCondDatabaseBase::isLink(), BdbCondContainerLink::isValid(), BdbCondDatabaseBase::isWriteLocked(), BdbCondDatabaseBase::listAllClasses(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_dependency_list d_ULong    theRevisionId = BdbCondRevision::ILLEGAL [static]
 

Definition at line 5495 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbStatus, container, cout, error(), BdbCondDatabaseBase::findRegistry(), BdbCondRevision::ILLEGAL, result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_dependency_tree bool    longFormat [static]
 

Definition at line 5569 of file BdbIntervalUtil.cc.

References BdbCondRevision::BASELINE, BdbcError, BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, container, error(), BdbCondDatabaseBase::findRegistry(), printRevisionSubTree(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_detectors   [static]
 

Definition at line 5290 of file BdbIntervalUtil.cc.

References cout, getListOfDetectors(), and STATUS_SUCCESS.

Referenced by main().

int cmd_print_genealogy const BdbTime   beginValidityTime,
const BdbTime   endValidityTime
[static]
 

Definition at line 5637 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, container, error(), BdbDatabase::findInterval(), BdbDatabase::firstInterval(), format, BdbDatabase::lastInterval(), BdbTime::minusInfinity, BdbTime::plusInfinity, printNode(), printSubTree(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_registry   [static]
 

Definition at line 5395 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbStatus, container, cout, error(), BdbCondDatabaseBase::findRegistry(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_revision d_ULong    theRevisionId [static]
 

Definition at line 5424 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbItr, BdbStatus, container, cout, error(), BdbCondDatabaseBase::findRegistry(), BdbCondRevision::ILLEGAL, result, and STATUS_ERROR.

Referenced by main().

int cmd_print_revision_list d_ULong    theRevisionId,
const BdbTime   beginValidityTime,
const BdbTime   endValidityTime
[static]
 

Definition at line 5792 of file BdbIntervalUtil.cc.

References BdbHandle, container, detector, error(), BdbIntervalItr::next(), BdbTime::plusInfinity, printNode(), result, BdbIntervalItr::setRevision(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_print_top_list const BdbTime   beginValidityTime,
const BdbTime   endValidityTime
[static]
 

Definition at line 5728 of file BdbIntervalUtil.cc.

References BdbHandle, container, detector, error(), BdbIntervalItr::next(), BdbTime::plusInfinity, printNode(), result, BdbIntervalItr::setTopmost(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_produce const char *    filename,
int    theVersion,
bool    topmostIfUnassignedFlag
[static]
 

Definition at line 6024 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, cout, error(), getListOfDetectors(), BdbDatabase::getMostRecentRevisionId(), BdbCondRevision::ILLEGAL, BdbCondDatabaseBase::listAllClasses(), BdbIntervalItr::next(), result, BdbIntervalItr::setTopmost(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_profile const BdbTime   beginValidityTime,
const BdbTime   endValidityTime
[static]
 

Definition at line 8933 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, cout, detector, error(), BdbCondContainerProfile::measure(), BdbCondContainerProfile::print(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_purge const BdbTime   beginValidityTime,
const BdbTime   endValidityTime,
bool    keepRevisedIntervals,
d_ULong    maxNumOfTopLayers,
d_ULong    maxNumOfLayersUnderRevisedInterval
[static]
 

Definition at line 8222 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, cout, detector, error(), force, BdbCondDatabaseMgr::purgeIntervalContainer(), STATUS_ERROR, and STATUS_SUCCESS.

int cmd_remove_history   [static]
 

Definition at line 7225 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, detector, BdbCondDatabaseMgr::removeHistory(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_remove_link const char *    theLinkDetector,
const char *    theLinkContainer,
bool    removeIntervalContainerFlag
[static]
 

Definition at line 7859 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, error(), BdbCondDatabaseMgr::removeIntervalContainerLink(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_remove_link_many const char *    theLinkDetector,
const char *    theLinkContainer,
bool    removeIntervalContainerFlag,
bool    verbose
[static]
 

Definition at line 7883 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, cout, BdbCondDatabaseBase::listAllClasses(), BdbCondDatabaseMgr::removeIntervalContainerLink(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_removeinterval const BdbTime   theTime [static]
 

Definition at line 7408 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, error(), BdbDatabase::remove(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_revise2d d_ULong    theBaseRevisionId,
const char *    theDescription,
BdbObsoleteDatabase::SelectionStrategyType    theStrategy,
const BdbTime   beginValidityTime,
const BdbTime   endValidityTime,
const BdbTime   beginVersionTime,
const BdbTime   endVersionTime,
bool    updateOnlyFlag = false
[static]
 

Definition at line 6202 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, cout, BdbDatabase::createRevision(), error(), BdbDatabase::getUnassignedList(), result, BdbDatabase::SelectionStrategyType, STATUS_ERROR, STATUS_SUCCESS, and BdbDatabase::updateRevision().

Referenced by main().

int cmd_revise_top d_ULong    theBaseRevisionId,
const char *    theDescription,
const BdbTime   beginValidityTime,
const BdbTime   endValidityTime,
bool    updateOnlyFlag = false
[static]
 

Definition at line 6385 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, container, cout, BdbDatabase::createRevision(), detector, error(), BdbIntervalItr::next(), result, BdbIntervalItr::setTopmost(), STATUS_ERROR, STATUS_SUCCESS, and BdbDatabase::updateRevision().

Referenced by main().

int cmd_revise_top_many const char *    inputFile,
const char *    outputFile,
bool    includeFlag,
const char *    includeExcludeFile,
const char *    theDescription,
const BdbTime   beginValidityTime,
const BdbTime   endValidityTime,
bool    verbose,
bool    updateOnlyFlag = false
[static]
 

Definition at line 6599 of file BdbIntervalUtil.cc.

References BdbDomain::activeInstance(), BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, BdbDomainOODB::commit(), BdbDomainName::Conditions, container, cout, BdbDatabase::createRevision(), detector, error(), BdbCondDatabaseBase::findContainerLink(), BdbStandardDbIdMgr::findKey(), getListOfDetectors(), BdbDatabase::getMostRecentRevisionId(), BdbCondContainerLink::getOrigin(), BdbCondPath::getOwner(), BdbCondPath::getRevision(), BdbCondRevision::ILLEGAL, BdbConditions::instance(), BdbAuth::instance(), BdbCondPath::instance(), BdbAuth::isSystemManager(), BdbCondContainerLink::isValid(), BdbCondDatabaseBase::listAllClasses(), load_include_exclude_list(), BdbCondPath::loadConfiguration(), BdbIntervalItr::next(), result, BdbIntervalItr::setTopmost(), BdbDomainOODB::startUpdate(), STATUS_ERROR, STATUS_SUCCESS, tokenize_string(), BdbDatabase::updateRevision(), BdbDomainAuth::userName(), and write_config_record().

Referenced by main().

int cmd_reviseOIDs d_ULong    theBaseRevisionId,
const char *    theDescription,
const char *    filename,
bool    updateOnlyFlag = false
[static]
 

Definition at line 6281 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbRef, BdbStatus, container, cout, BdbDatabase::createRevision(), error(), result, STATUS_ERROR, STATUS_SUCCESS, and BdbDatabase::updateRevision().

Referenced by main().

int cmd_show_link const char *    theLinkDetector,
const char *    theLinkContainer
[static]
 

Definition at line 7975 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, cout, error(), BdbCondDatabaseBase::findContainerLink(), BdbCondContainerLink::getContainer(), BdbCondContainerLink::getDetector(), BdbCondContainerLink::getOrigin(), BdbCondContainerLink::isValid(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_split const BdbTime   theTime [static]
 

Definition at line 8187 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, error(), result, BdbDatabase::split(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_synchronize_index   [static]
 

Definition at line 9222 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, BdbCondDebug::createIndex(), detector, error(), BdbCondDebug::isInitialized(), BdbCondDebug::removeIndex(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_translate_time const BdbTime   theTime [static]
 

Definition at line 9214 of file BdbIntervalUtil.cc.

References cout, BdbTime::getGmtSec(), and STATUS_SUCCESS.

Referenced by main().

int cmd_translate_time const BdbTime   theTime,
const char *    outputTimeZone
[static]
 

Definition at line 9197 of file BdbIntervalUtil.cc.

References BdbTime::asString(), cout, BdbTime::Local, and STATUS_SUCCESS.

int cmd_unlock_link const char *    theLinkDetector,
const char *    theLinkContainer
[static]
 

Definition at line 8037 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, error(), STATUS_ERROR, STATUS_SUCCESS, and BdbCondDatabaseMgr::unlockIntervalContainerLink().

Referenced by main().

int cmd_validate bool    longFormat [static]
 

Definition at line 7682 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbRef, BdbStatus, container, cout, detector, error(), BdbTime::getGmtSec(), getIntervalOid(), getObjectOid(), BdbCondDatabaseBase::listAllClasses(), STATUS_ERROR, STATUS_SUCCESS, and BdbCondDatabaseMgr::validateContainer().

Referenced by main().

int cmd_verify const BdbTime   beginValidityTime,
const BdbTime   endValidityTime,
bool    verbose
[static]
 

Definition at line 8644 of file BdbIntervalUtil.cc.

References BdbHandle, BdbIsNull, BdbItr, BdbIntervalBase::beginTime(), compareIndexAgainstSubTree(), container, cout, detector, BdbIntervalBase::endTime(), error(), findZeroLengthInSubTree(), BdbIntervalR::getBaselinePrevious(), BdbIntervalR::getTopPrevious(), BdbTime::minusInfinity, BdbIntervalItr::next(), BdbTime::plusInfinity, printIntervalHeader(), result, BdbIntervalItr::setBaseline(), BdbIntervalItr::setTopmost(), STATUS_ERROR, STATUS_SUCCESS, and verifySubTree().

Referenced by main().

int cmd_verify_config const char *    theDetectorName,
const char *    theContainerName,
const char *    filename,
const BdbTime   beginValidityTime,
const BdbTime   endValidityTime
[static]
 

Definition at line 9024 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbHandle, BdbIsNull, BdbStatus, cout, BdbIntervalBase::endTime(), getListOfDetectors(), BdbDatabase::getMostRecentRevisionId(), BdbIntervalR::getRevision(), BdbCondPath::getRevision(), BdbCondRevision::ILLEGAL, BdbCondPath::instance(), BdbCondDatabaseBase::listAllClasses(), BdbCondPath::loadConfiguration(), BdbIntervalItr::next(), BdbTime::plusInfinity, result, BdbIntervalItr::setTopmost(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_verify_merge const char *    toDetectorName,
const char *    toContainerName,
const BdbTime   mergeTime,
bool    mergeToLeft
[static]
 

Definition at line 8090 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, detector, error(), BdbCondDatabaseMgr::mergeIntervalContainers(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

int cmd_verify_merge2 const char *    toDetectorName,
const char *    toContainerName,
const BdbTime   beginMergeTime,
const BdbTime   endMergeTime,
bool    mergeInner
[static]
 

Definition at line 8154 of file BdbIntervalUtil.cc.

References BdbcSuccess, BdbStatus, container, detector, error(), BdbCondDatabaseMgr::mergeIntervalContainers(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by main().

bool compareIndexAgainstSubTree const BdbHandle(BdbIntervalR)&    theIntervalH,
bool    verbose
[static]
 

Definition at line 8468 of file BdbIntervalUtil.cc.

References BdbCondCache< Object >::addObject(), BdbContObj, BdbcRead, BdbHandle, BdbIsNull, BdbItr, BdbRef, BdbRefAny, BdbIntervalBase::beginTime(), buildCacheFromSubTree(), cout, BdbIntervalBase::endTime(), error(), BdbCondCache< Object >::findObject(), BdbTime::getGmtSec(), BdbCondCache< Object >::iterator(), BdbTime::minusInfinity, BdbCondCacheItr< Object >::next(), printIntervalHeader(), and result.

Referenced by cmd_verify().

d_ULong endSec const BdbHandle(BdbInterval)&    theInterval [static]
 

Definition at line 3856 of file BdbIntervalUtil.cc.

References BdbIntervalBase::endTime(), and BdbTime::getGmtSec().

Referenced by findZeroLengthInSubTree().

void error const string &    str [static]
 

Definition at line 3308 of file BdbIntervalUtil.cc.

References cout, and program.

Referenced by cmd_compare(), cmd_composites(), cmd_copy(), cmd_create_link(), cmd_create_revision(), cmd_delete(), cmd_delete_revision(), cmd_fetchnstore(), cmd_history(), cmd_lock_link(), cmd_merge(), cmd_merge2(), cmd_nanocorrection(), cmd_print_baseline_list(), cmd_print_classes(), cmd_print_containers(), cmd_print_dependency_list(), cmd_print_dependency_tree(), cmd_print_genealogy(), cmd_print_registry(), cmd_print_revision(), cmd_print_revision_list(), cmd_print_top_list(), cmd_produce(), cmd_profile(), cmd_purge(), cmd_remove_link(), cmd_removeinterval(), cmd_revise2d(), cmd_revise_top(), cmd_revise_top_many(), cmd_reviseOIDs(), cmd_show_link(), cmd_split(), cmd_synchronize_index(), cmd_unlock_link(), cmd_validate(), cmd_verify(), cmd_verify_merge(), cmd_verify_merge2(), compareIndexAgainstSubTree(), getListOfDetectors(), load_include_exclude_list(), main(), translate_d_ULong(), translateAll(), translateConfigVersion(), translateFormat(), translateLocalContName(), translateLongFormat(), translateNoBackup(), translateOid(), translateOperation(), translateRevisionId(), translateStrategy(), and translateTime().

bool findZeroLengthInSubTree const BdbHandle(BdbIntervalR)&    theIntervalH,
bool    verbose
[static]
 

Definition at line 8605 of file BdbIntervalUtil.cc.

References BdbHandle, BdbItr, beginSec(), BdbIntervalBase::beginTime(), cout, endSec(), BdbIntervalBase::endTime(), BdbTime::getGmtNsec(), BdbTime::getGmtSec(), printIntervalHeader(), and result.

Referenced by cmd_verify().

void getIntervalOid const BdbHandle(BdbInterval)&    theInterval,
char *    oid
[static]
 

Definition at line 3897 of file BdbIntervalUtil.cc.

Referenced by cmd_validate(), printIntervalHeader(), and printNode().

void getIntervalRevision const BdbHandle(BdbInterval)&    theInterval,
char *    revision,
char *    revision_4
[static]
 

Definition at line 3935 of file BdbIntervalUtil.cc.

References BdbHandle, and BdbIsNull.

Referenced by printNode().

int getListOfDetectors vector< string > &    theList [static]
 

Definition at line 4226 of file BdbIntervalUtil.cc.

References error(), BdbTime::getGmtSec(), printSeconds(), STATUS_ERROR, and STATUS_SUCCESS.

Referenced by cmd_print_detectors(), cmd_produce(), cmd_revise_top_many(), and cmd_verify_config().

void getObjectOid const BdbHandle(BdbInterval)&    theInterval,
char *    oid
[static]
 

Definition at line 3911 of file BdbIntervalUtil.cc.

References BdbHandle, BdbIsNull, and BdbInterval::getObject().

Referenced by cmd_validate(), and printNode().

int load_include_exclude_list const char *    theFileName,
map< string, string > *    theDict
[static]
 

Definition at line 6474 of file BdbIntervalUtil.cc.

References error(), result, STATUS_ERROR, and STATUS_SUCCESS.

Referenced by cmd_revise_top_many().

int main int    argc,
char *    argv[]
 

main() - main function

Definition at line 463 of file BdbIntervalUtil.cc.

References BdbCondRevision::BASELINE, CMD_BASELINE_LIST, cmd_checkpoint(), CMD_CHECKPOINT, CMD_CLASSES, cmd_comment(), CMD_COMMENT, cmd_compare(), CMD_COMPARE, cmd_composites(), CMD_COMPOSITES, CMD_CONTAINERS, cmd_copy(), CMD_COPY, cmd_create_history(), CMD_CREATE_HISTORY, cmd_create_link(), CMD_CREATE_LINK, cmd_create_revision(), CMD_CREATE_REVISION, cmd_delete(), CMD_DELETE, cmd_delete_many(), CMD_DELETE_MANY, cmd_delete_revision(), CMD_DELETE_REVISION, CMD_DEPENDENCY_LIST, CMD_DEPENDENCY_TREE, CMD_DETECTORS, cmd_fetchnstore(), CMD_FETCHNSTORE, CMD_GENEALOGY, cmd_help(), CMD_HELP, cmd_history(), CMD_HISTORY, cmd_lock_link(), CMD_LOCK_LINK, cmd_merge(), CMD_MERGE, cmd_merge2(), CMD_MERGE2, cmd_nanocorrection(), CMD_NANOCORRECTION, cmd_print_baseline_list(), cmd_print_classes(), cmd_print_containers(), cmd_print_dependency_list(), cmd_print_dependency_tree(), cmd_print_detectors(), cmd_print_genealogy(), cmd_print_registry(), cmd_print_revision(), cmd_print_revision_list(), cmd_print_top_list(), cmd_produce(), CMD_PRODUCE, cmd_profile(), CMD_PROFILE, cmd_purge(), CMD_PURGE, CMD_REGISTRY, cmd_remove_history(), CMD_REMOVE_HISTORY, cmd_remove_link(), CMD_REMOVE_LINK, cmd_remove_link_many(), CMD_REMOVE_LINK_MANY, cmd_removeinterval(), CMD_REMOVEINTERVAL, cmd_revise2d(), CMD_REVISE2D, CMD_REVISE2D_UPDATE, cmd_revise_top(), cmd_revise_top_many(), cmd_reviseOIDs(), CMD_REVISEOIDS, CMD_REVISEOIDS_UPDATE, CMD_REVISETOP, CMD_REVISETOP_MANY, CMD_REVISETOP_MANY_UPDATE, CMD_REVISETOP_UPDATE, CMD_REVISION, CMD_REVISION_LIST, cmd_show_link(), CMD_SHOW_LINK, cmd_split(), CMD_SPLIT, cmd_synchronize_index(), CMD_SYNCHRONIZE_INDEX, CMD_TOP_LIST, cmd_translate_time(), CMD_TRANSLATE_TIME, CMD_UNKNOWN, cmd_unlock_link(), CMD_UNLOCK_LINK, cmd_validate(), CMD_VALIDATE, cmd_verify(), CMD_VERIFY, cmd_verify_config(), CMD_VERIFY_CONFIG, cmd_verify_merge(), CMD_VERIFY_MERGE, cmd_verify_merge2(), CMD_VERIFY_MERGE2, CmdType, BdbDomainOODB::commit(), container, detector, error(), force, format, BdbCondRevision::ILLEGAL, BdbConditions::instance(), BdbCondDatabaseMgr::LEVEL_DEEP, BdbCondDatabaseMgr::LevelType, BdbTime::minusInfinity, BdbCondHistoryOperations::OPERATION_UNKNOWN, BdbTime::plusInfinity, program, BdbDatabase::SelectionStrategyType, BdbDomainOODB::startRead(), BdbDomainOODB::startUpdate(), STATUS_ERROR, STATUS_SUCCESS, translate_d_ULong(), translateCommand(), translateConfigVersion(), translateCopyLevelType(), translateDateTimeZone(), translateFormat(), translateLocalContName(), translateLongFormat(), translateNoBackup(), translateNumber(), translateOperation(), translateRevisionId(), translateStrategy(), translateTime(), and usage().

void printDate d_ULong    sec,
char *    str
[static]
 

Definition at line 3883 of file BdbIntervalUtil.cc.

References BdbTime::asString(), BdbTimeConst::minusInfinity, BdbTimeConst::plusInfinity, and BdbTime::UTC.

Referenced by printNode().

void printIntervalHeader ostream &    stream,
const BdbHandle(BdbIntervalR)&    theIntervalH
[static]
 

Definition at line 8314 of file BdbIntervalUtil.cc.

References beginSec(), endSec(), getIntervalOid(), and printSeconds().

Referenced by cmd_verify(), compareIndexAgainstSubTree(), findZeroLengthInSubTree(), and verifySubTree().

void printNextNode int    level,
const BdbHandle(BdbInterval)&    theInterval,
const char *    nodeId
[static]
 

Definition at line 4156 of file BdbIntervalUtil.cc.

References BdbHandle, BdbItr, printNextNode(), and printNode().

void printNode int    level,
const BdbHandle(BdbInterval)&    theInterval,
const char *    givenName = (char *) 0,
const char *    nodeId = (char *) 0
[static]
 

Definition at line 3958 of file BdbIntervalUtil.cc.

References BdbContObj, BdbHandle, BdbIsNull, beginSec(), cout, endSec(), getIntervalOid(), getIntervalRevision(), getObjectOid(), BdbInterval::getTag(), BdbInterval::getVersionTime(), printDate(), printSeconds(), and versionSec().

void printRevisionSubTree const BdbHandle(BdbCondRevision)&    theRevision,
bool    longFormat,
int    theLevel = 0
[static]
 

Definition at line 5602 of file BdbIntervalUtil.cc.

References BdbItr, cout, BdbCondRevision::creationTime(), BdbCondRevision::description(), BdbCondRevision::id(), BdbCondRevision::setDependentItr(), and BdbCondRevision::site().

Referenced by cmd_print_dependency_tree().

void printSeconds d_ULong    sec,
char *    str
[static]
 

Definition at line 3870 of file BdbIntervalUtil.cc.

References BdbTimeConst::minusInfinity, and BdbTimeConst::plusInfinity.

Referenced by getListOfDetectors(), printIntervalHeader(), and printNode().

void printSubTree const BdbHandle(ooGeneObj)&    theGeneObj,
const BdbHandle(BdbInterval)&    theInterval,
d_ULong    index
[static]
 

Definition at line 4190 of file BdbIntervalUtil.cc.

References BdbHandle, BdbItr, cout, and printNextNode().

void tokenize_string const string &    theString,
map< string, string > *    theDict
[static]
 

Definition at line 6565 of file BdbIntervalUtil.cc.

Referenced by cmd_revise_top_many().

bool translate_d_ULong const char *    str,
d_ULong   theValue
[static]
 

Definition at line 3407 of file BdbIntervalUtil.cc.

References error(), and result.

Referenced by main().

bool translateAll const char *    str [static]
 

Definition at line 3758 of file BdbIntervalUtil.cc.

References error(), and result.

CmdType translateCommand const char *    str [static]
 

Definition at line 3327 of file BdbIntervalUtil.cc.

References CMD_BASELINE_LIST, CMD_CHECKPOINT, CMD_CLASSES, CMD_COMMENT, CMD_COMPARE, CMD_COMPOSITES, CMD_CONTAINERS, CMD_COPY, CMD_CREATE_HISTORY, CMD_CREATE_LINK, CMD_CREATE_REVISION, CMD_DELETE, CMD_DELETE_MANY, CMD_DELETE_REVISION, CMD_DEPENDENCY_LIST, CMD_DEPENDENCY_TREE, CMD_DETECTORS, CMD_FETCHNSTORE, CMD_GENEALOGY, CMD_HELP, CMD_HISTORY, CMD_LOCK_LINK, CMD_MERGE, CMD_MERGE2, CMD_NANOCORRECTION, CMD_PRODUCE, CMD_PROFILE, CMD_PURGE, CMD_REGISTRY, CMD_REMOVE_HISTORY, CMD_REMOVE_LINK, CMD_REMOVE_LINK_MANY, CMD_REMOVEINTERVAL, CMD_REVISE2D, CMD_REVISE2D_UPDATE, CMD_REVISEOIDS, CMD_REVISEOIDS_UPDATE, CMD_REVISETOP, CMD_REVISETOP_MANY, CMD_REVISETOP_MANY_UPDATE, CMD_REVISETOP_UPDATE, CMD_REVISION, CMD_REVISION_LIST, CMD_SHOW_LINK, CMD_SPLIT, CMD_SYNCHRONIZE_INDEX, CMD_TOP_LIST, CMD_TRANSLATE_TIME, CMD_UNKNOWN, CMD_UNLOCK_LINK, CMD_VALIDATE, CMD_VERIFY, CMD_VERIFY_CONFIG, CMD_VERIFY_MERGE, and CMD_VERIFY_MERGE2.

Referenced by main().

int translateConfigVersion const char *    str [static]
 

Definition at line 3492 of file BdbIntervalUtil.cc.

References error(), and result.

Referenced by main().

bool translateCopyLevelType const char *    str,
BdbCondDatabaseMgr::LevelType   theLevelType
[static]
 

Definition at line 3512 of file BdbIntervalUtil.cc.

References BdbCondDatabaseMgr::LEVEL_BASELINE, BdbCondDatabaseMgr::LEVEL_DEEP, BdbCondDatabaseMgr::LEVEL_REVISION, BdbCondDatabaseMgr::LEVEL_TOPMOST, BdbCondDatabaseMgr::LevelType, and result.

Referenced by main().

bool translateDateTimeZone char *    argv[],
int &    theNumAvailParams,
int &    theNextAvailPar,
const char *    theDataAndTimeKey,
const char *    theTimeZoneKey,
BdbTime   theTime
[static]
 

Definition at line 3651 of file BdbIntervalUtil.cc.

References BdbTime::Local, result, and translateNumber().

Referenced by main().

int translateFormat const char *    str [static]
 

Definition at line 3472 of file BdbIntervalUtil.cc.

References error(), and result.

Referenced by main().

const char * translateLocalContName const char *    str [static]
 

Definition at line 3533 of file BdbIntervalUtil.cc.

References error(), and result.

Referenced by main().

bool translateLongFormat const char *    str [static]
 

Definition at line 3745 of file BdbIntervalUtil.cc.

References error(), and result.

Referenced by main().

bool translateNoBackup const char *    str [static]
 

Definition at line 3771 of file BdbIntervalUtil.cc.

References error(), and result.

Referenced by main().

bool translateNumber const char *    theString,
BdbTime   theTime
[static]
 

Definition at line 3618 of file BdbIntervalUtil.cc.

References result.

Referenced by main(), and translateDateTimeZone().

bool translateOid const char *    str,
ooId &    theOid
[static]
 

Definition at line 3823 of file BdbIntervalUtil.cc.

References error().

bool translateOperation const char *    str,
d_ULong   theOperation
[static]
 

Definition at line 3784 of file BdbIntervalUtil.cc.

References error(), BdbCondHistoryOperations::OPERATION_CHECKPOINT, BdbCondHistoryOperations::OPERATION_COMMENT, BdbCondHistoryOperations::OPERATION_COPY_CONTAINER, BdbCondHistoryOperations::OPERATION_CREATE_CONTAINER, BdbCondHistoryOperations::OPERATION_CREATE_HISTORY, BdbCondHistoryOperations::OPERATION_CREATE_REVISION, BdbCondHistoryOperations::OPERATION_MERGE_CONTAINER, BdbCondHistoryOperations::OPERATION_REMOVE_INTERVAL, BdbCondHistoryOperations::OPERATION_SPLIT, BdbCondHistoryOperations::OPERATION_STORE, BdbCondHistoryOperations::OPERATION_STORE_AND_TRUNCATE, BdbCondHistoryOperations::OPERATION_STORE_VECTOR, BdbCondHistoryOperations::OPERATION_UNKNOWN, BdbCondHistoryOperations::OPERATION_UPDATE_REVISION, and result.

Referenced by main().

d_ULong translateRevisionId const char *    str [static]
 

Definition at line 3388 of file BdbIntervalUtil.cc.

References error().

Referenced by main().

bool translateStrategy const char *    str,
BdbObsoleteDatabase::SelectionStrategyType   theStrategy
[static]
 

Definition at line 3727 of file BdbIntervalUtil.cc.

References BdbDatabase::EARLIEST, error(), BdbDatabase::RECENT, result, and BdbDatabase::SelectionStrategyType.

Referenced by main().

bool translateTime const char *    str,
BdbTime   theTime
[static]
 

Definition at line 3546 of file BdbIntervalUtil.cc.

References error(), BdbTime::minusInfinity, BdbTime::parseTime(), BdbTime::plusInfinity, result, and BdbTime::UTC.

bool translateVerbose const char *    str [static]
 

Definition at line 3812 of file BdbIntervalUtil.cc.

References result.

void usage const char *    message [static]
 

usage() - print "usage" information page.

Definition at line 3315 of file BdbIntervalUtil.cc.

References cout, program, and usage().

bool verifySubTree const BdbHandle(BdbIntervalR)&    theIntervalH,
const BdbHandle(BdbIntervalGene)&    theBaseIntervalGeneH,
bool    verbose
[static]
 

Definition at line 8329 of file BdbIntervalUtil.cc.

References BdbHandle, BdbItr, BdbIntervalBase::beginTime(), cout, BdbIntervalBase::endTime(), printIntervalHeader(), and result.

Referenced by cmd_verify().

d_ULong versionSec const BdbHandle(BdbInterval)&    theInterval [static]
 

Definition at line 3863 of file BdbIntervalUtil.cc.

References BdbTime::getGmtSec(), and BdbInterval::getVersionTime().

Referenced by printNode().

void write_config_record ofstream &    fout,
const char *    theDetector,
const char *    theContainer,
bool    useTopFlag,
d_ULong    theRevisionId,
const string &    theOwner
[static]
 

Definition at line 6576 of file BdbIntervalUtil.cc.

Referenced by cmd_revise_top_many().


Variable Documentation

char* container = (char*)0 [static]
 

Definition at line 157 of file BdbIntervalUtil.cc.

Referenced by cmd_checkpoint(), cmd_comment(), cmd_copy(), cmd_create_history(), cmd_create_revision(), cmd_delete(), cmd_delete_many(), cmd_delete_revision(), cmd_fetchnstore(), cmd_history(), cmd_merge(), cmd_merge2(), cmd_nanocorrection(), cmd_print_baseline_list(), cmd_print_classes(), cmd_print_dependency_list(), cmd_print_dependency_tree(), cmd_print_genealogy(), cmd_print_registry(), cmd_print_revision(), cmd_print_revision_list(), cmd_print_top_list(), cmd_profile(), cmd_purge(), cmd_remove_history(), cmd_removeinterval(), cmd_revise2d(), cmd_revise_top(), cmd_revise_top_many(), cmd_reviseOIDs(), cmd_split(), cmd_synchronize_index(), cmd_validate(), cmd_verify(), cmd_verify_merge(), cmd_verify_merge2(), BdbOptNoEventStorage::isSet(), BdbOptBridgeOnly::isSet(), main(), BdbOptNoEventStorage::setOption(), and BdbOptBridgeOnly::setOption().

char* detector = (char*)0 [static]
 

Definition at line 156 of file BdbIntervalUtil.cc.

Referenced by cmd_checkpoint(), cmd_comment(), cmd_composites(), cmd_copy(), cmd_create_history(), cmd_delete(), cmd_delete_many(), cmd_delete_revision(), cmd_fetchnstore(), cmd_merge(), cmd_merge2(), cmd_nanocorrection(), cmd_print_baseline_list(), cmd_print_classes(), cmd_print_containers(), cmd_print_revision_list(), cmd_print_top_list(), cmd_profile(), cmd_purge(), cmd_remove_history(), cmd_revise_top(), cmd_revise_top_many(), cmd_synchronize_index(), cmd_validate(), cmd_verify(), cmd_verify_merge(), cmd_verify_merge2(), and main().

bool force = false [static]
 

Definition at line 163 of file BdbIntervalUtil.cc.

Referenced by cmd_delete_revision(), cmd_fetchnstore(), cmd_purge(), and main().

int format = 0 [static]
 

Definition at line 161 of file BdbIntervalUtil.cc.

Referenced by cmd_print_genealogy(), and main().

char* program = "BdbIntervalUtil" [static]
 

Definition at line 155 of file BdbIntervalUtil.cc.

Referenced by cmd_help(), error(), main(), and usage().

const char rcsid[] = "$Id: BdbIntervalUtil.cc,v 1.55 2002/08/07 21:47:51 gapon Exp $" [static]
 

Definition at line 93 of file BdbIntervalUtil.cc.

Referenced by cmd_comment().

const int STATUS_ERROR = 1 [static]
 

Definition at line 96 of file BdbIntervalUtil.cc.

Referenced by cmd_checkpoint(), cmd_comment(), cmd_compare(), cmd_composites(), cmd_copy(), cmd_create_history(), cmd_create_link(), cmd_create_revision(), cmd_delete(), cmd_delete_many(), cmd_delete_revision(), cmd_fetchnstore(), cmd_history(), cmd_lock_link(), cmd_merge(), cmd_merge2(), cmd_nanocorrection(), cmd_print_baseline_list(), cmd_print_classes(), cmd_print_containers(), cmd_print_dependency_list(), cmd_print_dependency_tree(), cmd_print_genealogy(), cmd_print_registry(), cmd_print_revision(), cmd_print_revision_list(), cmd_print_top_list(), cmd_produce(), cmd_profile(), cmd_purge(), cmd_remove_history(), cmd_remove_link(), cmd_remove_link_many(), cmd_removeinterval(), cmd_revise2d(), cmd_revise_top(), cmd_revise_top_many(), cmd_reviseOIDs(), cmd_show_link(), cmd_split(), cmd_synchronize_index(), cmd_unlock_link(), cmd_validate(), cmd_verify(), cmd_verify_config(), cmd_verify_merge(), cmd_verify_merge2(), getListOfDetectors(), load_include_exclude_list(), and main().

const int STATUS_SUCCESS = 0 [static]
 

Definition at line 95 of file BdbIntervalUtil.cc.

Referenced by cmd_checkpoint(), cmd_comment(), cmd_compare(), cmd_composites(), cmd_copy(), cmd_create_history(), cmd_create_link(), cmd_create_revision(), cmd_delete(), cmd_delete_many(), cmd_fetchnstore(), cmd_help(), cmd_history(), cmd_lock_link(), cmd_merge(), cmd_merge2(), cmd_nanocorrection(), cmd_print_baseline_list(), cmd_print_classes(), cmd_print_containers(), cmd_print_dependency_list(), cmd_print_dependency_tree(), cmd_print_detectors(), cmd_print_genealogy(), cmd_print_registry(), cmd_print_revision_list(), cmd_print_top_list(), cmd_produce(), cmd_profile(), cmd_purge(), cmd_remove_history(), cmd_remove_link(), cmd_remove_link_many(), cmd_removeinterval(), cmd_revise2d(), cmd_revise_top(), cmd_revise_top_many(), cmd_reviseOIDs(), cmd_show_link(), cmd_split(), cmd_synchronize_index(), cmd_translate_time(), cmd_unlock_link(), cmd_validate(), cmd_verify(), cmd_verify_config(), cmd_verify_merge(), cmd_verify_merge2(), getListOfDetectors(), load_include_exclude_list(), and main().

BdbObsoleteDatabase* theDatabasePtr [static]
 

Definition at line 159 of file BdbIntervalUtil.cc.

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002