NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions | Variables
sp_ref.cpp File Reference
#include <ncbi_pch.hpp>
#include "ftacpp.hpp"
#include <objects/biblio/Cit_pat.hpp>
#include <objects/biblio/Auth_list.hpp>
#include <objects/pub/Pub_equiv.hpp>
#include <objects/pub/Pub.hpp>
#include <objects/seq/Pubdesc.hpp>
#include <objects/biblio/Cit_gen.hpp>
#include <objects/biblio/Cit_book.hpp>
#include <objects/biblio/Imprint.hpp>
#include <objects/biblio/Cit_jour.hpp>
#include <objects/biblio/ArticleIdSet.hpp>
#include <objects/biblio/ArticleId.hpp>
#include <objects/biblio/Cit_art.hpp>
#include <objects/general/Dbtag.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/biblio/Cit_sub.hpp>
#include <objects/biblio/Affil.hpp>
#include <objects/biblio/Cit_let.hpp>
#include "sprot.h"
#include <objtools/flatfile/flatdefn.h>
#include "ftaerr.hpp"
#include "ftablock.h"
#include "asci_blk.h"
#include "utilref.h"
#include "add.h"
#include "utilfun.h"
#include "ref.h"
+ Include dependency graph for sp_ref.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  ParRefBlk
 

Macros

#define THIS_FILE   "sp_ref.cpp"
 

Typedefs

using ParRefBlkPtr = ParRefBlk *
 

Functions

 USING_SCOPE (objects)
 
static bool NotName (const char *name)
 
static Int4 GetDataFromRN (DataBlkPtr dbp, Uint2 col_data)
 
static void CkSPComTopics (ParserPtr pp, const char *str)
 
static string ParseYear (const char *str)
 
static bool ParseJourLine (ParserPtr pp, ParRefBlkPtr prbp, const char *str)
 
static void ParseRLDataSP (ParserPtr pp, ParRefBlkPtr prbp, char *str)
 
static void GetSprotIds (ParRefBlk *prbp, char *str)
 
static ParRefBlkPtr SprotRefString (ParserPtr pp, DataBlkPtr dbp, Uint2 col_data)
 
static CRef< CDateget_s_date (const Char *str, bool bstring)
 
static void SetCitTitle (CTitle &title, const string &title_str)
 
static bool GetImprintPtr (ParRefBlkPtr prbp, CImprint &imp)
 
static bool GetCitSubmit (ParRefBlkPtr prbp, CCit_sub &sub)
 
static bool GetCitBookOld (ParRefBlkPtr prbp, CCit_art &article)
 
static bool GetCitBook (ParRefBlkPtr prbp, CCit_art &article)
 
static bool GetCitPatent (ParRefBlkPtr prbp, Parser::ESource source, CCit_pat &pat)
 
static bool GetCitGen (ParRefBlkPtr prbp, CCit_gen &cit_gen)
 
static bool GetCitLetThesis (ParRefBlkPtr prbp, CCit_let &cit_let)
 
static bool GetCitArticle (ParRefBlkPtr prbp, CCit_art &article)
 
static void FreeParRefBlkPtr (ParRefBlkPtr prbp)
 
static void DisrootImprint (CCit_sub &sub)
 
static CRef< CPubdescGetPubRef (ParRefBlkPtr prbp, Parser::ESource source)
 
CRef< CPubdescsp_refs (ParserPtr pp, DataBlkPtr dbp, Uint2 col_data)
 

Variables

const char * ParFlat_SPRefRcToken []
 

Macro Definition Documentation

◆ THIS_FILE

#define THIS_FILE   "sp_ref.cpp"

Definition at line 71 of file sp_ref.cpp.

Typedef Documentation

◆ ParRefBlkPtr

Definition at line 105 of file sp_ref.cpp.

Function Documentation

◆ CkSPComTopics()

static void CkSPComTopics ( ParserPtr  pp,
const char *  str 
)
static

◆ DisrootImprint()

