NCBI C++ ToolKit
|
Search Toolkit Book for CTrackData
#include <objtools/readers/track_data.hpp>
Public Types | |
typedef std::vector< std::string > | LineData |
typedef std::map< const std::string, std::string > | TrackData |
Public Member Functions | |
CTrackData () | |
~CTrackData () | |
bool | ParseLine (const LineData &) |
const TrackData & | Values () const |
bool | WriteToAnnot (CSeq_annot &) |
bool | ContainsData () const |
string | Type () const |
string | Description () const |
string | Name () const |
int | Offset () const |
string | ValueOf (const std::string &) const |
Static Public Member Functions | |
static bool | IsTrackData (const LineData &) |
Protected Attributes | |
TrackData | mData |
Definition at line 40 of file track_data.hpp.
typedef std::vector<std::string> CTrackData::LineData |
Definition at line 44 of file track_data.hpp.
typedef std::map<const std::string, std::string > CTrackData::TrackData |
Definition at line 45 of file track_data.hpp.
CTrackData::CTrackData | ( | ) |
Definition at line 52 of file track_data.cpp.
|
inline |
Definition at line 48 of file track_data.hpp.
|
inline |
Definition at line 56 of file track_data.hpp.
|
inline |
Definition at line 60 of file track_data.hpp.
Referenced by WriteToAnnot().
Definition at line 59 of file track_data.cpp.
Referenced by ParseLine(), and CReaderBase::xParseTrackLine().
|
inline |
Definition at line 61 of file track_data.hpp.
Referenced by WriteToAnnot().
int CTrackData::Offset | ( | ) | const |
Definition at line 89 of file track_data.cpp.
References offset, NStr::StringToInt(), and ValueOf().
Definition at line 67 of file track_data.cpp.
References IsTrackData(), ncbi::grid::netcache::search::fields::key, mData, NStr::Replace(), NStr::SplitInTwo(), NStr::TruncateSpacesInPlace(), and rapidjson::value.
|
inline |
Definition at line 59 of file track_data.hpp.
string CTrackData::ValueOf | ( | const std::string & | ) | const |
Definition at line 100 of file track_data.cpp.
References ncbi::grid::netcache::search::fields::key.
Referenced by Offset().
Definition at line 53 of file track_data.hpp.
Referenced by WriteToAnnot().
bool CTrackData::WriteToAnnot | ( | CSeq_annot & | annot | ) |
Definition at line 113 of file track_data.cpp.
References CUser_object::AddField(), Description(), ctll::empty(), Name(), CAnnot_descr_Base::Set(), CUser_object_Base::SetData(), CSeq_annot_Base::SetDesc(), CSeq_annot::SetNameDesc(), CSeq_annot::SetTitleDesc(), CUser_object_Base::SetType(), CAnnotdesc_Base::SetUser(), and Values().
|
protected |
Definition at line 68 of file track_data.hpp.
Referenced by ParseLine().