NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions | Variables
mdb_dump.c File Reference
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <signal.h>
#include "lmdb.h"
+ Include dependency graph for mdb_dump.c:

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"
 

Macro Definition Documentation

◆ PRINT

#define PRINT   1

Definition at line 29 of file mdb_dump.c.

◆ Z

#define Z   "z"

Definition at line 26 of file mdb_dump.c.

Typedef Documentation

◆ flagbit

typedef struct flagbit flagbit

Function Documentation

◆ byte()

static void byte ( MDB_val v)
static

◆ dumpit()

static int dumpit ( MDB_txn txn,
MDB_dbi  dbi,
char *  name 
)
static

◆ dumpsig()

static void dumpsig ( int  sig)
static

Definition at line 49 of file mdb_dump.c.

References gotsig.

Referenced by main().

◆ hex()

static void hex ( unsigned char  c)
static

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ text()

static void text ( MDB_val v)
static

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().

◆ usage()

static void usage ( char *  prog)
static

Definition at line 156 of file mdb_dump.c.

References exit(), EXIT_FAILURE, and prog.

Referenced by main().

Variable Documentation

◆ dbflags

flagbit dbflags[]
Initial value:
= {
{ 0x02 , "reversekey" },
{ 0x04 , "dupsort" },
{ 0x08 , "integerkey" },
{ 0x10 , "dupfixed" },
{ 0x20 , "integerdup" },
{ 0x40 , "reversedup" },
{ 0, NULL }
}
#define NULL
Definition: ncbistd.hpp:225

Definition at line 37 of file mdb_dump.c.

Referenced by dumpit().

◆ gotsig

volatile sig_atomic_t gotsig
static

Definition at line 47 of file mdb_dump.c.

Referenced by dumpit(), and dumpsig().

◆ hexc

const char hexc[] = "0123456789abcdef"
static

Definition at line 54 of file mdb_dump.c.

Referenced by hex().

◆ mode

int mode
static

Definition at line 30 of file mdb_dump.c.

Referenced by dumpit(), and main().

Modified on Fri Sep 20 14:58:02 2024 by modify_doxy.py rev. 669887