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

Go to the SVN repository for this file.

1 /* $Id$
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 ID2S_Chunk_Id_.hpp
29 /// Data storage class.
30 ///
31 /// This file was generated by application DATATOOL
32 /// using the following specifications:
33 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/seqsplit/seqsplit.asn">seqsplit.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/seqsplit/seqsplit.def">seqsplit.def</a>
36 ///
37 /// ATTENTION:
38 /// Don't edit or commit this file into CVS as this file will
39 /// be overridden (by DATATOOL) without warning!
40 
41 #ifndef OBJECTS_SEQSPLIT_ID2S_CHUNK_ID_BASE_HPP
42 #define OBJECTS_SEQSPLIT_ID2S_CHUNK_ID_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
47 
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
51 #endif
52 BEGIN_objects_SCOPE // namespace ncbi::objects::
53 
54 
55 // generated classes
56 
57 
58 /** @addtogroup dataspec_NCBI_Seq_split
59  *
60  * @{
61  */
62 
63 /////////////////////////////////////////////////////////////////////////////
64 ///
65 ///
66 ///
67 ///
68 ///
69 ///
70 ///
71 ///
72 ///
73 ///
74 ///
75 ///
76 ///
77 ///
78 ///
79 ///
80 ///
81 ///
82 ///
83 /// utility types
84 ///
85 ///
86 ///
87 ///
88 ///
89 ///
90 ///
91 ///
92 ///
93 ///
94 ///
95 ///
96 ///
97 ///
98 ///
99 ///
100 ///
101 ///
102 ///
103 ///
104 /// CID2S_Chunk_Id_Base --
105 ///
106 
108 {
110 public:
111  CID2S_Chunk_Id_Base(void);
112 
113  // type info
115 
116  // explicit constructor from the primitive type
117  explicit CID2S_Chunk_Id_Base(const int& data);
118 };
119 
120 /* @} */
121 
122 
123 
124 
125 
126 ///////////////////////////////////////////////////////////
127 ///////////////////// inline methods //////////////////////
128 ///////////////////////////////////////////////////////////
129 inline
131 {
132 }
133 
134 inline
136  : CStdAliasBase< int >(data)
137 {
138 }
139 
140 inline
143 {
144  if (NCBI_NS_NCBI::MSerial_Flags::HasSerialFormatting(str)) {
145  return WriteObject(str,&obj,obj.GetTypeInfo());
146  }
147  str << obj.Get();
148  return str;
149 }
150 
151 inline
154 {
155  if (NCBI_NS_NCBI::MSerial_Flags::HasSerialFormatting(str)) {
156  return ReadObject(str,&obj,obj.GetTypeInfo());
157  }
158  str >> obj.Set();
159  return str;
160 }
161 
162 ///////////////////////////////////////////////////////////
163 ////////////////// end of inline methods //////////////////
164 ///////////////////////////////////////////////////////////
165 
166 
167 
168 
169 
170 END_objects_SCOPE // namespace ncbi::objects::
171 
173 
174 
175 #endif // OBJECTS_SEQSPLIT_ID2S_CHUNK_ID_BASE_HPP
CNcbiIstream & ReadObject(CNcbiIstream &str, TObjectPtr ptr, TTypeInfo info)
CNcbiOstream & WriteObject(CNcbiOstream &str, TConstObjectPtr ptr, TTypeInfo info)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
Definition: ncbistre.hpp:149
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
Definition: ncbistre.hpp:146
#define NCBI_ID2_EXPORT
Definition: ncbi_export.h:552
CStdAliasBase< int > Tparent
unsigned int
A callback function used to compare two keys in a database.
Definition: types.hpp:1210
static const char * str(char *buf, int n)
Definition: stats.c:84
Modified on Wed Dec 06 07:16:41 2023 by modify_doxy.py rev. 669887