NCBI C++ ToolKit
|
Search Toolkit Book for CDateItem
#include <objtools/format/items/date_item.hpp>
Public Member Functions | |
CDateItem (CBioseqContext &ctx) | |
void | Format (IFormatter &formatter, IFlatTextOStream &text_os) const override |
const CDate * | GetCreateDate (void) const |
const CDate * | GetUpdateDate (void) const |
EItem | GetItemType () const override |
Public Member Functions inherited from CFlatItem | |
bool | IsSetObject (void) const |
const CSerialObject * | GetObject (void) const |
CBioseqContext * | GetContext (void) |
CBioseqContext * | GetContext (void) const |
bool | Skip (void) const |
bool | IsExternal (void) const |
~CFlatItem (void) | |
Public Member Functions inherited from IFlatItem | |
virtual | ~IFlatItem (void) |
Public Member Functions inherited from CObject | |
CObject (void) | |
Constructor. More... | |
CObject (const CObject &src) | |
Copy constructor. More... | |
virtual | ~CObject (void) |
Destructor. More... | |
CObject & | operator= (const CObject &src) THROWS_NONE |
Assignment operator. More... | |
bool | CanBeDeleted (void) const THROWS_NONE |
Check if object can be deleted. More... | |
bool | IsAllocatedInPool (void) const THROWS_NONE |
Check if object is allocated in memory pool (not system heap) More... | |
bool | Referenced (void) const THROWS_NONE |
Check if object is referenced. More... | |
bool | ReferencedOnlyOnce (void) const THROWS_NONE |
Check if object is referenced only once. More... | |
void | AddReference (void) const |
Add reference to object. More... | |
void | RemoveReference (void) const |
Remove reference to object. More... | |
void | ReleaseReference (void) const |
Remove reference without deleting object. More... | |
virtual void | DoNotDeleteThisObject (void) |
Mark this object as not allocated in heap – do not delete this object. More... | |
virtual void | DoDeleteThisObject (void) |
Mark this object as allocated in heap – object can be deleted. More... | |
void * | operator new (size_t size) |
Define new operator for memory allocation. More... | |
void * | operator new[] (size_t size) |
Define new[] operator for 'array' memory allocation. More... | |
void | operator delete (void *ptr) |
Define delete operator for memory deallocation. More... | |
void | operator delete[] (void *ptr) |
Define delete[] operator for memory deallocation. More... | |
void * | operator new (size_t size, void *place) |
Define new operator. More... | |
void | operator delete (void *ptr, void *place) |
Define delete operator. More... | |
void * | operator new (size_t size, CObjectMemoryPool *place) |
Define new operator using memory pool. More... | |
void | operator delete (void *ptr, CObjectMemoryPool *place) |
Define delete operator. More... | |
virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
Define method for dumping debug information. More... | |
Public Member Functions inherited from CDebugDumpable | |
CDebugDumpable (void) | |
virtual | ~CDebugDumpable (void) |
void | DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const |
void | DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const |
void | DumpToConsole (void) const |
Private Member Functions | |
void | x_GatherInfo (CBioseqContext &ctx) override |
Private Attributes | |
CConstRef< CDate > | m_CreateDate |
CConstRef< CDate > | m_UpdateDate |
Definition at line 55 of file date_item.hpp.
CDateItem::CDateItem | ( | CBioseqContext & | ctx | ) |
Definition at line 50 of file date_item.cpp.
References ctx.
|
overridevirtual |
Implements CFlatItem.
Definition at line 61 of file date_item.cpp.
References IFormatter::FormatDate().
Definition at line 61 of file date_item.hpp.
References m_CreateDate.
Referenced by CEmblFormatter::FormatDate().
|
overridevirtual |
Implements IFlatItem.
Definition at line 56 of file date_item.cpp.
References IFlatItem::eItem_Date.
Definition at line 62 of file date_item.hpp.
References m_UpdateDate.
Referenced by CEmblFormatter::FormatDate().
|
overrideprivatevirtual |
Reimplemented from CFlatItem.
Definition at line 70 of file date_item.cpp.
References ctx, CSeqdesc_Base::e_Create_date, CSeqdesc_Base::e_Update_date, CSeqdesc_Base::GetCreate_date(), CSeqdesc_Base::GetUpdate_date(), m_CreateDate, m_UpdateDate, and CConstRef< C, Locker >::Reset().
Definition at line 69 of file date_item.hpp.
Referenced by GetCreateDate(), and x_GatherInfo().
Definition at line 70 of file date_item.hpp.
Referenced by GetUpdateDate(), and x_GatherInfo().