NCBI C++ ToolKit
Macros | Functions | Variables
getdata.c File Reference
#include "common.h"
#include <common/test_assert.h>
+ Include dependency graph for getdata.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define CheckLen(x)
 

Functions

static void test_err (const char *data, int c_type, const char *state)
 
static int mycmp (const char *s1, const char *s2)
 
static void test_split (const char *n_flag)
 
int main (int argc, char *argv[])
 

Variables

static int lc
 
static int type
 

Macro Definition Documentation

◆ CheckLen

#define CheckLen (   x)
Value:
do { \
if (len != (x)) { \
fprintf(stderr, "Wrong len %ld at line %d expected %d\n", (long int) len, __LINE__, (x)); \
exit(1); \
} \
} while(0)
int len

Function Documentation

◆ main()

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

◆ mycmp()

static int mycmp ( const char *  s1,
const char *  s2 
)
static

Definition at line 34 of file getdata.c.

References assert, buf, l(), lc, SQL_C_CHAR, and util::strcmp().

Referenced by test_split().

◆ test_err()

static void test_err ( const char *  data,
int  c_type,
const char *  state 
)
static

◆ test_split()

static void test_split ( const char *  n_flag)
static

Definition at line 53 of file getdata.c.

References buf, CheckLen, CHKFetch, CHKGetData, exit(), lc, len, mycmp(), NULL, odbc_command, ODBC_FREE, ODBC_GET, odbc_reset_statement, sql, SQL_NO_TOTAL, and SQLLEN.

Referenced by main().

Variable Documentation

◆ lc

int lc
static

◆ type

int type
static
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbimisc.hpp, and /home/coremake/doxygen/cxx/include/util/data_histogram.hpp.

Definition at line 31 of file getdata.c.

