NCBI C++ ToolKit
|
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <signal.h>
#include "lmdb.h"
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | flagbit |
Macros | |
#define | Z "z" |
#define | PRINT 1 |
Typedefs | |
typedef struct flagbit | flagbit |
Functions | |
static void | dumpsig (int sig) |
static void | hex (unsigned char c) |
static void | text (MDB_val *v) |
static void | byte (MDB_val *v) |
static int | dumpit (MDB_txn *txn, MDB_dbi dbi, char *name) |
static void | usage (char *prog) |
int | main (int argc, char *argv[]) |
Variables | |
static int | mode |
flagbit | dbflags [] |
static volatile sig_atomic_t | gotsig |
static const char | hexc [] = "0123456789abcdef" |
#define PRINT 1 |
Definition at line 29 of file mdb_dump.c.
#define Z "z" |
Definition at line 26 of file mdb_dump.c.
Definition at line 81 of file mdb_dump.c.
References hex(), MDB_val::mv_data, and MDB_val::mv_size.
Referenced by BOOST_AUTO_TEST_CASE(), decode_utf8(), dumpit(), emit_byte(), CObjectIStreamAsnBinary::GetTagPattern(), CSnpBitfield1_2::GetVariationClass(), CSnpBitfield2::GetVariationClass(), CObjectIStreamAsnBinary::PeekAnyTagFirstByte(), CObjectIStreamAsnBinary::PeekLongTag(), CObjectIStreamAsn::ReadBitString(), sljit_emit_simd_lane_replicate(), Split_Qscore_SeqGraph_By_DeltaSeq(), sx_CalcByteBitCount(), and CObjectOStreamAsnBinary::WriteByte().
Definition at line 95 of file mdb_dump.c.
References flagbit::bit, byte(), data, dbflags, flags, gotsig, i, info, ncbi::grid::netcache::search::fields::key, mdb_cursor_get(), mdb_cursor_open(), mdb_dbi_flags(), MDB_DUPSORT, mdb_env_info(), MDB_NEXT, MDB_NOTFOUND, mdb_stat(), MDB_SUCCESS, mdb_txn_env(), MDB_envinfo::me_mapaddr, MDB_envinfo::me_mapsize, MDB_envinfo::me_maxreaders, mode, ms(), PRINT, text(), and Z.
Referenced by main().
|
static |
Definition at line 56 of file mdb_dump.c.
References hexc.
Referenced by _SEH_Handler(), CSeqMaskerUsetSimple::add_info(), mu::ParserByteCode::AsciiDump(), BitCountChangeTest(), BOOST_AUTO_TEST_CASE(), byte(), CSeqMaskerOstatAscii::doFinalize(), CGuidGenerator::DoGenerateSlnGUID(), CSeqMaskerOstatAscii::doSetUnitCount(), CBDB_FileDumper::Dump(), CDumpSysInfo::DumpSystemInfo(), FindCompartments(), CGuidGenerator::Generate12Chars(), CClassTypeStrings::GenerateClassCode(), SCacheInfo::GetBlob_idsSubkey(), CMD5::GetHexSum(), hex2num(), CHTMLHelper::HTMLDecode(), mu::ParserInt::IsHexVal(), main(), CJaegerTracer::OnRequestStart(), CTreePrintFunc< TTreeNode, TConverter >::operator()(), operator<<(), CObjectIStreamAsn::ReadBitString(), CWalkAsnCacheApplication::Run(), CDemoApp::Run(), CFeatTreeSampleApp::Run(), s_PrintTable(), COffsetData_Factory::Save(), SERV_GetServers(), TestHasZeroByte(), text(), to_hex_str(), CRgbaColor::ToHtmlString(), CObjectOStreamAsn::WriteBitString(), CMsvcConfigure::WriteExtraDefines(), CChecksum::WriteHexSum(), IRegistry::x_CheckFlags(), CBlastDB_SeqFormatter::x_GetSeqHash(), CAgpFastaComparator::x_Process(), and CBGZFFile::x_ReadBlock().
Definition at line 162 of file mdb_dump.c.
References count, dumpit(), dumpsig(), env, lmdb::env_close(), exit(), EXIT_FAILURE, EXIT_SUCCESS, free(), getopt, i, ncbi::grid::netcache::search::fields::key, malloc(), mdb_close, mdb_cursor_close(), mdb_cursor_get(), mdb_cursor_open(), mdb_env_close(), mdb_env_create(), mdb_env_open(), mdb_env_set_maxdbs(), MDB_NEXT_NODUP, MDB_NOSUBDIR, MDB_NOTFOUND, mdb_open, MDB_RDONLY, mdb_strerror(), MDB_SUCCESS, mdb_txn_abort(), mdb_txn_begin(), MDB_VERSION_STRING, mode, NULL, optarg, optind, PRINT, prog, str(), strerror(), subname, lmdb::txn_abort(), and usage().
Definition at line 62 of file mdb_dump.c.
References hex(), isprint(), MDB_val::mv_data, and MDB_val::mv_size.
Referenced by CColorPanel::AddNewRow(), CSeqShortText::AddParagraph(), COStreamTextOStream::AddParagraph(), CStrWithUrlContainer::AddText(), CClickableSortUniqueCount::AddToListCtrl(), CGlBitmapFont::ArrayTextOut(), CGlTextureFont::ArrayTextOut(), CAlnMultiRenderer::AutoFitColumns(), CSQLITE_Statement::Bind(), BOOST_AUTO_TEST_CASE(), CGridCellWrapStringRenderer::BreakLines(), cb_cdata(), cb_comment(), cb_text(), xml::event_parser::cdata(), CHTMLComment::CHTMLComment(), CHTMLNode::CHTMLNode(), compute_msg_handler(), CConnTest::ConnStatus(), CGlPaneWidgetDemoPanel::CreateControls(), cs_strbuild(), ct_cursor(), dbmoretext(), dbstrbuild(), dbwritetext(), CGlFeedbackFont::DecodeText(), CStringConstraint::DoesTextMatch(), CStrWithURLRenderer::DoGetBestSize(), CMainFrame::DoGiveHelp(), CAttribMenuItem::Draw(), CGridCellWrapStringRenderer::Draw(), OpenGLRenderer::DrawLabel(), dumpit(), CGlFeedbackFont::EncodeText(), xml::impl::epimpl::event_cdata(), xml::impl::epimpl::event_comment(), xml::impl::epimpl::event_text(), CNewCleanup_imp::Except_textBC(), extract_error(), CFlatFileViewContext::FindSequence(), CTextItemPanel::FindSequence(), FindSubItem(), CFeaturePanel::FindText(), CSeqGraphicWidget::FindText(), CSeqGraphicPane::FindText(), CFlatAnticodonQVal::Format(), CFlatModelEvQVal::Format(), fta_concat_except_text(), fta_StringMatch(), NSearchFeatPanel::GatherFeatures(), CCalcSizeCache::Get(), CGridCellWrapStringRenderer::GetBestSize(), CAlnVecRow::GetColumnText(), GetDeltaSeqSummary(), CConn_IOStream::GetDescription(), GetExtraAccession(), CMatchFeatureTableDlg::GetFtableIDToSeqIDMap(), CFeatGlyph::GetHTMLActiveAreas(), CHistogramGlyph::GetHTMLActiveAreas(), CVcfGlyph::GetHTMLActiveAreas(), CGuiObjectInfoSeq_align::GetLinks(), CWord_substitution::GetMatchLens(), CRenderCommon::GetMetric(), CRenderVector::GetMetric(), CGlTextureFont::GetMetric(), CGlBitmapFont::GetMetric(), CEntrezgene::GetNomenclature(), CParseTextOptionsDlg::GetParseOptions(), CMTTestThread::GetRandomId(), CSUCRefreshCntrl::GetRefreshedText(), CNetBLASTLoadOptionPanel::GetRIDs(), CFlatFileGenerator::GetSeqFeatText(), GetSeqLocFromString(), CCommentItem::GetStringForBankIt(), CCommentItem::GetStringForHTGS(), CCommentItem::GetStringForModelEvidance(), CWriteUtil::GetStringForModelEvidence(), CCommentItem::GetStringForTLS(), CCommentItem::GetStringForTPA(), CCommentItem::GetStringForTSA(), CCommentItem::GetStringForUnordered(), CCommentItem::GetStringForWGS(), CAttribStringsMenuItem::GetText(), CSUCResults::GetText(), CSUCBlock::GetText(), CAttribMenuItem::GetTextDim(), CAttribStringsMenuItem::GetTextValue(), CGlTextureFont::GetTextXform(), CInferencePanel::GetValue(), CTextUtil::GetWordFrequencies(), ignore_msg_handler(), CGenBankLoadOptionPanel::IsInputValid(), CCDSTranslationPanel::IsValidException(), CBoyerMooreMatcher::IsWholeWord(), CEditObjectSeq_desc::LocationChange(), CDockContainer::LogPostTrees(), main(), MakeGoTerm(), MakeLoc(), MatchArrayIString(), MatchArrayISubString(), MatchArrayString(), MatchArraySubString(), Cn3DGLCanvas::MeasureText(), CAppJobTask::OnAppJobNotification(), CSeqTextPane::OnCopy(), CJobResultsDlg::OnExportClick(), CGenericPanel::OnGenericReportFindClick(), CGenericPanel::OnGenericReportFindClick2(), CBLASTSearchOptionsPanel::OnSelectLocalDB(), CLocationListCtrl::OnSortClick(), CSUCRefreshCntrl::OnSUCData(), CFrameworkDemoGUI::OnTestDiagPanelUpdate(), CColorPanel::OnTextCtrlUpdated(), CTextView::OnTextPositionChanged(), CProjectTreePanel::OnUpdateEnableDisable(), CAlnMultiWidget::OnUpdateUnhideSelected(), CCalcNBPosOStream::operator<<(), CCalcCharsOStream::operator<<(), CDrawTextOStream::operator<<(), CCalcDataPosOStream::operator<<(), CCalcSizeStream::operator<<(), CCalcCaretPosOStream::operator<<(), CCalcSizeOStream::operator<<(), CCalcTextPosOStream::operator<<(), CDB_Text::operator=(), CwxLogDiagHandler::Post(), CHTMLText::PrintBegin(), CAgpErrEx::PrintMessageXml(), SCommandLineParserImpl::PrintWordWrapped(), CFastCgiMTSampleRequestProcessor::ProcessRequest(), CCgiSampleApplication::ProcessRequest(), ProgressMeter::ProgressMeter(), CCalcSizeCache::Put(), ReadLocFromText(), RecursiveText(), RecursiveXML(), CSUCRefreshCntrl::RefreshText(), CAlnVecRow::RenderColumn(), ReplaceUnprintableCharacters(), CFlatFileMessageReporter::Report(), CSubmissionWizard::ReportMissingFields(), COrganismInfoPanel::ReportMissingFields(), CGenomeInfoPanel::ReportMissingFields(), COrgGeneralPanel::ReportMissingFields(), CPublishedRefPanel::ReportMissingFields(), CPubStatusPanel::ReportMissingFields(), CReferencePanel::ReportMissingFields(), CSeqSubChromoPanel::ReportMissingFields(), CSubMolinfoPanel::ReportMissingFields(), CSeqSubOrganellePanel::ReportMissingFields(), CSeqSubPlasmidPanel::ReportMissingFields(), CSubmitterAffilPanel::ReportMissingFields(), CSubmitterNamePanel::ReportMissingFields(), CSubmitterPanel::ReportMissingFields(), CUnpublishedRefPanel::ReportMissingFields(), CException::ReportStd(), CId2FetchApp::Run(), CDemoApp::Run(), s_CreateHistCommentString(), s_DoesTextContainOnlyTheseWords(), s_FindSeparator(), s_FindSubItem(), s_GetExceptionText(), s_GetMultiLineSize(), s_GetSpecimenVoucherText(), s_IsValidExceptionText(), s_IsValidPseudoGene(), s_IsValidRefSeqExceptionText(), s_Printable(), s_ReadHeader(), s_Render_GenericAlign(), s_Render_PairwiseAlign(), s_Render_SeqFeat(), s_Update(), CBoyerMooreMatcher::Search(), SeqDB_FileIntegrityAssert(), variation::SeqsMatch(), SERV_Update(), CConfigureTracksDlg::SetCategory(), CStatusBarService::SetStatusText(), CMessageSlot::SetText(), CAppJobProgress::SetText(), CTooltip::SetText(), CGenericPanel::SetText(), CGenericReportDlg::SetText(), CGenericReportDlgModal::SetText(), CAlnSpanSettingsDlg::SetThreshold(), CWorkbench::ShowCommandHint(), SkipCommentAndBlank(), NSearchFeatPanel::SplitPosOrRange(), StringMatchIcase(), CStrWithUrlParser::StripHtml(), CCitSubUpdater::sx_GetCitSubForSequence(), tds_vstrbuild(), tds_writetext_continue(), CRenderingContext::TextOut(), CGlBitmapFont::TextOut(), CGlTextureFont::TextOut(), TextOutAligned(), CRenderCommon::TextWidth(), CRenderVector::TextWidth(), CGlTextureFont::TextWidth(), CGlBitmapFont::TextWidth(), CLocationListCtrl::TransferDataFromWindow(), CGlBitmapFont::Truncate(), CGlTextureFont::Truncate(), update_second_table(), CDescriptorTextPanel::UpdateSeqdesc(), CClickableSortUniqueCount::UpdateTree(), UTIL_GenerateHMAC(), UTIL_MatchesMask(), UTIL_MatchesMaskEx(), CValidError_bioseq::ValidateSeqFeatContext(), WindowSetText(), WrapText(), CStyledTextOStream::WriteMultiLineText(), CUnalignedRegionDlg::WriteNormalText(), CUnalignedRegionDlg::WriteRedText(), CGlTextureFont::WriteText(), CGlRenderDebug::WriteText(), CRenderCommon::WriteText(), CGlRenderPdf::WriteText(), CSVGRenderer::WriteText(), CLinkedFeatsGroup::x_AddFeatHTMLActiveArea(), CColorPanel::x_AddNewRow(), CCorrectRNAStrandDlg::x_AddRow(), CLocationListCtrl::x_AddRow(), CConvertCDSToPseudoGene::x_AddToGeneDescr(), CConvertCDSToPseudoGene::x_AddToGeneLocus(), CMakeBadSpecificHostTable::x_AppendToTable(), CMapItem::x_CalculateRealTextWidth(), CTooltipFrame::x_CreateHtmlTextControl(), CTooltipFrame::x_CreateHtmlTextControlTest(), CTooltipFrame::x_CreateRichTextControl(), CBinsGlyph::x_Draw(), CScatterPlotGlyph::x_Draw(), CMapItem::x_DrawText(), CSoapServerApplication::x_FaultServer(), CTextPanel::x_FindText(), CGraphicPanel::x_FindText(), x_FTPRetrieveCB(), CGenomeAnnotComment::x_GatherInfo(), CGuiObjectInfoSeq_feat::x_GetFeatureToolTip(), CGuiObjectInfoSeq_feat::x_GetGroupToolTip(), CDiagConsoleCache::x_GetItem(), CLocationListCtrl::x_GetRowData(), CSimpleDesktopItem::x_GetVisibleTextSize(), CCompositeDesktopItem::x_GetVisibleTextSize(), CRootDesktopItem::x_GetVisibleTextSize(), x_IsValidChallenge(), CFeatureSearchJob::x_Match(), x_MatchesMask(), CConn_Streambuf::x_Message(), CAlnVecMultiDataSource::x_OnJobProgress(), CSparseMultiDataSource::x_OnJobProgress(), CGenBankLoadOptionPanel::x_ProccessText(), CNcbiDiag::x_Put(), CTextItemDefault::x_RenderText(), CTextItemSeq_align::x_RenderText(), CTextItemSeq_feat::x_RenderText(), CTextItemSeq_loc::x_RenderText(), CAlnVecRow::x_RenderTextCell(), CRawSeqToDeltaByNPanel::x_SetDescription(), CFeatureGenerator::SImplementation::x_SetExceptText(), CNetBlastSubmittingJob::x_SetStatusText(), CNetBlastMonitoringJob::x_SetStatusText(), CAppJob::x_SetStatusText(), CMessageSlot::x_SetText(), CScriptPanel::x_ShowSplashWindow(), CGlBitmapFont::x_Truncate(), CGlTextureFont::x_Truncate(), CGlTextureFont::x_Truncate2(), CMacroPanelLoader::x_UpdateCtrlsOnLBoxSelChange(), CColumnarVCFReaderApp::x_UpdateProgress(), CAssemblyListPanel::x_UpdateSearchTerm(), CLBLASTParamsPanel::x_UpdateSeqCount(), CCdregionValidator::x_ValidateBadMRNAOverlap(), CSingleFeatValidator::x_ValidateExceptText(), CCdregionValidator::x_ValidateExceptText(), CGeneValidator::x_ValidateExceptText(), CBamLoadOptionPanel::x_ValidateInput(), CGenBankLoadOptionPanel::x_ValidateInput(), and CGlTextureFont::x_WriteText().
|
static |
Definition at line 156 of file mdb_dump.c.
References exit(), EXIT_FAILURE, and prog.
Referenced by main().
flagbit dbflags[] |
Definition at line 37 of file mdb_dump.c.
Referenced by dumpit().
|
static |
Definition at line 47 of file mdb_dump.c.
|
static |
Definition at line 54 of file mdb_dump.c.
Referenced by hex().
|
static |
Definition at line 30 of file mdb_dump.c.