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

Go to the SVN repository for this file.

1 /* $Id: AbstractProjectItem.hpp 59444 2013-08-26 17:38:09Z rafanovi $
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 AbstractProjectItem.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 /// 'gbproj.asn'.
34 ///
35 /// New methods or data members can be added to it if needed.
36 /// See also: AbstractProjectItem_.hpp
37 
38 
39 #ifndef OBJECTS_GBPROJ_ABSTRACTPROJECTITEM_HPP
40 #define OBJECTS_GBPROJ_ABSTRACTPROJECTITEM_HPP
41 
42 
43 // generated includes
45 
46 // generated classes
47 
49 
50 BEGIN_objects_SCOPE // namespace ncbi::objects::
51 
52 /////////////////////////////////////////////////////////////////////////////
54  , public CSerialUserOp
55 {
57 public:
58  // constructor
60  // destructor
61  ~CAbstractProjectItem(void);
62 
63  void Set(CSerialObject& object);
64  const CSerialObject& Get(void) const;
65  const CSerialObject* GetObject(void) const;
66 
67  /// PreWrite() / PostRead to trap read/write conversion
68  void PreWrite() const;
69  void PostRead();
70 
71 protected:
72  virtual void UserOp_Assign(const CSerialUserOp& source);
73  virtual bool UserOp_Equals(const CSerialUserOp& object) const;
74 
75 private:
76  // Prohibit copy constructor and assignment operator
79 
80  /// fall-back: non-serialized core object
82 };
83 
84 /////////////////// CAbstractProjectItem inline methods
85 
86 // constructor
87 inline
89 {
90 }
91 
92 
93 /////////////////// end of CAbstractProjectItem inline methods
94 
95 
98 
99 END_objects_SCOPE // namespace ncbi::objects::
100 
102 
103 
104 #endif // OBJECTS_GBPROJ_ABSTRACTPROJECTITEM_HPP
105 /* Original file checksum: lines: 86, chars: 2600, CRC32: 134ee6e6 */
Data storage class.
CAbstractProjectItem_Base –.
CAbstractProjectItem & operator=(const CAbstractProjectItem &value)
CAbstractProjectItem(const CAbstractProjectItem &value)
CAbstractProjectItem_Base Tparent
CRef< CSerialObject > m_OtherObject
fall-back: non-serialized core object
Base class for all serializable objects.
Definition: serialbase.hpp:150
Base class for user-defined serializable classes to allow for objects assignment and comparison.
Definition: serialbase.hpp:319
#define NCBI_GBPROJ_EXPORT
Definition: gbproj_export.h:69
virtual bool UserOp_Equals(const CSerialUserOp &object) const =0
Will be called after comparing the datatool-generated members.
virtual void UserOp_Assign(const CSerialUserOp &source)=0
Will be called after copying the datatool-generated members.
#define NCBISER_HAVE_POST_READ(Class)
Definition: serialbase.hpp:943
#define NCBISER_HAVE_PRE_WRITE(Class)
Definition: serialbase.hpp:952
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const TYPE & Get(const CNamedParameterList *param)
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
const CharType(& source)[N]
Definition: pointer.h:1149
Modified on Sun May 12 04:55:13 2024 by modify_doxy.py rev. 669887