Referenced by _Py_SET_TYPE(), _SQLError(), _SQLTables(), CAliCreator::Add(), CServer_ConnectionPool::Add(), SWGSFeatChunkInfo::SFeatureSet::AddContent(), CFeatureFilter::AddId(), dtl::Ses< elem >::addSequence(), CBDB_Volumes::AddVolume(), CGtfImportData::AdjustFeatureType(), AgpRead(), TypeStringAssociator< StyleSettings::eLabelType >::Associate(), DTDParser::AttribBlock(), CObjectIStreamXml::BeginArrayElement(), CObjectOStreamXml::BeginArrayElement(), CObjectIStreamJson::BeginContainer(), CObjectOStreamJson::BeginContainer(), CCgiResponse::BeginPart(), bm::all_set< T >::block_type(), Convert::CassIteratorToTupleImpl(), check_cds(), SAnnotSelector::CheckAnnotType(), CMatePairGlyph::CMatePairGlyph(), CCodeGenerator::CollectTypes(), DTDParser::CompositeNode(), ContextStart(), CMemberInfoFunctions::CopyHookedMember(), CVariantInfoFunctions::CopyHookedVariant(), CMemberInfoFunctions::CopyMissingHookedMember(), CAnnotationASN1::CImplementationData::create_ModelEvidence_user_object(), CreateAsnConn(), CAsnElementPrimitive::CreateItem(), CSimpleMakeFileContents::CSimpleMakeFileContents(), ct_command(), ct_dynamic(), CTableDataAlnSummary::CTableDataAlnSummary(), dbrpcparam(), rapidjson::UTF8< CharType >::Decode(), decode_utf8(), DoTest(), DSOCK_CreateEx(), CProcessor_ID2::DumpDataAsText(), CObjectIStreamXml::FindDeep(), CItemsInfo::FindEmpty(), CItemsInfo::FindNextMandatory(), FindPolyTail(), CItemsInfo::FindRealTypeInfo(), CBinsGlyph::GenerateBinSignature(), CCodeGenerator::GenerateClientCode(), CGeneMarkerGlyph::GenerateGeneMarkerSignature(), GenerateSignature(), rapidjson::GenericValue< rapidjson::Encoding, rapidjson::Allocator >::GenericValue(), Get3type(), CBamDb::SPileupValues::get_max_count(), SBaseStats::get_max_count(), get_my_seq_type(), get_pat(), CSparseMultiDataSource::GetAlignType(), IAlnGraphicDataSource::GetAlignType(), CSGAlignmentJob::GetAlignType(), CAnnotType_Index::GetAnnotTypeRange(), NSnpBins::GetBin(), CBamAlignIterator::GetCIGARAlignment(), CBamAlignIterator::GetCIGARRefSize(), CBamAlignIterator::GetCIGARShortSize(), CAlnMultiRenderer::GetColumnTypeByIndex(), CAlnMultiRenderer::GetColumnTypeByX(), CDDTypedAnnotDialog::GetData(), CAlignFormatUtil::GetDbType(), CSGDataSourceContext::GetDS(), CAnnotType_Index::GetFeatTypeRange(), CReferenceDataType::GetFullCType(), CCSRABlobId::GetGeneralIdType(), CLabel::GetIconAlias(), CMTreeItemDataBuilder::GetMActionType(), CBamAlignIterator::GetMatchAlign(), CMemorySrcFileMap::GetMods(), GetNucAccOwner(), CSequesterSets::GetParams(), GetParams(), GetPrefixOrSuffixType(), GetProtAccOwner(), CBamAlignIterator::GetRawCIGAR(), GetRnaRef(), GetRRNAtype(), CDataLoader::GetSequenceType(), CCPPToolkitConnParams::GetServerType(), NMItemData::GetSourceTypeInDoublePanel(), NMItemData::GetSourceTypeInSinglePanel(), CGBRequestStatistics::GetStatistics(), CDiscrepancyObject::GetTextObjectDescription(), GetTextObjectDescription(), CAlnChunkSegment::GetType(), CConn_IOStream::GetType(), CSeqTableInfo::GetType(), CResolvedTypeSet::GetType(), CImageIO::GetTypeFromMagic(), NMacroUtil::GetUnverifiedType(), CCacheReader::GoingToLoad(), GUI_AsyncExec(), CObjectIStreamXml::HasMoreElements(), CSeq_id::IdentifyAccession(), SAnnotSelector::IncludedAnnotType(), SAnnotSelector::IncludedFeatType(), CResultSet::Init(), CVDBColumn::Init(), CMenuItem::Init(), CDensegSegment::Init(), CSparseSegment::Init(), CInDelInfo::Init(), ScoreMatrix::initialize(), CSequenceOfTypeInfo::InitSequenceOfTypeInfo(), is_tds_type_valid(), CProjectTableViewFactory::IsCompatibleWith(), CAlnSummaryViewFactory::IsCompatibleWith(), CMultiAlignViewFactory::IsCompatibleWith(), CFeatTableViewFactory::IsCompatibleWith(), CViewGraphicFactory::IsCompatibleWith(), IBISInteraction::IsIbisIntType(), CEventViewModel::IsTypeShown(), LoadFeat(), CReader::LoadSequenceType(), main(), MIME_ComposeContentTypeEx(), CAnnotationASN1::CImplementationData::model2spliced_seq_align(), CObjectCounterLocker::MonitorObjectType(), ASNParser::NamedDataType(), NMacroUtil::NameToLabelType(), NcbiTestGenTestCases(), DTDParser::NillableBlock(), CCacheReader::NoNeedToSave(), odbc_set_concise_c_type(), odbc_set_concise_sql_type(), odbc_stat_execute(), odbc_tds_version_long(), SequenceViewerWindow::OnExport(), CSubPrep_panel::OnFlatfileClick(), CAppRegistry::operator[](), CAlnMap::CAlnChunkVec::operator[](), CPubseqGatewayCachePackBytes::Pack(), CPubseqGatewayCachePackBytes::PackImpl(), CNcbiApplogApp::ParseToken(), CProcessing::Performance(), prepare_call(), prepared_rpc(), CStaticDataType::PrintJSONSchema(), CGBRequestStatistics::PrintStatistics(), CUniSequenceDataType::PrintXMLSchema(), CProcessor_ExtAnnot::Process(), CReadBlastApp::processFeature(), CGlCgiImageApplication::ProcessRequest(), CTextViewProjectItemExtension::ProjectItemAttached(), psa_set_key_type(), mpmc_bounded_queue_w< size_t, kNotifyQueueLen >::push(), read_name(), CWidgetDisplayStyle::ReadColor(), reduce_code_size(), CLabel::RegisterLabelHandler(), DTDElement::ResetType(), CReferenceDataType::ResolveLocalOrParent(), CGumbelParamsApplication::Run(), s_ApproveCallback(), s_Connect_(), CSelectQualdDlg::s_ConvertFieldtype(), s_CreateListening(), CWinMaskConfig::s_DetermineAppType(), s_Firewall_Read(), CMacroFunction_MobileElementTypeFields::s_GetMobileElemTType(), s_GetSelectedMolinfoType(), CSeqFeatData::s_InitSubtypesTable(), CMacroFunction_MobileElementTypeFields::s_MakeMobileElementT(), CMacroFunction_SatelliteFields::s_MakeSatellite(), s_MeasureWord(), s_Open(), s_VT_Open(), CTypeConverter< T >::SafeCast(), save_retparam(), SERV_CreateFirewallInfoEx(), SERV_CreateHttpInfoEx(), SERV_ReadInfoEx(), CTimeout::Set(), CDisplaySeqalign::SetAlignType(), CAlignmentTrack::SetAlnType(), CDisplaySeqalign::SetBlastType(), CShowBlastDefline::SetBlastType(), CWidgetDisplayStyle::SetColor(), CDB_BlobDescriptor::SetColumnType(), CServer_ConnectionPool::SetConnType(), CTypeStrings::SetDataType(), CELink_Request::SetDateType(), CESearch_Request::SetDateType(), CUniSequenceDataType::SetElementType(), CMacroParser::SetErrLocReportType(), CRR_MetaInfo< TTraits >::SetFieldType(), CRR_MetaInfo< TTraits >::SetFieldTypeEx(), CDataType::SetGlobalType(), CBam2Seq_graph::SetGraphType(), CBam2Seq_graph::SetGraphValueType(), CLinkedFeatsGroup::SetLabelType(), CGlCamera::SetLayout(), CPythonDiagHandler::SetLogger(), CBlastOptionsLocal::SetLookupTableType(), CBlastOptionsLocal::SetMBTemplateType(), CObjectIStream::SetMonitorType(), IMacroFunction< CIRef< IMacroBioDataIter > >::SetNestedState(), CParamQFB::SetParamType(), CBlastTracebackSearch::SetResultType(), CPsiBlastImpl::SetResultType(), CRowStyleCatalog::SetRowTypeStyle(), CSplign::SetScoringType(), CProcessor::SetSeqEntryReadHooks(), impl::CConnection::SetServerType(), impl::CDBConnParamsBase::SetServerType(), CProcessor::SetSNPReadHooks(), CSrcTableColumnBase::SetSourceType(), CRemoteAppRequest::SetStdOutErrFileNames(), CRemoteAppResult::SetStdOutErrFileNames(), CProjectItemExtra::SetStr(), CTSE_Info::SetTopLevelObject(), CGffBaseRecord::SetType(), CDiscrepancyContext::CParseNode::SetType(), CEventRecord::SetType(), CMenuItem::SetType(), DTDEntity::SetType(), DTDAttribute::SetType(), DTDElement::SetType(), CExprValue::SetType(), DTDAttribute::SetTypeIfUnknown(), DTDElement::SetTypeIfUnknown(), CScoringMethodsDlg::Setup(), NuclWordFinderTextFixture::setupExtendWord(), CWsdlDataType::SetWsdlType(), CWGSDb_Impl::SFeatTableCursor::SFeatTableCursor(), CEventViewModel::ShowType(), CMemberInfoFunctions::SkipHookedMember(), CVariantInfoFunctions::SkipHookedVariant(), CMemberInfoFunctions::SkipMissingHookedMember(), sljit_emit_call(), sljit_emit_icall(), CAlnMultiModel::SortByColumn(), SPFeatGeneral(), CSplitter::Split(), SpProcFeatBlk(), CNSClientsRegistry::StaleNodes(), sx_MakeGapLiteral(), sx_PushLastNewPtr(), CAppendModToOrgDlg::Tchoice_item::Tchoice_item(), tds71_do_login(), tds_connect(), tds_multiple_init(), tds_process_default_tokens(), tds_process_dynamic(), tds_process_env_chg(), tds_save(), tds_save_env(), tds_set_column_type(), tds_variant_get(), tdsdump_col(), Test(), TestDescriptorValues(), CAlignSpanViewFactory::TestInputObjects(), TestName(), CSerialObject::ThrowUnassigned(), DTDParser::Type(), ASNParser::Type(), DTDParser::TypesBlock(), CPubseqGatewayCacheUnpackBytes::Unpack(), CPubseqGatewayCacheUnpackBytes::UnpackImpl(), ValidSeqType(), CTSE_Chunk_Info::x_AddFeat_ids(), CLinkUtils::x_AddLink(), CTSE_Chunk_Info::x_AddXref_ids(), CSplicedAligner32::x_Align(), CArchive::x_Append(), CODBC_RPCCmd::x_AssignParams(), CFeatTree::x_AssignParents(), DTDParser::x_AttribType(), x_BlankInfo(), CMacroFunction_StringConstraints::x_CheckConstraintWithinClass(), CTableViewWithTextViewNav::x_CreateDefaultTextView(), x_CreateLocalCDDEntryChunk(), CGeneModelFeatJob::x_FilterStrToValue(), CCIGAR_Formatter::x_FormatLine(), CVecscreen::x_GetAlnInfo(), CAlnMap::x_GetChunks(), CWidgetDisplayStyle::x_GetColor(), CStatementBase::x_GetCType(), CGBDocument::x_GetDataSourceByType(), CAlnVecRow::x_GetDescrTooltip(), CTSE_Info::x_GetFeatIdIndexInt(), CTSE_Info::x_GetFeatIdIndexStr(), CObjectIndex::x_GetFeatureCode(), CGridTableSeqIds::x_GetLabel(), CMacroFunction_UpdateProteinSeqs::x_GetMatchType(), CScoreMethodsDlg::x_GetSelectedType(), CStatementBase::x_GetSQLType(), CSeq_id_Mapper::x_GetTree(), CFeatGlyph::x_GetUndefinedBp_from(), CFeatGlyph::x_GetUndefinedBp_to(), CSeq_annot_Info::x_InitFeatTable(), CAnnotType_Index::x_InitIndexTables(), CTaxValidationAndCleanup::x_InterpretTaxonomyError(), x_json_object_dothas_value_of_type(), x_json_object_has_value_of_type(), CVecscreen::x_MergeSeqalign(), CConn_Streambuf::x_Message(), CMultiAlignViewFactory::x_NeedsConversion(), CSeqTextViewFactory::x_NeedsConversion(), CFeatTableViewFactory::x_NeedsConversion(), CViewGraphicFactory::x_NeedsConversion(), x_NoDataReply(), CURLTooltipHandler::x_ParseGenomicLinkHref(), CBinsJob::x_PreFetchFtable(), CId2ReaderBase::x_ProcessGetSeqIdSeqId(), CNSClientsRegistry::x_PurgeInactiveClients(), CNSClientsRegistry::x_PurgeWNodesAndReaders(), CAsnRetrieveJob::x_Run(), CTaxonomy4BlastSQLite::x_SanityCheck(), CDataType::x_SetMemberAndClassName(), CDeflineGenerator::x_SetSuffix(), CSplitter::x_Split(), CRemoveGeneXrefTreeItemData::x_TranslateType(), DTDParser::x_Type(), CMacroFunction_ConvertFeatQual::x_ValidArguments(), CMacroFunction_ParseFeatQual::x_ValidArguments(), CMacroFunction_AddParsedToFeatQual::x_ValidArguments(), CMacroFunction_CopyFeatQual::x_ValidArguments(), x_WsdlDataType(), C5ColImportData::xFeatureSetType(), CVcfReader::xProcessMetaLineFormat(), and CVcfReader::xProcessMetaLineInfo().

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