static void DisrootImprint ( CCit_sub sub)
static

◆ FreeParRefBlkPtr()

static void FreeParRefBlkPtr ( ParRefBlkPtr  prbp)
static

Definition at line 1172 of file sp_ref.cpp.

Referenced by sp_refs().

◆ get_s_date()

static CRef<CDate> get_s_date ( const Char str,
bool  bstring 
)
static

◆ GetCitArticle()

static bool GetCitArticle ( ParRefBlkPtr  prbp,
CCit_art article 
)
static

◆ GetCitBook()

static bool GetCitBook ( ParRefBlkPtr  prbp,
CCit_art article 
)
static

◆ GetCitBookOld()

static bool GetCitBookOld ( ParRefBlkPtr  prbp,
CCit_art article 
)
static

◆ GetCitGen()

static bool GetCitGen ( ParRefBlkPtr  prbp,
CCit_gen cit_gen 
)
static

◆ GetCitLetThesis()

static bool GetCitLetThesis ( ParRefBlkPtr  prbp,
CCit_let cit_let 
)
static

◆ GetCitPatent()

static bool GetCitPatent ( ParRefBlkPtr  prbp,
Parser::ESource  source,
CCit_pat pat 
)
static

◆ GetCitSubmit()

static bool GetCitSubmit ( ParRefBlkPtr  prbp,
CCit_sub sub 
)
static

◆ GetDataFromRN()

static Int4 GetDataFromRN ( DataBlkPtr  dbp,
Uint2  col_data 
)
static

◆ GetImprintPtr()

static bool GetImprintPtr ( ParRefBlkPtr  prbp,
CImprint imp 
)
static

◆ GetPubRef()

static CRef<CPubdesc> GetPubRef ( ParRefBlkPtr  prbp,
Parser::ESource  source 
)
static

◆ GetSprotIds()

static void GetSprotIds ( ParRefBlk prbp,
char *  str 
)
static

◆ NotName()

static bool NotName ( const char *  name)
static

Definition at line 120 of file sp_ref.cpp.

References ValNode::data, get_tokens(), i, isalpha(), MemFree(), ValNode::next, StringChr, StringLen(), StringSave, and tmp.

Referenced by GetCitBookOld().

◆ ParseJourLine()

static bool ParseJourLine ( ParserPtr  pp,
ParRefBlkPtr  prbp,
const char *  str 
)
static

◆ ParseRLDataSP()

static void ParseRLDataSP ( ParserPtr  pp,
ParRefBlkPtr  prbp,
char *  str 
)
static

◆ ParseYear()

static string ParseYear ( const char *  str)
static

Definition at line 215 of file sp_ref.cpp.

References i, isdigit(), and str().

Referenced by ParseJourLine(), and ParseRLDataSP().

◆ SetCitTitle()

static void SetCitTitle ( CTitle title,
const string title_str 
)
static

Definition at line 577 of file sp_ref.cpp.

References CTitle_Base::Set().

Referenced by GetCitArticle(), GetCitBook(), GetCitBookOld(), and GetCitLetThesis().

◆ sp_refs()

CRef<CPubdesc> sp_refs ( ParserPtr  pp,
DataBlkPtr  dbp,
Uint2  col_data 
)

Definition at line 1279 of file sp_ref.cpp.

References FreeParRefBlkPtr(), GetPubRef(), Parser::source, SprotRefString(), and ParRefBlk::title.

Referenced by DescrRefs().

◆ SprotRefString()

static ParRefBlkPtr SprotRefString ( ParserPtr  pp,
DataBlkPtr  dbp,
Uint2  col_data 
)
static

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ ParFlat_SPRefRcToken

const char* ParFlat_SPRefRcToken[]
Initial value:
= {
"MEDLINE", "PLASMID", "SPECIES", "STRAIN", "TISSUE", "TRANSPOSON", nullptr
}

Definition at line 107 of file sp_ref.cpp.

Referenced by CkSPComTopics().

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