NCBI C++ ToolKit
|
Search Toolkit Book for CDefinitionLineField
#include <gui/packages/pkg_sequence_edit/miscedit_util.hpp>
Public Member Functions | |
CDefinitionLineField () | |
virtual string | GetVal (const CObject &object) |
virtual vector< string > | GetVals (const CObject &object) |
virtual bool | IsEmpty (const CObject &object) const |
virtual void | ClearVal (CObject &object) |
virtual bool | SetVal (CObject &object, const string &val, objects::edit::EExistingText existing_text) |
CDefinitionLineField () | |
string | GetVal (const CObject &object) override |
vector< string > | GetVals (const CObject &object) override |
bool | IsEmpty (const CObject &object) const override |
void | ClearVal (CObject &object) override |
bool | SetVal (CObject &object, const string &val, EExistingText existing_text) override |
Public Member Functions inherited from CTextDescriptorField | |
virtual vector< CConstRef< CObject > > | GetObjects (objects::CBioseq_Handle bsh) |
virtual vector< CConstRef< CObject > > | GetObjects (objects::CSeq_entry_Handle seh, const string &constraint_field, CRef< objects::edit::CStringConstraint > string_constraint) |
virtual vector< CRef< objects::edit::CApplyObject > > | GetApplyObjects (objects::CBioseq_Handle bsh) |
virtual vector< CConstRef< CObject > > | GetRelatedObjects (const CObject &object, CRef< objects::CScope > scope) |
virtual vector< CConstRef< CObject > > | GetRelatedObjects (const objects::edit::CApplyObject &object) |
virtual objects::CSeqFeatData::ESubtype | GetFeatureSubtype () |
virtual objects::CSeqdesc::E_Choice | GetDescriptorSubtype () |
virtual void | SetConstraint (const string &field_name, CConstRef< objects::edit::CStringConstraint > string_constraint) |
objects::CSeqdesc::E_Choice | GetSubtype () |
void | SetSubtype (objects::CSeqdesc::E_Choice subtype) |
virtual bool | AllowMultipleValues () |
vector< CConstRef< CObject > > | GetObjects (CBioseq_Handle bsh) override |
vector< CConstRef< CObject > > | GetObjects (CSeq_entry_Handle seh, const string &constraint_field, CRef< CStringConstraint > string_constraint) override |
vector< CRef< CApplyObject > > | GetApplyObjects (CBioseq_Handle bsh) override |
vector< CConstRef< CObject > > | GetRelatedObjects (const CObject &object, CRef< CScope > scope) override |
vector< CConstRef< CObject > > | GetRelatedObjects (const CApplyObject &object) override |
CSeqFeatData::ESubtype | GetFeatureSubtype () override |
CSeqdesc::E_Choice | GetDescriptorSubtype () override |
void | SetConstraint (const string &field_name, CConstRef< CStringConstraint > string_constraint) override |
bool | AllowMultipleValues () override |
CSeqdesc::E_Choice | GetSubtype () |
void | SetSubtype (CSeqdesc::E_Choice subtype) |
Public Member Functions inherited from CFieldHandler | |
virtual string | IsValid (const string &val) |
virtual vector< string > | IsValid (const vector< string > &values) |
void | SetScope (CRef< CScope > scope) |
virtual string | IsValid (const string &) |
virtual vector< string > | IsValid (const vector< string > &) |
virtual vector< CRef< CApplyObject > > | GetRelatedApplyObjects (const CObject &object, CRef< CScope > scope) |
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 |
Additional Inherited Members | |
Public Types inherited from CObject | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
Static Public Member Functions inherited from CFieldHandler | |
static bool | QualifierNamesAreEquivalent (string name1, string name2) |
static vector< CRef< CApplyObject > > | GetApplyObjectsFromRelatedObjects (vector< CConstRef< CObject >>, CRef< CScope > scope) |
Static Public Member Functions inherited from CObject | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
Static Public Member Functions inherited from CDebugDumpable | |
static void | EnableDebugDump (bool on) |
Static Public Attributes inherited from CObject | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Protected Member Functions inherited from CObject | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Protected Attributes inherited from CTextDescriptorField | |
objects::CSeqdesc::E_Choice | m_Subtype |
CSeqdesc::E_Choice | m_Subtype |
Protected Attributes inherited from CFieldHandler | |
CRef< CScope > | m_Scope |
Definition at line 98 of file miscedit_util.hpp.
|
inline |
Definition at line 101 of file miscedit_util.hpp.
References CTextDescriptorField::m_Subtype.
|
inline |
Definition at line 89 of file text_desc_field.hpp.
References CSeqdesc_Base::e_Title, and CTextDescriptorField::m_Subtype.
|
virtual |
Implements CFieldHandler.
Definition at line 385 of file miscedit_util.cpp.
References CSeqdesc_Base::SetTitle().
|
overridevirtual |
Implements CFieldHandler.
Implements CFieldHandler.
Definition at line 353 of file miscedit_util.cpp.
References CSeqdesc_Base::GetTitle(), and CSeqdesc_Base::IsTitle().
Referenced by GetVals().
Implements CFieldHandler.
Implements CFieldHandler.
Implements CFieldHandler.
Definition at line 373 of file miscedit_util.cpp.
References CSeqdesc_Base::GetTitle(), NStr::IsBlank(), and CSeqdesc_Base::IsTitle().
Implements CFieldHandler.
|
overridevirtual |
Implements CFieldHandler.
Definition at line 394 of file miscedit_util.cpp.
References AddValueToString(), CSeqdesc_Base::GetTitle(), CSeqdesc_Base::IsTitle(), CSeqdesc_Base::SetTitle(), and val.
|
virtual |
Implements CFieldHandler.