NCBI C++ ToolKit
ValidErrItem_.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 ValidErrItem_.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/valerr/valerr.asn">valerr.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/valerr/valerr.def">valerr.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_VALERR_VALIDERRITEM_BASE_HPP
42 #define OBJECTS_VALERR_VALIDERRITEM_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <string>
49 
51 
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
55 #endif
56 BEGIN_objects_SCOPE // namespace ncbi::objects::
57 
58 
59 // generated classes
60 
61 
62 /** @addtogroup dataspec_NCBI_ValErrors
63  *
64  * @{
65  */
66 
67 /////////////////////////////////////////////////////////////////////////////
68 ///
69 /// CValidErrItem_Base --
70 ///
71 
73 {
75 public:
76  // constructor
77  CValidErrItem_Base(void);
78  // destructor
79  virtual ~CValidErrItem_Base(void);
80 
81  // type info
83 
84  enum ESev {
85  eSev_info = 0,
86  eSev_warning = 1,
87  eSev_error = 2,
88  eSev_critical = 3,
89  eSev_fatal = 4,
90  eSev_trace = 5
91  };
92 
93  /// Access to ESev's attributes (values, names) as defined in spec
94  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(ESev)(void);
95 
96  enum EObjectType {
97  eObjectType_seqentry = 1,
98  eObjectType_bioseq = 2,
99  eObjectType_bioseqset = 3,
100  eObjectType_seqdesc = 4,
101  eObjectType_seqannot = 5,
102  eObjectType_annotdesc = 6,
103  eObjectType_seqfeat = 7,
104  eObjectType_seqalign = 8,
105  eObjectType_seqgraph = 9,
106  eObjectType_seqsub = 10,
107  eObjectType_submitblock = 11
108  };
109 
110  /// Access to EObjectType's attributes (values, names) as defined in spec
111  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EObjectType)(void);
112 
113  // types
114  typedef int TSev;
115  typedef unsigned int TErrIndex;
116  typedef string TMsg;
117  typedef string TObjDesc;
118  typedef string TAccession;
119  typedef string TFeatureId;
120  typedef int TSeqOffset;
121  typedef int TObjectType;
122  typedef string TErrorName;
123  typedef string TErrorGroup;
124  typedef string TAccnver;
125  typedef int TVersion;
126  typedef string TLocation;
127  typedef string TProduct_loc;
128  typedef string TBioseq;
129  typedef string TLocus_tag;
130  typedef string TObj_content;
131 
132  // member index
133  enum class E_memberIndex {
134  e__allMandatory = 0,
135  e_sev,
136  e_errIndex,
137  e_msg,
138  e_objDesc,
139  e_accession,
140  e_featureId,
141  e_seqOffset,
142  e_objectType,
143  e_errorName,
144  e_errorGroup,
145  e_accnver,
146  e_version,
147  e_location,
148  e_product_loc,
149  e_bioseq,
150  e_locus_tag,
151  e_obj_content
152  };
154 
155  // getters
156  // setters
157 
158  /// Check if a value has been assigned to Sev data member.
159  ///
160  /// Data member Sev is mandatory;
161  /// its type is defined as 'typedef int TSev'
162  /// @return
163  /// - true, if a value has been assigned.
164  /// - false, otherwise.
165  bool IsSetSev(void) const;
166 
167  /// Check if it is safe to call GetSev method.
168  ///
169  /// @return
170  /// - true, if the data member is getatable.
171  /// - false, otherwise.
172  bool CanGetSev(void) const;
173 
174  /// Reset Sev data member.
175  void ResetSev(void);
176 
177  /// Get the Sev member data.
178  ///
179  /// @return
180  /// Copy of the member data.
181  TSev GetSev(void) const;
182 
183  /// Assign a value to Sev data member.
184  ///
185  /// @param value
186  /// Value to assign
187  void SetSev(TSev value);
188 
189  /// Assign a value to Sev data member.
190  ///
191  /// @return
192  /// Reference to the data value.
193  TSev& SetSev(void);
194 
195  /// Check if a value has been assigned to ErrIndex data member.
196  ///
197  /// Data member ErrIndex is mandatory;
198  /// its type is defined as 'typedef unsigned int TErrIndex'
199  /// @return
200  /// - true, if a value has been assigned.
201  /// - false, otherwise.
202  bool IsSetErrIndex(void) const;
203 
204  /// Check if it is safe to call GetErrIndex method.
205  ///
206  /// @return
207  /// - true, if the data member is getatable.
208  /// - false, otherwise.
209  bool CanGetErrIndex(void) const;
210 
211  /// Reset ErrIndex data member.
212  void ResetErrIndex(void);
213 
214  /// Get the ErrIndex member data.
215  ///
216  /// @return
217  /// Copy of the member data.
218  TErrIndex GetErrIndex(void) const;
219 
220  /// Assign a value to ErrIndex data member.
221  ///
222  /// @param value
223  /// Value to assign
224  void SetErrIndex(TErrIndex value);
225 
226  /// Assign a value to ErrIndex data member.
227  ///
228  /// @return
229  /// Reference to the data value.
230  TErrIndex& SetErrIndex(void);
231 
232  /// Check if a value has been assigned to Msg data member.
233  ///
234  /// Data member Msg is mandatory;
235  /// its type is defined as 'typedef string TMsg'
236  /// @return
237  /// - true, if a value has been assigned.
238  /// - false, otherwise.
239  bool IsSetMsg(void) const;
240 
241  /// Check if it is safe to call GetMsg method.
242  ///
243  /// @return
244  /// - true, if the data member is getatable.
245  /// - false, otherwise.
246  bool CanGetMsg(void) const;
247 
248  /// Reset Msg data member.
249  void ResetMsg(void);
250 
251  /// Get the Msg member data.
252  ///
253  /// @return
254  /// Reference to the member data.
255  const TMsg& GetMsg(void) const;
256 
257  /// Assign a value to Msg data member.
258  ///
259  /// @param value
260  /// Value to assign
261  void SetMsg(const TMsg& value);
262  void SetMsg(TMsg&& value);
263 
264  /// Assign a value to Msg data member.
265  ///
266  /// @return
267  /// Reference to the data value.
268  TMsg& SetMsg(void);
269 
270  /// Check if a value has been assigned to ObjDesc data member.
271  ///
272  /// Data member ObjDesc is mandatory;
273  /// its type is defined as 'typedef string TObjDesc'
274  /// @return
275  /// - true, if a value has been assigned.
276  /// - false, otherwise.
277  bool IsSetObjDesc(void) const;
278 
279  /// Check if it is safe to call GetObjDesc method.
280  ///
281  /// @return
282  /// - true, if the data member is getatable.
283  /// - false, otherwise.
284  bool CanGetObjDesc(void) const;
285 
286  /// Reset ObjDesc data member.
287  void ResetObjDesc(void);
288 
289  /// Get the ObjDesc member data.
290  ///
291  /// @return
292  /// Reference to the member data.
293  const TObjDesc& GetObjDesc(void) const;
294 
295  /// Assign a value to ObjDesc data member.
296  ///
297  /// @param value
298  /// Value to assign
299  void SetObjDesc(const TObjDesc& value);
300  void SetObjDesc(TObjDesc&& value);
301 
302  /// Assign a value to ObjDesc data member.
303  ///
304  /// @return
305  /// Reference to the data value.
306  TObjDesc& SetObjDesc(void);
307 
308  /// Check if a value has been assigned to Accession data member.
309  ///
310  /// Data member Accession is mandatory;
311  /// its type is defined as 'typedef string TAccession'
312  /// @return
313  /// - true, if a value has been assigned.
314  /// - false, otherwise.
315  bool IsSetAccession(void) const;
316 
317  /// Check if it is safe to call GetAccession method.
318  ///
319  /// @return
320  /// - true, if the data member is getatable.
321  /// - false, otherwise.
322  bool CanGetAccession(void) const;
323 
324  /// Reset Accession data member.
325  void ResetAccession(void);
326 
327  /// Get the Accession member data.
328  ///
329  /// @return
330  /// Reference to the member data.
331  const TAccession& GetAccession(void) const;
332 
333  /// Assign a value to Accession data member.
334  ///
335  /// @param value
336  /// Value to assign
337  void SetAccession(const TAccession& value);
338  void SetAccession(TAccession&& value);
339 
340  /// Assign a value to Accession data member.
341  ///
342  /// @return
343  /// Reference to the data value.
344  TAccession& SetAccession(void);
345 
346  /// Check if a value has been assigned to FeatureId data member.
347  ///
348  /// Data member FeatureId is optional;
349  /// its type is defined as 'typedef string TFeatureId'
350  /// @return
351  /// - true, if a value has been assigned.
352  /// - false, otherwise.
353  bool IsSetFeatureId(void) const;
354 
355  /// Check if it is safe to call GetFeatureId method.
356  ///
357  /// @return
358  /// - true, if the data member is getatable.
359  /// - false, otherwise.
360  bool CanGetFeatureId(void) const;
361 
362  /// Reset FeatureId data member.
363  void ResetFeatureId(void);
364 
365  /// Get the FeatureId member data.
366  ///
367  /// @return
368  /// Reference to the member data.
369  const TFeatureId& GetFeatureId(void) const;
370 
371  /// Assign a value to FeatureId data member.
372  ///
373  /// @param value
374  /// Value to assign
375  void SetFeatureId(const TFeatureId& value);
376  void SetFeatureId(TFeatureId&& value);
377 
378  /// Assign a value to FeatureId data member.
379  ///
380  /// @return
381  /// Reference to the data value.
382  TFeatureId& SetFeatureId(void);
383 
384  /// Check if a value has been assigned to SeqOffset data member.
385  ///
386  /// Data member SeqOffset is optional;
387  /// its type is defined as 'typedef int TSeqOffset'
388  /// @return
389  /// - true, if a value has been assigned.
390  /// - false, otherwise.
391  bool IsSetSeqOffset(void) const;
392 
393  /// Check if it is safe to call GetSeqOffset method.
394  ///
395  /// @return
396  /// - true, if the data member is getatable.
397  /// - false, otherwise.
398  bool CanGetSeqOffset(void) const;
399 
400  /// Reset SeqOffset data member.
401  void ResetSeqOffset(void);
402 
403  /// Get the SeqOffset member data.
404  ///
405  /// @return
406  /// Copy of the member data.
407  TSeqOffset GetSeqOffset(void) const;
408 
409  /// Assign a value to SeqOffset data member.
410  ///
411  /// @param value
412  /// Value to assign
413  void SetSeqOffset(TSeqOffset value);
414 
415  /// Assign a value to SeqOffset data member.
416  ///
417  /// @return
418  /// Reference to the data value.
419  TSeqOffset& SetSeqOffset(void);
420 
421  /// Check if a value has been assigned to ObjectType data member.
422  ///
423  /// Data member ObjectType is optional;
424  /// its type is defined as 'typedef int TObjectType'
425  /// @return
426  /// - true, if a value has been assigned.
427  /// - false, otherwise.
428  bool IsSetObjectType(void) const;
429 
430  /// Check if it is safe to call GetObjectType method.
431  ///
432  /// @return
433  /// - true, if the data member is getatable.
434  /// - false, otherwise.
435  bool CanGetObjectType(void) const;
436 
437  /// Reset ObjectType data member.
438  void ResetObjectType(void);
439 
440  /// Get the ObjectType member data.
441  ///
442  /// @return
443  /// Copy of the member data.
444  TObjectType GetObjectType(void) const;
445 
446  /// Assign a value to ObjectType data member.
447  ///
448  /// @param value
449  /// Value to assign
450  void SetObjectType(TObjectType value);
451 
452  /// Assign a value to ObjectType data member.
453  ///
454  /// @return
455  /// Reference to the data value.
456  TObjectType& SetObjectType(void);
457 
458  /// Check if a value has been assigned to ErrorName data member.
459  ///
460  /// Data member ErrorName is optional;
461  /// its type is defined as 'typedef string TErrorName'
462  /// @return
463  /// - true, if a value has been assigned.
464  /// - false, otherwise.
465  bool IsSetErrorName(void) const;
466 
467  /// Check if it is safe to call GetErrorName method.
468  ///
469  /// @return
470  /// - true, if the data member is getatable.
471  /// - false, otherwise.
472  bool CanGetErrorName(void) const;
473 
474  /// Reset ErrorName data member.
475  void ResetErrorName(void);
476 
477  /// Get the ErrorName member data.
478  ///
479  /// @return
480  /// Reference to the member data.
481  const TErrorName& GetErrorName(void) const;
482 
483  /// Assign a value to ErrorName data member.
484  ///
485  /// @param value
486  /// Value to assign
487  void SetErrorName(const TErrorName& value);
488  void SetErrorName(TErrorName&& value);
489 
490  /// Assign a value to ErrorName data member.
491  ///
492  /// @return
493  /// Reference to the data value.
494  TErrorName& SetErrorName(void);
495 
496  /// Check if a value has been assigned to ErrorGroup data member.
497  ///
498  /// Data member ErrorGroup is optional;
499  /// its type is defined as 'typedef string TErrorGroup'
500  /// @return
501  /// - true, if a value has been assigned.
502  /// - false, otherwise.
503  bool IsSetErrorGroup(void) const;
504 
505  /// Check if it is safe to call GetErrorGroup method.
506  ///
507  /// @return
508  /// - true, if the data member is getatable.
509  /// - false, otherwise.
510  bool CanGetErrorGroup(void) const;
511 
512  /// Reset ErrorGroup data member.
513  void ResetErrorGroup(void);
514 
515  /// Get the ErrorGroup member data.
516  ///
517  /// @return
518  /// Reference to the member data.
519  const TErrorGroup& GetErrorGroup(void) const;
520 
521  /// Assign a value to ErrorGroup data member.
522  ///
523  /// @param value
524  /// Value to assign
525  void SetErrorGroup(const TErrorGroup& value);
526  void SetErrorGroup(TErrorGroup&& value);
527 
528  /// Assign a value to ErrorGroup data member.
529  ///
530  /// @return
531  /// Reference to the data value.
532  TErrorGroup& SetErrorGroup(void);
533 
534  /// Check if a value has been assigned to Accnver data member.
535  ///
536  /// Data member Accnver is optional;
537  /// its type is defined as 'typedef string TAccnver'
538  /// @return
539  /// - true, if a value has been assigned.
540  /// - false, otherwise.
541  bool IsSetAccnver(void) const;
542 
543  /// Check if it is safe to call GetAccnver method.
544  ///
545  /// @return
546  /// - true, if the data member is getatable.
547  /// - false, otherwise.
548  bool CanGetAccnver(void) const;
549 
550  /// Reset Accnver data member.
551  void ResetAccnver(void);
552 
553  /// Get the Accnver member data.
554  ///
555  /// @return
556  /// Reference to the member data.
557  const TAccnver& GetAccnver(void) const;
558 
559  /// Assign a value to Accnver data member.
560  ///
561  /// @param value
562  /// Value to assign
563  void SetAccnver(const TAccnver& value);
564  void SetAccnver(TAccnver&& value);
565 
566  /// Assign a value to Accnver data member.
567  ///
568  /// @return
569  /// Reference to the data value.
570  TAccnver& SetAccnver(void);
571 
572  /// Check if a value has been assigned to Version data member.
573  ///
574  /// Data member Version is optional;
575  /// its type is defined as 'typedef int TVersion'
576  /// @return
577  /// - true, if a value has been assigned.
578  /// - false, otherwise.
579  bool IsSetVersion(void) const;
580 
581  /// Check if it is safe to call GetVersion method.
582  ///
583  /// @return
584  /// - true, if the data member is getatable.
585  /// - false, otherwise.
586  bool CanGetVersion(void) const;
587 
588  /// Reset Version data member.
589  void ResetVersion(void);
590 
591  /// Get the Version member data.
592  ///
593  /// @return
594  /// Copy of the member data.
595  TVersion GetVersion(void) const;
596 
597  /// Assign a value to Version data member.
598  ///
599  /// @param value
600  /// Value to assign
601  void SetVersion(TVersion value);
602 
603  /// Assign a value to Version data member.
604  ///
605  /// @return
606  /// Reference to the data value.
607  TVersion& SetVersion(void);
608 
609  /// Check if a value has been assigned to Location data member.
610  ///
611  /// Data member Location is optional;
612  /// its type is defined as 'typedef string TLocation'
613  /// @return
614  /// - true, if a value has been assigned.
615  /// - false, otherwise.
616  bool IsSetLocation(void) const;
617 
618  /// Check if it is safe to call GetLocation method.
619  ///
620  /// @return
621  /// - true, if the data member is getatable.
622  /// - false, otherwise.
623  bool CanGetLocation(void) const;
624 
625  /// Reset Location data member.
626  void ResetLocation(void);
627 
628  /// Get the Location member data.
629  ///
630  /// @return
631  /// Reference to the member data.
632  const TLocation& GetLocation(void) const;
633 
634  /// Assign a value to Location data member.
635  ///
636  /// @param value
637  /// Value to assign
638  void SetLocation(const TLocation& value);
639  void SetLocation(TLocation&& value);
640 
641  /// Assign a value to Location data member.
642  ///
643  /// @return
644  /// Reference to the data value.
645  TLocation& SetLocation(void);
646 
647  /// Check if a value has been assigned to Product_loc data member.
648  ///
649  /// Data member Product_loc is optional;
650  /// its type is defined as 'typedef string TProduct_loc'
651  /// @return
652  /// - true, if a value has been assigned.
653  /// - false, otherwise.
654  bool IsSetProduct_loc(void) const;
655 
656  /// Check if it is safe to call GetProduct_loc method.
657  ///
658  /// @return
659  /// - true, if the data member is getatable.
660  /// - false, otherwise.
661  bool CanGetProduct_loc(void) const;
662 
663  /// Reset Product_loc data member.
664  void ResetProduct_loc(void);
665 
666  /// Get the Product_loc member data.
667  ///
668  /// @return
669  /// Reference to the member data.
670  const TProduct_loc& GetProduct_loc(void) const;
671 
672  /// Assign a value to Product_loc data member.
673  ///
674  /// @param value
675  /// Value to assign
676  void SetProduct_loc(const TProduct_loc& value);
677  void SetProduct_loc(TProduct_loc&& value);
678 
679  /// Assign a value to Product_loc data member.
680  ///
681  /// @return
682  /// Reference to the data value.
683  TProduct_loc& SetProduct_loc(void);
684 
685  /// Check if a value has been assigned to Bioseq data member.
686  ///
687  /// Data member Bioseq is optional;
688  /// its type is defined as 'typedef string TBioseq'
689  /// @return
690  /// - true, if a value has been assigned.
691  /// - false, otherwise.
692  bool IsSetBioseq(void) const;
693 
694  /// Check if it is safe to call GetBioseq method.
695  ///
696  /// @return
697  /// - true, if the data member is getatable.
698  /// - false, otherwise.
699  bool CanGetBioseq(void) const;
700 
701  /// Reset Bioseq data member.
702  void ResetBioseq(void);
703 
704  /// Get the Bioseq member data.
705  ///
706  /// @return
707  /// Reference to the member data.
708  const TBioseq& GetBioseq(void) const;
709 
710  /// Assign a value to Bioseq data member.
711  ///
712  /// @param value
713  /// Value to assign
714  void SetBioseq(const TBioseq& value);
715  void SetBioseq(TBioseq&& value);
716 
717  /// Assign a value to Bioseq data member.
718  ///
719  /// @return
720  /// Reference to the data value.
721  TBioseq& SetBioseq(void);
722 
723  /// Check if a value has been assigned to Locus_tag data member.
724  ///
725  /// Data member Locus_tag is optional;
726  /// its type is defined as 'typedef string TLocus_tag'
727  /// @return
728  /// - true, if a value has been assigned.
729  /// - false, otherwise.
730  bool IsSetLocus_tag(void) const;
731 
732  /// Check if it is safe to call GetLocus_tag method.
733  ///
734  /// @return
735  /// - true, if the data member is getatable.
736  /// - false, otherwise.
737  bool CanGetLocus_tag(void) const;
738 
739  /// Reset Locus_tag data member.
740  void ResetLocus_tag(void);
741 
742  /// Get the Locus_tag member data.
743  ///
744  /// @return
745  /// Reference to the member data.
746  const TLocus_tag& GetLocus_tag(void) const;
747 
748  /// Assign a value to Locus_tag data member.
749  ///
750  /// @param value
751  /// Value to assign
752  void SetLocus_tag(const TLocus_tag& value);
753  void SetLocus_tag(TLocus_tag&& value);
754 
755  /// Assign a value to Locus_tag data member.
756  ///
757  /// @return
758  /// Reference to the data value.
759  TLocus_tag& SetLocus_tag(void);
760 
761  /// Check if a value has been assigned to Obj_content data member.
762  ///
763  /// Data member Obj_content is optional;
764  /// its type is defined as 'typedef string TObj_content'
765  /// @return
766  /// - true, if a value has been assigned.
767  /// - false, otherwise.
768  bool IsSetObj_content(void) const;
769 
770  /// Check if it is safe to call GetObj_content method.
771  ///
772  /// @return
773  /// - true, if the data member is getatable.
774  /// - false, otherwise.
775  bool CanGetObj_content(void) const;
776 
777  /// Reset Obj_content data member.
778  void ResetObj_content(void);
779 
780  /// Get the Obj_content member data.
781  ///
782  /// @return
783  /// Reference to the member data.
784  const TObj_content& GetObj_content(void) const;
785 
786  /// Assign a value to Obj_content data member.
787  ///
788  /// @param value
789  /// Value to assign
790  void SetObj_content(const TObj_content& value);
791  void SetObj_content(TObj_content&& value);
792 
793  /// Assign a value to Obj_content data member.
794  ///
795  /// @return
796  /// Reference to the data value.
797  TObj_content& SetObj_content(void);
798 
799  /// Reset the whole object
800  virtual void Reset(void);
801 
802 
803 private:
804  // Prohibit copy constructor and assignment operator
807 
808  // data
809  Uint4 m_set_State[2];
810  int m_Sev;
811  unsigned int m_ErrIndex;
812  string m_Msg;
813  string m_ObjDesc;
814  string m_Accession;
815  string m_FeatureId;
818  string m_ErrorName;
819  string m_ErrorGroup;
820  string m_Accnver;
822  string m_Location;
824  string m_Bioseq;
825  string m_Locus_tag;
827 };
828 
829 /* @} */
830 
831 
832 
833 
834 
835 ///////////////////////////////////////////////////////////
836 ///////////////////// inline methods //////////////////////
837 ///////////////////////////////////////////////////////////
838 inline
840 {
841  return ((m_set_State[0] & 0x3) != 0);
842 }
843 
844 inline
846 {
847  return IsSetSev();
848 }
849 
850 inline
852 {
853  m_Sev = (ESev)(0);
854  m_set_State[0] &= ~0x3;
855 }
856 
857 inline
859 {
860  if (!CanGetSev()) {
861  ThrowUnassigned(0);
862  }
863  return m_Sev;
864 }
865 
866 inline
868 {
869  m_Sev = value;
870  m_set_State[0] |= 0x3;
871 }
872 
873 inline
875 {
876 #ifdef _DEBUG
877  if (!IsSetSev()) {
878  memset(&m_Sev,UnassignedByte(),sizeof(m_Sev));
879  }
880 #endif
881  m_set_State[0] |= 0x1;
882  return m_Sev;
883 }
884 
885 inline
887 {
888  return ((m_set_State[0] & 0xc) != 0);
889 }
890 
891 inline
893 {
894  return IsSetErrIndex();
895 }
896 
897 inline
899 {
900  m_ErrIndex = 0;
901  m_set_State[0] &= ~0xc;
902 }
903 
904 inline
906 {
907  if (!CanGetErrIndex()) {
908  ThrowUnassigned(1);
909  }
910  return m_ErrIndex;
911 }
912 
913 inline
915 {
916  m_ErrIndex = value;
917  m_set_State[0] |= 0xc;
918 }
919 
920 inline
922 {
923 #ifdef _DEBUG
924  if (!IsSetErrIndex()) {
925  memset(&m_ErrIndex,UnassignedByte(),sizeof(m_ErrIndex));
926  }
927 #endif
928  m_set_State[0] |= 0x4;
929  return m_ErrIndex;
930 }
931 
932 inline
934 {
935  return ((m_set_State[0] & 0x30) != 0);
936 }
937 
938 inline
940 {
941  return IsSetMsg();
942 }
943 
944 inline
946 {
947  if (!CanGetMsg()) {
948  ThrowUnassigned(2);
949  }
950  return m_Msg;
951 }
952 
953 inline
955 {
956  m_Msg = value;
957  m_set_State[0] |= 0x30;
958 }
959 
960 inline
962 {
963  m_Msg = std::forward<CValidErrItem_Base::TMsg>(value);
964  m_set_State[0] |= 0x30;
965 }
966 
967 inline
969 {
970 #ifdef _DEBUG
971  if (!IsSetMsg()) {
973  }
974 #endif
975  m_set_State[0] |= 0x10;
976  return m_Msg;
977 }
978 
979 inline
981 {
982  return ((m_set_State[0] & 0xc0) != 0);
983 }
984 
985 inline
987 {
988  return IsSetObjDesc();
989 }
990 
991 inline
993 {
994  if (!CanGetObjDesc()) {
995  ThrowUnassigned(3);
996  }
997  return m_ObjDesc;
998 }
999 
1000 inline
1002 {
1003  m_ObjDesc = value;
1004  m_set_State[0] |= 0xc0;
1005 }
1006 
1007 inline
1009 {
1010  m_ObjDesc = std::forward<CValidErrItem_Base::TObjDesc>(value);
1011  m_set_State[0] |= 0xc0;
1012 }
1013 
1014 inline
1016 {
1017 #ifdef _DEBUG
1018  if (!IsSetObjDesc()) {
1020  }
1021 #endif
1022  m_set_State[0] |= 0x40;
1023  return m_ObjDesc;
1024 }
1025 
1026 inline
1028 {
1029  return ((m_set_State[0] & 0x300) != 0);
1030 }
1031 
1032 inline
1034 {
1035  return IsSetAccession();
1036 }
1037 
1038 inline
1040 {
1041  if (!CanGetAccession()) {
1042  ThrowUnassigned(4);
1043  }
1044  return m_Accession;
1045 }
1046 
1047 inline
1049 {
1050  m_Accession = value;
1051  m_set_State[0] |= 0x300;
1052 }
1053 
1054 inline
1056 {
1057  m_Accession = std::forward<CValidErrItem_Base::TAccession>(value);
1058  m_set_State[0] |= 0x300;
1059 }
1060 
1061 inline
1063 {
1064 #ifdef _DEBUG
1065  if (!IsSetAccession()) {
1067  }
1068 #endif
1069  m_set_State[0] |= 0x100;
1070  return m_Accession;
1071 }
1072 
1073 inline
1075 {
1076  return ((m_set_State[0] & 0xc00) != 0);
1077 }
1078 
1079 inline
1081 {
1082  return IsSetFeatureId();
1083 }
1084 
1085 inline
1087 {
1088  if (!CanGetFeatureId()) {
1089  ThrowUnassigned(5);
1090  }
1091  return m_FeatureId;
1092 }
1093 
1094 inline
1096 {
1097  m_FeatureId = value;
1098  m_set_State[0] |= 0xc00;
1099 }
1100 
1101 inline
1103 {
1104  m_FeatureId = std::forward<CValidErrItem_Base::TFeatureId>(value);
1105  m_set_State[0] |= 0xc00;
1106 }
1107 
1108 inline
1110 {
1111 #ifdef _DEBUG
1112  if (!IsSetFeatureId()) {
1114  }
1115 #endif
1116  m_set_State[0] |= 0x400;
1117  return m_FeatureId;
1118 }
1119 
1120 inline
1122 {
1123  return ((m_set_State[0] & 0x3000) != 0);
1124 }
1125 
1126 inline
1128 {
1129  return IsSetSeqOffset();
1130 }
1131 
1132 inline
1134 {
1135  m_SeqOffset = 0;
1136  m_set_State[0] &= ~0x3000;
1137 }
1138 
1139 inline
1141 {
1142  if (!CanGetSeqOffset()) {
1143  ThrowUnassigned(6);
1144  }
1145  return m_SeqOffset;
1146 }
1147 
1148 inline
1150 {
1151  m_SeqOffset = value;
1152  m_set_State[0] |= 0x3000;
1153 }
1154 
1155 inline
1157 {
1158 #ifdef _DEBUG
1159  if (!IsSetSeqOffset()) {
1160  memset(&m_SeqOffset,UnassignedByte(),sizeof(m_SeqOffset));
1161  }
1162 #endif
1163  m_set_State[0] |= 0x1000;
1164  return m_SeqOffset;
1165 }
1166 
1167 inline
1169 {
1170  return ((m_set_State[0] & 0xc000) != 0);
1171 }
1172 
1173 inline
1175 {
1176  return IsSetObjectType();
1177 }
1178 
1179 inline
1181 {
1182  m_ObjectType = (EObjectType)(0);
1183  m_set_State[0] &= ~0xc000;
1184 }
1185 
1186 inline
1188 {
1189  if (!CanGetObjectType()) {
1190  ThrowUnassigned(7);
1191  }
1192  return m_ObjectType;
1193 }
1194 
1195 inline
1197 {
1198  m_ObjectType = value;
1199  m_set_State[0] |= 0xc000;
1200 }
1201 
1202 inline
1204 {
1205 #ifdef _DEBUG
1206  if (!IsSetObjectType()) {
1207  memset(&m_ObjectType,UnassignedByte(),sizeof(m_ObjectType));
1208  }
1209 #endif
1210  m_set_State[0] |= 0x4000;
1211  return m_ObjectType;
1212 }
1213 
1214 inline
1216 {
1217  return ((m_set_State[0] & 0x30000) != 0);
1218 }
1219 
1220 inline
1222 {
1223  return IsSetErrorName();
1224 }
1225 
1226 inline
1228 {
1229  if (!CanGetErrorName()) {
1230  ThrowUnassigned(8);
1231  }
1232  return m_ErrorName;
1233 }
1234 
1235 inline
1237 {
1238  m_ErrorName = value;
1239  m_set_State[0] |= 0x30000;
1240 }
1241 
1242 inline
1244 {
1245  m_ErrorName = std::forward<CValidErrItem_Base::TErrorName>(value);
1246  m_set_State[0] |= 0x30000;
1247 }
1248 
1249 inline
1251 {
1252 #ifdef _DEBUG
1253  if (!IsSetErrorName()) {
1255  }
1256 #endif
1257  m_set_State[0] |= 0x10000;
1258  return m_ErrorName;
1259 }
1260 
1261 inline
1263 {
1264  return ((m_set_State[0] & 0xc0000) != 0);
1265 }
1266 
1267 inline
1269 {
1270  return IsSetErrorGroup();
1271 }
1272 
1273 inline
1275 {
1276  if (!CanGetErrorGroup()) {
1277  ThrowUnassigned(9);
1278  }
1279  return m_ErrorGroup;
1280 }
1281 
1282 inline
1284 {
1285  m_ErrorGroup = value;
1286  m_set_State[0] |= 0xc0000;
1287 }
1288 
1289 inline
1291 {
1292  m_ErrorGroup = std::forward<CValidErrItem_Base::TErrorGroup>(value);
1293  m_set_State[0] |= 0xc0000;
1294 }
1295 
1296 inline
1298 {
1299 #ifdef _DEBUG
1300  if (!IsSetErrorGroup()) {
1302  }
1303 #endif
1304  m_set_State[0] |= 0x40000;
1305  return m_ErrorGroup;
1306 }
1307 
1308 inline
1310 {
1311  return ((m_set_State[0] & 0x300000) != 0);
1312 }
1313 
1314 inline
1316 {
1317  return IsSetAccnver();
1318 }
1319 
1320 inline
1322 {
1323  if (!CanGetAccnver()) {
1324  ThrowUnassigned(10);
1325  }
1326  return m_Accnver;
1327 }
1328 
1329 inline
1331 {
1332  m_Accnver = value;
1333  m_set_State[0] |= 0x300000;
1334 }
1335 
1336 inline
1338 {
1339  m_Accnver = std::forward<CValidErrItem_Base::TAccnver>(value);
1340  m_set_State[0] |= 0x300000;
1341 }
1342 
1343 inline
1345 {
1346 #ifdef _DEBUG
1347  if (!IsSetAccnver()) {
1349  }
1350 #endif
1351  m_set_State[0] |= 0x100000;
1352  return m_Accnver;
1353 }
1354 
1355 inline
1357 {
1358  return ((m_set_State[0] & 0xc00000) != 0);
1359 }
1360 
1361 inline
1363 {
1364  return IsSetVersion();
1365 }
1366 
1367 inline
1369 {
1370  m_Version = 0;
1371  m_set_State[0] &= ~0xc00000;
1372 }
1373 
1374 inline
1376 {
1377  if (!CanGetVersion()) {
1378  ThrowUnassigned(11);
1379  }
1380  return m_Version;
1381 }
1382 
1383 inline
1385 {
1386  m_Version = value;
1387  m_set_State[0] |= 0xc00000;
1388 }
1389 
1390 inline
1392 {
1393 #ifdef _DEBUG
1394  if (!IsSetVersion()) {
1395  memset(&m_Version,UnassignedByte(),sizeof(m_Version));
1396  }
1397 #endif
1398  m_set_State[0] |= 0x400000;
1399  return m_Version;
1400 }
1401 
1402 inline
1404 {
1405  return ((m_set_State[0] & 0x3000000) != 0);
1406 }
1407 
1408 inline
1410 {
1411  return IsSetLocation();
1412 }
1413 
1414 inline
1416 {
1417  if (!CanGetLocation()) {
1418  ThrowUnassigned(12);
1419  }
1420  return m_Location;
1421 }
1422 
1423 inline
1425 {
1426  m_Location = value;
1427  m_set_State[0] |= 0x3000000;
1428 }
1429 
1430 inline
1432 {
1433  m_Location = std::forward<CValidErrItem_Base::TLocation>(value);
1434  m_set_State[0] |= 0x3000000;
1435 }
1436 
1437 inline
1439 {
1440 #ifdef _DEBUG
1441  if (!IsSetLocation()) {
1443  }
1444 #endif
1445  m_set_State[0] |= 0x1000000;
1446  return m_Location;
1447 }
1448 
1449 inline
1451 {
1452  return ((m_set_State[0] & 0xc000000) != 0);
1453 }
1454 
1455 inline
1457 {
1458  return IsSetProduct_loc();
1459 }
1460 
1461 inline
1463 {
1464  if (!CanGetProduct_loc()) {
1465  ThrowUnassigned(13);
1466  }
1467  return m_Product_loc;
1468 }
1469 
1470 inline
1472 {
1473  m_Product_loc = value;
1474  m_set_State[0] |= 0xc000000;
1475 }
1476 
1477 inline
1479 {
1480  m_Product_loc = std::forward<CValidErrItem_Base::TProduct_loc>(value);
1481  m_set_State[0] |= 0xc000000;
1482 }
1483 
1484 inline
1486 {
1487 #ifdef _DEBUG
1488  if (!IsSetProduct_loc()) {
1490  }
1491 #endif
1492  m_set_State[0] |= 0x4000000;
1493  return m_Product_loc;
1494 }
1495 
1496 inline
1498 {
1499  return ((m_set_State[0] & 0x30000000) != 0);
1500 }
1501 
1502 inline
1504 {
1505  return IsSetBioseq();
1506 }
1507 
1508 inline
1510 {
1511  if (!CanGetBioseq()) {
1512  ThrowUnassigned(14);
1513  }
1514  return m_Bioseq;
1515 }
1516 
1517 inline
1519 {
1520  m_Bioseq = value;
1521  m_set_State[0] |= 0x30000000;
1522 }
1523 
1524 inline
1526 {
1527  m_Bioseq = std::forward<CValidErrItem_Base::TBioseq>(value);
1528  m_set_State[0] |= 0x30000000;
1529 }
1530 
1531 inline
1533 {
1534 #ifdef _DEBUG
1535  if (!IsSetBioseq()) {
1537  }
1538 #endif
1539  m_set_State[0] |= 0x10000000;
1540  return m_Bioseq;
1541 }
1542 
1543 inline
1545 {
1546  return ((m_set_State[0] & 0xc0000000) != 0);
1547 }
1548 
1549 inline
1551 {
1552  return IsSetLocus_tag();
1553 }
1554 
1555 inline
1557 {
1558  if (!CanGetLocus_tag()) {
1559  ThrowUnassigned(15);
1560  }
1561  return m_Locus_tag;
1562 }
1563 
1564 inline
1566 {
1567  m_Locus_tag = value;
1568  m_set_State[0] |= 0xc0000000;
1569 }
1570 
1571 inline
1573 {
1574  m_Locus_tag = std::forward<CValidErrItem_Base::TLocus_tag>(value);
1575  m_set_State[0] |= 0xc0000000;
1576 }
1577 
1578 inline
1580 {
1581 #ifdef _DEBUG
1582  if (!IsSetLocus_tag()) {
1584  }
1585 #endif
1586  m_set_State[0] |= 0x40000000;
1587  return m_Locus_tag;
1588 }
1589 
1590 inline
1592 {
1593  return ((m_set_State[1] & 0x3) != 0);
1594 }
1595 
1596 inline
1598 {
1599  return IsSetObj_content();
1600 }
1601 
1602 inline
1604 {
1605  if (!CanGetObj_content()) {
1606  ThrowUnassigned(16);
1607  }
1608  return m_Obj_content;
1609 }
1610 
1611 inline
1613 {
1614  m_Obj_content = value;
1615  m_set_State[1] |= 0x3;
1616 }
1617 
1618 inline
1620 {
1621  m_Obj_content = std::forward<CValidErrItem_Base::TObj_content>(value);
1622  m_set_State[1] |= 0x3;
1623 }
1624 
1625 inline
1627 {
1628 #ifdef _DEBUG
1629  if (!IsSetObj_content()) {
1631  }
1632 #endif
1633  m_set_State[1] |= 0x1;
1634  return m_Obj_content;
1635 }
1636 
1637 ///////////////////////////////////////////////////////////
1638 ////////////////// end of inline methods //////////////////
1639 ///////////////////////////////////////////////////////////
1640 
1641 
1642 
1643 
1644 
1645 END_objects_SCOPE // namespace ncbi::objects::
1646 
1648 
1649 
1650 #endif // OBJECTS_VALERR_VALIDERRITEM_BASE_HPP
Base class for all serializable objects.
Definition: serialbase.hpp:150
CValidErrItem_Base –.
char value[7]
Definition: config.c:431
static char UnassignedByte(void)
Definition: serialbase.hpp:181
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
Definition: serialbase.hpp:994
static string UnassignedString(void)
Definition: serialbase.hpp:175
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
#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_VALERR_EXPORT
Definition: ncbi_export.h:921
bool IsSetObjDesc(void) const
Check if a value has been assigned to ObjDesc data member.
TSeqOffset GetSeqOffset(void) const
Get the SeqOffset member data.
bool CanGetObj_content(void) const
Check if it is safe to call GetObj_content method.
TObj_content & SetObj_content(void)
Assign a value to Obj_content data member.
TObjDesc & SetObjDesc(void)
Assign a value to ObjDesc data member.
TErrorGroup & SetErrorGroup(void)
Assign a value to ErrorGroup data member.
TFeatureId & SetFeatureId(void)
Assign a value to FeatureId data member.
bool CanGetVersion(void) const
Check if it is safe to call GetVersion method.
TVersion GetVersion(void) const
Get the Version member data.
CValidErrItem_Base(const CValidErrItem_Base &)
bool IsSetFeatureId(void) const
Check if a value has been assigned to FeatureId data member.
Tparent::CMemberIndex< E_memberIndex, 18 > TmemberIndex
bool CanGetLocation(void) const
Check if it is safe to call GetLocation method.
bool CanGetSev(void) const
Check if it is safe to call GetSev method.
bool CanGetProduct_loc(void) const
Check if it is safe to call GetProduct_loc method.
const TAccnver & GetAccnver(void) const
Get the Accnver member data.
bool IsSetErrorName(void) const
Check if a value has been assigned to ErrorName data member.
void ResetSev(void)
Reset Sev data member.
TMsg & SetMsg(void)
Assign a value to Msg data member.
bool IsSetMsg(void) const
Check if a value has been assigned to Msg data member.
bool IsSetSev(void) const
Check if a value has been assigned to Sev data member.
void ResetSeqOffset(void)
Reset SeqOffset data member.
bool CanGetErrorGroup(void) const
Check if it is safe to call GetErrorGroup method.
bool IsSetLocation(void) const
Check if a value has been assigned to Location data member.
bool IsSetAccnver(void) const
Check if a value has been assigned to Accnver data member.
const TProduct_loc & GetProduct_loc(void) const
Get the Product_loc member data.
const TObjDesc & GetObjDesc(void) const
Get the ObjDesc member data.
const TObj_content & GetObj_content(void) const
Get the Obj_content member data.
const TLocation & GetLocation(void) const
Get the Location member data.
bool CanGetFeatureId(void) const
Check if it is safe to call GetFeatureId method.
void ResetErrIndex(void)
Reset ErrIndex data member.
bool CanGetLocus_tag(void) const
Check if it is safe to call GetLocus_tag method.
TSev GetSev(void) const
Get the Sev member data.
const TErrorGroup & GetErrorGroup(void) const
Get the ErrorGroup member data.
const TMsg & GetMsg(void) const
Get the Msg member data.
CSerialObject Tparent
bool IsSetVersion(void) const
Check if a value has been assigned to Version data member.
TSev & SetSev(void)
Assign a value to Sev data member.
TBioseq & SetBioseq(void)
Assign a value to Bioseq data member.
bool IsSetAccession(void) const
Check if a value has been assigned to Accession data member.
bool CanGetBioseq(void) const
Check if it is safe to call GetBioseq method.
TProduct_loc & SetProduct_loc(void)
Assign a value to Product_loc data member.
TErrIndex & SetErrIndex(void)
Assign a value to ErrIndex data member.
unsigned int TErrIndex
const TLocus_tag & GetLocus_tag(void) const
Get the Locus_tag member data.
bool IsSetObj_content(void) const
Check if a value has been assigned to Obj_content data member.
bool IsSetSeqOffset(void) const
Check if a value has been assigned to SeqOffset data member.
bool CanGetAccession(void) const
Check if it is safe to call GetAccession method.
bool CanGetErrorName(void) const
Check if it is safe to call GetErrorName method.
bool CanGetAccnver(void) const
Check if it is safe to call GetAccnver method.
TErrorName & SetErrorName(void)
Assign a value to ErrorName data member.
bool IsSetLocus_tag(void) const
Check if a value has been assigned to Locus_tag data member.
TAccession & SetAccession(void)
Assign a value to Accession data member.
bool IsSetProduct_loc(void) const
Check if a value has been assigned to Product_loc data member.
TLocus_tag & SetLocus_tag(void)
Assign a value to Locus_tag data member.
TObjectType & SetObjectType(void)
Assign a value to ObjectType data member.
const TBioseq & GetBioseq(void) const
Get the Bioseq member data.
TAccnver & SetAccnver(void)
Assign a value to Accnver data member.
TSeqOffset & SetSeqOffset(void)
Assign a value to SeqOffset data member.
bool CanGetSeqOffset(void) const
Check if it is safe to call GetSeqOffset method.
CValidErrItem_Base & operator=(const CValidErrItem_Base &)
bool IsSetErrIndex(void) const
Check if a value has been assigned to ErrIndex data member.
void ResetVersion(void)
Reset Version data member.
bool IsSetObjectType(void) const
Check if a value has been assigned to ObjectType data member.
TErrIndex GetErrIndex(void) const
Get the ErrIndex member data.
void ResetObjectType(void)
Reset ObjectType data member.
bool IsSetErrorGroup(void) const
Check if a value has been assigned to ErrorGroup data member.
unsigned int m_ErrIndex
const TAccession & GetAccession(void) const
Get the Accession member data.
bool CanGetObjDesc(void) const
Check if it is safe to call GetObjDesc method.
bool CanGetMsg(void) const
Check if it is safe to call GetMsg method.
bool CanGetErrIndex(void) const
Check if it is safe to call GetErrIndex method.
const TFeatureId & GetFeatureId(void) const
Get the FeatureId member data.
TObjectType GetObjectType(void) const
Get the ObjectType member data.
bool IsSetBioseq(void) const
Check if a value has been assigned to Bioseq data member.
TVersion & SetVersion(void)
Assign a value to Version data member.
TLocation & SetLocation(void)
Assign a value to Location data member.
const TErrorName & GetErrorName(void) const
Get the ErrorName member data.
bool CanGetObjectType(void) const
Check if it is safe to call GetObjectType method.
CBioseq_Info & GetBioseq(CTSE_Info &tse, const CBioObjectId &id)
const CConstRef< CSeq_id > GetAccession(const CSeq_id_Handle &id_handle)
Modified on Thu Mar 28 17:08:11 2024 by modify_doxy.py rev. 669887