#include <head.h>
Public Member Functions | |
| void | read (ifstream &ins, char ln[]) |
| void | clear () |
| ref () | |
| int | read (istream &ins, string &ln) |
| int | dump (ostream &seq, ostream &pap, ostream &aut) |
| int | writeProtein (ostream &seq, ostream &pap, ostream &aut) |
| string | key () const |
| string | title () const |
| ref () | |
| ref (const ref &r) | |
| ref & | operator= (const ref &r) |
| bool | next (string &ln, istream &in) |
| void | writeRaw (ostream &os) const |
| const string * | get (const string &code) const |
| string | getKey () const |
| bool | bad () |
| vector< string > | process_volpp (string &s) |
| string | process_year (const string &s) |
| string | firstAuthor () const |
Static Public Member Functions | |
| static void | init_field () |
| static void | dumpkeymap (const string &file) |
| static void | readkeymap (const string &file) |
Private Member Functions | |
| void | clear () |
| void | au2list () |
| string | fullName () |
| void | rmSubmit () |
| void | process () |
| void | constructKey () |
Private Attributes | |
| char | key [20] |
| string | auth |
| string | cit |
| string | descrip |
| string | titl |
| string | cont |
| string | note |
| string | acc |
| char | citype [15] |
| char | medid [15] |
| list< accession > | refacc |
| string | jnl |
| string | med |
| string | pubmed |
| string | rmk |
| jinfo | parsedJ |
| vector< string > | authorList |
| map< string, string > | record |
| map< string, string > | digest |
| vector< string > | editor |
| string | key |
Static Private Attributes | |
| static map< string, string > | field = map<string,string>() |
| static string | field_str [14] = {"RN", "Reference number", "RP", "Reference position", "RC", "Reference comment(s)", "RX", "Reference cross-reference(s)", "RA", "Reference authors", "RT", "Reference title", "RL", "Reference location"} |
| static map< string, int > | paperkey = map<string,int>() |
Friends | |
| void | rmAuthorPunc (string &s) |
| void | rmJournalDot (string &s) |
| ostream & | operator<< (ostream &os, const ref &r) |
| ref::ref | ( | ) | [inline] |
| ref::ref | ( | ) | [inline] |
References field, and init_field().
| void ref::read | ( | ifstream & | ins, | |
| char | ln[] | |||
| ) |
References auth, cit, citype, accession::clear(), cont, DATAIDX, descrip, getField(), key(), LINE, medid, note, parerr::pick(), accession::read(), refacc, and titl.
Referenced by main(), and protein::read().
| void ref::clear | ( | ) |
| int ref::read | ( | istream & | ins, | |
| string & | ln | |||
| ) |
References au2list(), auth, clear(), gberr::context(), getf(), jnl, jinfo::load(), med, parsedJ, gberr::print(), gberr::prtContext(), pubmed, rmJournalDot, rmk, and titl.
| int ref::dump | ( | ostream & | seq, | |
| ostream & | pap, | |||
| ostream & | aut | |||
| ) |
References jinfo::affil, authorList, find(), fullName(), jinfo::iss, jnl, jinfo::jo, key(), med, parsedJ, jinfo::pgb, jinfo::pge, pubmed, rmSubmit(), titl, jinfo::vol, and jinfo::yr.
Referenced by main().
| int ref::writeProtein | ( | ostream & | seq, | |
| ostream & | pap, | |||
| ostream & | aut | |||
| ) |
References jinfo::affil, authorList, find(), fullName(), jinfo::iss, jnl, jinfo::jo, key(), med, parsedJ, jinfo::pgb, jinfo::pge, pubmed, rmSubmit(), titl, jinfo::vol, and jinfo::yr.
| string ref::key | ( | ) | const |
Referenced by bad(), clear(), constructKey(), dump(), getKey(), operator=(), read(), ref(), and writeProtein().
| void ref::clear | ( | ) | [private] |
| void ref::au2list | ( | ) | [private] |
| string ref::fullName | ( | ) | [private] |
| void ref::rmSubmit | ( | ) | [private] |
| bool ref::next | ( | string & | ln, | |
| istream & | in | |||
| ) |
ln should contain the first line of the paper record return true if there are more
References constructKey(), prt::content_idx, digest, editor, field, process(), record, and remove_end_mark().
Referenced by prt::next().
| void ref::writeRaw | ( | ostream & | os | ) | const |
| const string * ref::get | ( | const string & | code | ) | const |
get the content, if not present return 0
References record.
| string ref::getKey | ( | ) | const [inline] |
| bool ref::bad | ( | ) | [inline] |
| vector< string > ref::process_volpp | ( | string & | s | ) |
| string ref::process_year | ( | const string & | s | ) |
| string ref::firstAuthor | ( | ) | const |
References firstWord(), and record.
| void ref::init_field | ( | ) | [static] |
| void ref::readkeymap | ( | const string & | file | ) | [static] |
| void ref::process | ( | ) | [private] |
right now is only processing the RX field will try to parse RL field do some formating: removing end markes "; Convert double quotes to single quotes Also try to make a key out of the RL field
References dbtime::aceTime(), digest, erase(), find(), refloc::key(), refloc::loadMap(), book::loadMap(), process_volpp(), process_year(), dbtime::readsw(), record, replace(), replaceInnerQuote(), parsererror::show(), split(), startWith(), startWithIgnoreCase(), and writeRaw().
Referenced by next().
| void ref::constructKey | ( | ) | [private] |
| void rmAuthorPunc | ( | string & | s | ) | [friend] |
Referenced by au2list().
| void rmJournalDot | ( | string & | s | ) | [friend] |
Referenced by read().
| ostream& operator<< | ( | ostream & | os, | |
| const ref & | r | |||
| ) | [friend] |
Out put the paper object in Ace format to the stream os
string ref::key [private] |
Referenced by operator=(), and ref().
string ref::descrip [private] |
char ref::citype[15] [private] |
char ref::medid[15] [private] |
list<accession> ref::refacc [private] |
string ref::jnl [private] |
Referenced by dump(), fullName(), read(), rmSubmit(), and writeProtein().
string ref::med [private] |
Referenced by dump(), read(), and writeProtein().
string ref::pubmed [private] |
Referenced by dump(), read(), and writeProtein().
jinfo ref::parsedJ [private] |
Referenced by dump(), read(), and writeProtein().
vector<string> ref::authorList [private] |
Referenced by au2list(), dump(), and writeProtein().
map<string, string> ref::record [private] |
record is the raw data: It is a map of two letter code => text content
Referenced by constructKey(), firstAuthor(), get(), next(), operator<<(), operator=(), process(), ref(), and writeRaw().
map<string,string> ref::digest [private] |
Referenced by constructKey(), next(), operator<<(), operator=(), process(), process_volpp(), process_year(), and ref().
vector<string> ref::editor [private] |
Referenced by next(), operator<<(), operator=(), and ref().
string ref::key [private] |
map< string, string > ref::field = map<string,string>() [static, private] |
mapping of two-letter code to Text-definition of all possible fields of paper object
Referenced by init_field(), next(), and ref().
string ref::field_str = {"RN", "Reference number", "RP", "Reference position", "RC", "Reference comment(s)", "RX", "Reference cross-reference(s)", "RA", "Reference authors", "RT", "Reference title", "RL", "Reference location"} [static, private] |
Referenced by init_field().
map< string, int > ref::paperkey = map<string,int>() [static, private] |
to track all paper objects
Referenced by constructKey(), dumpkeymap(), and readkeymap().
1.5.6