NCBI C++ ToolKit
Taxon2_data.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: Taxon2_data.hpp 71482 2016-03-08 14:31:04Z bollin $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  */
27 
28 /// @file Taxon2_data.hpp
29 /// User-defined methods of the data storage class.
30 ///
31 /// This file was originally generated by application DATATOOL
32 /// using the following specifications:
33 /// 'taxon1.asn'.
34 ///
35 /// New methods or data members can be added to it if needed.
36 /// See also: Taxon2_data_.hpp
37 
38 
39 #ifndef OBJECTS_TAXON1_TAXON2_DATA_HPP
40 #define OBJECTS_TAXON1_TAXON2_DATA_HPP
41 
43 // generated includes
45 
46 // generated classes
47 
49 
50 BEGIN_objects_SCOPE // namespace ncbi::objects::
51 
52 /////////////////////////////////////////////////////////////////////////////
54 {
56 public:
57  // constructor
58  CTaxon2_data(void);
59  // destructor
60  ~CTaxon2_data(void);
61 
62  // Additional properties from lookup
63  void SetProperty( const string& name, const string& value );
64  void SetProperty( const string& name, int value );
65  void SetProperty( const string& name, bool value );
66 
67  bool GetProperty( const string& name, string& value ) const;
68  bool GetProperty( const string& name, int& value ) const;
69  bool GetProperty( const string& name, bool& value ) const;
70 
71  void ResetProperty( const string& name );
72 private:
73  // Prohibit copy constructor and assignment operator
76 
77 protected:
78  typedef list< CRef< CDbtag > > TOrgProperties;
80  TOrgProperties::iterator x_FindProperty( const string& name );
81  TOrgProperties::const_iterator x_FindPropertyConst( const string& name ) const;
82 };
83 
84 /////////////////// CTaxon2_data inline methods
85 
86 // constructor
87 inline
89 {
90 }
91 
92 
93 /////////////////// end of CTaxon2_data inline methods
94 
95 
96 END_objects_SCOPE // namespace ncbi::objects::
97 
99 
100 
101 #endif // OBJECTS_TAXON1_TAXON2_DATA_HPP
102 /* Original file checksum: lines: 86, chars: 2448, CRC32: 5537cc62 */
Data storage class.
CTaxon2_data_Base –.
CTaxon2_data_Base Tparent
Definition: Taxon2_data.hpp:55
TOrgProperties m_props
Definition: Taxon2_data.hpp:79
CTaxon2_data & operator=(const CTaxon2_data &value)
list< CRef< CDbtag > > TOrgProperties
Definition: Taxon2_data.hpp:78
CTaxon2_data(const CTaxon2_data &value)
CTaxon2_data(void)
Definition: Taxon2_data.hpp:88
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_TAXON1_EXPORT
Definition: ncbi_export.h:857
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Apr 12 17:20:45 2024 by modify_doxy.py rev. 669887