#include <Model_descr_.hpp>
Inheritance diagram for CModel_descr_Base:


Definition at line 76 of file Model_descr_.hpp.
Public Types | |
| typedef string | TName |
| typedef string | TPdb_reso |
| typedef string | TPdb_method |
| typedef string | TPdb_comment |
| typedef string | TOther_comment |
| typedef CPub | TAttribution |
| enum | E_Choice { e_not_set = 0, e_Name, e_Pdb_reso, e_Pdb_method, e_Pdb_comment, e_Other_comment, e_Attribution } |
| Choice variants. More... | |
| enum | E_ChoiceStopper { e_MaxChoice = 7 } |
| Maximum+1 value of the choice variant enumerator. More... | |
Public Member Functions | |
| CModel_descr_Base (void) | |
| virtual | ~CModel_descr_Base (void) |
| DECLARE_INTERNAL_TYPE_INFO () | |
| virtual void | Reset (void) |
| Reset the selection (set it to e_not_set). | |
| E_Choice | Which (void) const |
| Which variant is currently selected. | |
| void | CheckSelected (E_Choice index) const |
| Verify selection, throw exception if it differs from the expected. | |
| void | ThrowInvalidSelection (E_Choice index) const |
| Throw 'InvalidSelection' exception. | |
| void | Select (E_Choice index, EResetVariant reset=eDoResetVariant) |
| Select the requested variant if needed. | |
| void | Select (E_Choice index, EResetVariant reset, CObjectMemoryPool *pool) |
| Select the requested variant if needed, allocating CObject variants from memory pool. | |
| bool | IsName (void) const |
| Check if variant Name is selected. | |
| const TName & | GetName (void) const |
| Get the variant data. | |
| TName & | SetName (void) |
| Select the variant. | |
| void | SetName (const TName &value) |
| Select the variant and set its data. | |
| bool | IsPdb_reso (void) const |
| Check if variant Pdb_reso is selected. | |
| const TPdb_reso & | GetPdb_reso (void) const |
| Get the variant data. | |
| TPdb_reso & | SetPdb_reso (void) |
| Select the variant. | |
| void | SetPdb_reso (const TPdb_reso &value) |
| Select the variant and set its data. | |
| bool | IsPdb_method (void) const |
| Check if variant Pdb_method is selected. | |
| const TPdb_method & | GetPdb_method (void) const |
| Get the variant data. | |
| TPdb_method & | SetPdb_method (void) |
| Select the variant. | |
| void | SetPdb_method (const TPdb_method &value) |
| Select the variant and set its data. | |
| bool | IsPdb_comment (void) const |
| Check if variant Pdb_comment is selected. | |
| const TPdb_comment & | GetPdb_comment (void) const |
| Get the variant data. | |
| TPdb_comment & | SetPdb_comment (void) |
| Select the variant. | |
| void | SetPdb_comment (const TPdb_comment &value) |
| Select the variant and set its data. | |
| bool | IsOther_comment (void) const |
| Check if variant Other_comment is selected. | |
| const TOther_comment & | GetOther_comment (void) const |
| Get the variant data. | |
| TOther_comment & | SetOther_comment (void) |
| Select the variant. | |
| void | SetOther_comment (const TOther_comment &value) |
| Select the variant and set its data. | |
| bool | IsAttribution (void) const |
| Check if variant Attribution is selected. | |
| const TAttribution & | GetAttribution (void) const |
| Get the variant data. | |
| TAttribution & | SetAttribution (void) |
| Select the variant. | |
| void | SetAttribution (TAttribution &value) |
| Select the variant and set its data. | |
Static Public Member Functions | |
| static string | SelectionName (E_Choice index) |
| Retrieve selection name (for diagnostic purposes). | |
Private Types | |
| typedef CSerialObject | Tparent |
Private Member Functions | |
| CModel_descr_Base (const CModel_descr_Base &) | |
| CModel_descr_Base & | operator= (const CModel_descr_Base &) |
| void | DoSelect (E_Choice index, CObjectMemoryPool *pool=0) |
Private Attributes | |
| E_Choice | m_choice |
| NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > | m_string |
| NCBI_NS_NCBI::CSerialObject * | m_object |
Static Private Attributes | |
| static const char *const | sm_SelectionNames [] |
|
|
Definition at line 154 of file Model_descr_.hpp. |
|
|
Definition at line 149 of file Model_descr_.hpp. |
|
|
Definition at line 153 of file Model_descr_.hpp. |
|
|
Reimplemented in CModel_descr. Definition at line 78 of file Model_descr_.hpp. |
|
|
Definition at line 152 of file Model_descr_.hpp. |
|
|
Definition at line 151 of file Model_descr_.hpp. |
|
|
Definition at line 150 of file Model_descr_.hpp. |
|
|
Choice variants.
Definition at line 90 of file Model_descr_.hpp. |
|
|
Maximum+1 value of the choice variant enumerator.
Definition at line 100 of file Model_descr_.hpp. |
|
|
Definition at line 177 of file Model_descr_.cpp. |
|
|
Definition at line 183 of file Model_descr_.cpp. |
|
|
|
|
|
Verify selection, throw exception if it differs from the expected.
Definition at line 354 of file Model_descr_.hpp. References m_choice, and ThrowInvalidSelection(). Referenced by GetAttribution(), GetName(), GetOther_comment(), GetPdb_comment(), GetPdb_method(), and GetPdb_reso(). |
|
|
|
|
||||||||||||
|
|
|
|
Get the variant data.
Definition at line 139 of file Model_descr_.cpp. References CheckSelected(), e_Attribution, and m_object. |
|
|
Get the variant data.
Definition at line 383 of file Model_descr_.hpp. References CheckSelected(), e_Name, and m_string. |
|
|
Get the variant data.
Definition at line 463 of file Model_descr_.hpp. References CheckSelected(), e_Other_comment, and m_string. |
|
|
Get the variant data.
Definition at line 443 of file Model_descr_.hpp. References CheckSelected(), e_Pdb_comment, and m_string. |
|
|
Get the variant data.
Definition at line 423 of file Model_descr_.hpp. References CheckSelected(), e_Pdb_method, and m_string. |
|
|
Get the variant data.
Definition at line 403 of file Model_descr_.hpp. References CheckSelected(), e_Pdb_reso, and m_string. |
|
|
Check if variant Attribution is selected. Attribution type is defined as 'typedef CPub TAttribution'.
Definition at line 477 of file Model_descr_.hpp. References e_Attribution, and m_choice. |
|
|
Check if variant Name is selected. Name type is defined as 'typedef string TName'.
Definition at line 377 of file Model_descr_.hpp. |
|
|
Check if variant Other_comment is selected. Other_comment type is defined as 'typedef string TOther_comment'.
Definition at line 457 of file Model_descr_.hpp. References e_Other_comment, and m_choice. |
|
|
Check if variant Pdb_comment is selected. Pdb_comment type is defined as 'typedef string TPdb_comment'.
Definition at line 437 of file Model_descr_.hpp. References e_Pdb_comment, and m_choice. |
|
|
Check if variant Pdb_method is selected. Pdb_method type is defined as 'typedef string TPdb_method'.
Definition at line 417 of file Model_descr_.hpp. References e_Pdb_method, and m_choice. |
|
|
Check if variant Pdb_reso is selected. Pdb_reso type is defined as 'typedef string TPdb_reso'.
Definition at line 397 of file Model_descr_.hpp. References e_Pdb_reso, and m_choice. |
|
|
|
|
|
Reset the selection (set it to e_not_set).
Definition at line 51 of file Model_descr_.cpp. References e_Attribution, e_Name, e_not_set, e_Other_comment, e_Pdb_comment, e_Pdb_method, e_Pdb_reso, m_choice, m_object, and m_string. Referenced by SetAttribution(), and ~CModel_descr_Base(). |
|
||||||||||||||||
|
Select the requested variant if needed, allocating CObject variants from memory pool.
|
|
||||||||||||
|
Select the requested variant if needed.
Referenced by SetAttribution(), SetName(), SetOther_comment(), SetPdb_comment(), SetPdb_method(), and SetPdb_reso(). |
|
|
Retrieve selection name (for diagnostic purposes).
Definition at line 99 of file Model_descr_.cpp. References sm_SelectionNames. |
|
|
Select the variant and set its data.
Definition at line 151 of file Model_descr_.cpp. References CObject::AddReference(), e_Attribution, m_choice, m_object, and Reset(). |
|
|
Select the variant.
Definition at line 145 of file Model_descr_.cpp. References e_Attribution, eDoNotResetVariant, m_object, and Select(). |
|
|
Select the variant and set its data.
Definition at line 109 of file Model_descr_.cpp. References e_Name, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant.
Definition at line 390 of file Model_descr_.hpp. References e_Name, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant and set its data.
Definition at line 133 of file Model_descr_.cpp. References e_Other_comment, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant.
Definition at line 470 of file Model_descr_.hpp. References e_Other_comment, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant and set its data.
Definition at line 127 of file Model_descr_.cpp. References e_Pdb_comment, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant.
Definition at line 450 of file Model_descr_.hpp. References e_Pdb_comment, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant and set its data.
Definition at line 121 of file Model_descr_.cpp. References e_Pdb_method, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant.
Definition at line 430 of file Model_descr_.hpp. References e_Pdb_method, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant and set its data.
Definition at line 115 of file Model_descr_.cpp. References e_Pdb_reso, eDoNotResetVariant, m_string, and Select(). |
|
|
Select the variant.
Definition at line 410 of file Model_descr_.hpp. References e_Pdb_reso, eDoNotResetVariant, m_string, and Select(). |
|
|
Throw 'InvalidSelection' exception.
Definition at line 104 of file Model_descr_.cpp. References DIAG_COMPILE_INFO, m_choice, and sm_SelectionNames. Referenced by CheckSelected(). |
|
|
Which variant is currently selected.
Definition at line 348 of file Model_descr_.hpp. References m_choice. |
|
|
Definition at line 326 of file Model_descr_.hpp. Referenced by CheckSelected(), IsAttribution(), IsName(), IsOther_comment(), IsPdb_comment(), IsPdb_method(), IsPdb_reso(), Reset(), SetAttribution(), ThrowInvalidSelection(), Which(), and ~CModel_descr_Base(). |
|
|
Definition at line 334 of file Model_descr_.hpp. Referenced by GetAttribution(), Reset(), and SetAttribution(). |
|
|
Definition at line 333 of file Model_descr_.hpp. Referenced by GetName(), GetOther_comment(), GetPdb_comment(), GetPdb_method(), GetPdb_reso(), Reset(), SetName(), SetOther_comment(), SetPdb_comment(), SetPdb_method(), and SetPdb_reso(). |
|
|
Initial value: {
"not set",
"name",
"pdb-reso",
"pdb-method",
"pdb-comment",
"other-comment",
"attribution"
}
Definition at line 330 of file Model_descr_.hpp. Referenced by SelectionName(), and ThrowInvalidSelection(). |
1.4.6
Modified on Wed Dec 09 08:19:28 2009 by modify_doxy.py rev. 173732