NCBI C++ ToolKit
Imprint_.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 Imprint_.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/biblio/biblio.asn">biblio.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/biblio/biblio.def">biblio.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_BIBLIO_IMPRINT_BASE_HPP
42 #define OBJECTS_BIBLIO_IMPRINT_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <string>
50 
52 
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
56 #endif
57 BEGIN_objects_SCOPE // namespace ncbi::objects::
58 
59 
60 // forward declarations
61 class CAffil;
62 class CCitRetract;
63 class CDate;
64 class CPubStatusDateSet;
65 
66 
67 // generated classes
68 
69 
70 /** @addtogroup dataspec_NCBI_Biblio
71  *
72  * @{
73  */
74 
75 /////////////////////////////////////////////////////////////////////////////
76 /// Imprint group
77 ///
78 /// CImprint_Base --
79 ///
80 
82 {
84 public:
85  // constructor
86  CImprint_Base(void);
87  // destructor
88  virtual ~CImprint_Base(void);
89 
90  // type info
92 
93  /// for prepublication citations
94  enum EPrepub {
95  ePrepub_submitted = 1, ///< submitted, not accepted
96  ePrepub_in_press = 2, ///< accepted, not published
97  ePrepub_other = 255
98  };
99 
100  /// Access to EPrepub's attributes (values, names) as defined in spec
101  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EPrepub)(void);
102 
103  // types
104  typedef CDate TDate;
105  typedef string TVolume;
106  typedef string TIssue;
107  typedef string TPages;
108  typedef string TSection;
109  typedef CAffil TPub;
110  typedef CDate TCprt;
111  typedef string TPart_sup;
112  typedef string TLanguage;
113  typedef EPrepub TPrepub;
114  typedef string TPart_supi;
116  typedef int TPubstatus;
118 
119  // member index
120  enum class E_memberIndex {
121  e__allMandatory = 0,
122  e_date,
123  e_volume,
124  e_issue,
125  e_pages,
126  e_section,
127  e_pub,
128  e_cprt,
129  e_part_sup,
130  e_language,
131  e_prepub,
132  e_part_supi,
133  e_retract,
134  e_pubstatus,
135  e_history
136  };
138 
139  // getters
140  // setters
141 
142  /// date of publication
143  /// Check if a value has been assigned to Date data member.
144  ///
145  /// Data member Date is mandatory;
146  /// its type is defined as 'typedef CDate TDate'
147  /// @return
148  /// - true, if a value has been assigned.
149  /// - false, otherwise.
150  bool IsSetDate(void) const;
151 
152  /// Check if it is safe to call GetDate method.
153  ///
154  /// @return
155  /// - true, if the data member is getatable.
156  /// - false, otherwise.
157  bool CanGetDate(void) const;
158 
159  /// Reset Date data member.
160  void ResetDate(void);
161 
162  /// Get the Date member data.
163  ///
164  /// @return
165  /// Reference to the member data.
166  const TDate& GetDate(void) const;
167 
168  /// Assign a value to Date data member.
169  ///
170  /// @param value
171  /// Reference to value.
172  void SetDate(TDate& value);
173 
174  /// Assign a value to Date data member.
175  ///
176  /// @return
177  /// Reference to the data value.
178  TDate& SetDate(void);
179 
180  /// Check if a value has been assigned to Volume data member.
181  ///
182  /// Data member Volume is optional;
183  /// its type is defined as 'typedef string TVolume'
184  /// @return
185  /// - true, if a value has been assigned.
186  /// - false, otherwise.
187  bool IsSetVolume(void) const;
188 
189  /// Check if it is safe to call GetVolume method.
190  ///
191  /// @return
192  /// - true, if the data member is getatable.
193  /// - false, otherwise.
194  bool CanGetVolume(void) const;
195 
196  /// Reset Volume data member.
197  void ResetVolume(void);
198 
199  /// Get the Volume member data.
200  ///
201  /// @return
202  /// Reference to the member data.
203  const TVolume& GetVolume(void) const;
204 
205  /// Assign a value to Volume data member.
206  ///
207  /// @param value
208  /// Value to assign
209  void SetVolume(const TVolume& value);
210  void SetVolume(TVolume&& value);
211 
212  /// Assign a value to Volume data member.
213  ///
214  /// @return
215  /// Reference to the data value.
216  TVolume& SetVolume(void);
217 
218  /// Check if a value has been assigned to Issue data member.
219  ///
220  /// Data member Issue is optional;
221  /// its type is defined as 'typedef string TIssue'
222  /// @return
223  /// - true, if a value has been assigned.
224  /// - false, otherwise.
225  bool IsSetIssue(void) const;
226 
227  /// Check if it is safe to call GetIssue method.
228  ///
229  /// @return
230  /// - true, if the data member is getatable.
231  /// - false, otherwise.
232  bool CanGetIssue(void) const;
233 
234  /// Reset Issue data member.
235  void ResetIssue(void);
236 
237  /// Get the Issue member data.
238  ///
239  /// @return
240  /// Reference to the member data.
241  const TIssue& GetIssue(void) const;
242 
243  /// Assign a value to Issue data member.
244  ///
245  /// @param value
246  /// Value to assign
247  void SetIssue(const TIssue& value);
248  void SetIssue(TIssue&& value);
249 
250  /// Assign a value to Issue data member.
251  ///
252  /// @return
253  /// Reference to the data value.
254  TIssue& SetIssue(void);
255 
256  /// Check if a value has been assigned to Pages data member.
257  ///
258  /// Data member Pages is optional;
259  /// its type is defined as 'typedef string TPages'
260  /// @return
261  /// - true, if a value has been assigned.
262  /// - false, otherwise.
263  bool IsSetPages(void) const;
264 
265  /// Check if it is safe to call GetPages method.
266  ///
267  /// @return
268  /// - true, if the data member is getatable.
269  /// - false, otherwise.
270  bool CanGetPages(void) const;
271 
272  /// Reset Pages data member.
273  void ResetPages(void);
274 
275  /// Get the Pages member data.
276  ///
277  /// @return
278  /// Reference to the member data.
279  const TPages& GetPages(void) const;
280 
281  /// Assign a value to Pages data member.
282  ///
283  /// @param value
284  /// Value to assign
285  void SetPages(const TPages& value);
286  void SetPages(TPages&& value);
287 
288  /// Assign a value to Pages data member.
289  ///
290  /// @return
291  /// Reference to the data value.
292  TPages& SetPages(void);
293 
294  /// Check if a value has been assigned to Section data member.
295  ///
296  /// Data member Section is optional;
297  /// its type is defined as 'typedef string TSection'
298  /// @return
299  /// - true, if a value has been assigned.
300  /// - false, otherwise.
301  bool IsSetSection(void) const;
302 
303  /// Check if it is safe to call GetSection method.
304  ///
305  /// @return
306  /// - true, if the data member is getatable.
307  /// - false, otherwise.
308  bool CanGetSection(void) const;
309 
310  /// Reset Section data member.
311  void ResetSection(void);
312 
313  /// Get the Section member data.
314  ///
315  /// @return
316  /// Reference to the member data.
317  const TSection& GetSection(void) const;
318 
319  /// Assign a value to Section data member.
320  ///
321  /// @param value
322  /// Value to assign
323  void SetSection(const TSection& value);
324  void SetSection(TSection&& value);
325 
326  /// Assign a value to Section data member.
327  ///
328  /// @return
329  /// Reference to the data value.
330  TSection& SetSection(void);
331 
332  /// publisher, required for book
333  /// Check if a value has been assigned to Pub data member.
334  ///
335  /// Data member Pub is optional;
336  /// its type is defined as 'typedef CAffil TPub'
337  /// @return
338  /// - true, if a value has been assigned.
339  /// - false, otherwise.
340  bool IsSetPub(void) const;
341 
342  /// Check if it is safe to call GetPub method.
343  ///
344  /// @return
345  /// - true, if the data member is getatable.
346  /// - false, otherwise.
347  bool CanGetPub(void) const;
348 
349  /// Reset Pub data member.
350  void ResetPub(void);
351 
352  /// Get the Pub member data.
353  ///
354  /// @return
355  /// Reference to the member data.
356  const TPub& GetPub(void) const;
357 
358  /// Assign a value to Pub data member.
359  ///
360  /// @param value
361  /// Reference to value.
362  void SetPub(TPub& value);
363 
364  /// Assign a value to Pub data member.
365  ///
366  /// @return
367  /// Reference to the data value.
368  TPub& SetPub(void);
369 
370  /// copyright date, " " "
371  /// Check if a value has been assigned to Cprt data member.
372  ///
373  /// Data member Cprt is optional;
374  /// its type is defined as 'typedef CDate TCprt'
375  /// @return
376  /// - true, if a value has been assigned.
377  /// - false, otherwise.
378  bool IsSetCprt(void) const;
379 
380  /// Check if it is safe to call GetCprt method.
381  ///
382  /// @return
383  /// - true, if the data member is getatable.
384  /// - false, otherwise.
385  bool CanGetCprt(void) const;
386 
387  /// Reset Cprt data member.
388  void ResetCprt(void);
389 
390  /// Get the Cprt member data.
391  ///
392  /// @return
393  /// Reference to the member data.
394  const TCprt& GetCprt(void) const;
395 
396  /// Assign a value to Cprt data member.
397  ///
398  /// @param value
399  /// Reference to value.
400  void SetCprt(TCprt& value);
401 
402  /// Assign a value to Cprt data member.
403  ///
404  /// @return
405  /// Reference to the data value.
406  TCprt& SetCprt(void);
407 
408  /// part/sup of volume
409  /// Check if a value has been assigned to Part_sup data member.
410  ///
411  /// Data member Part_sup is optional;
412  /// its type is defined as 'typedef string TPart_sup'
413  /// @return
414  /// - true, if a value has been assigned.
415  /// - false, otherwise.
416  bool IsSetPart_sup(void) const;
417 
418  /// Check if it is safe to call GetPart_sup method.
419  ///
420  /// @return
421  /// - true, if the data member is getatable.
422  /// - false, otherwise.
423  bool CanGetPart_sup(void) const;
424 
425  /// Reset Part_sup data member.
426  void ResetPart_sup(void);
427 
428  /// Get the Part_sup member data.
429  ///
430  /// @return
431  /// Reference to the member data.
432  const TPart_sup& GetPart_sup(void) const;
433 
434  /// Assign a value to Part_sup data member.
435  ///
436  /// @param value
437  /// Value to assign
438  void SetPart_sup(const TPart_sup& value);
439  void SetPart_sup(TPart_sup&& value);
440 
441  /// Assign a value to Part_sup data member.
442  ///
443  /// @return
444  /// Reference to the data value.
445  TPart_sup& SetPart_sup(void);
446 
447  /// put here for simplicity
448  /// Check if a value has been assigned to Language data member.
449  ///
450  /// Data member Language is optional with default "ENG";
451  /// its type is defined as 'typedef string TLanguage'
452  /// @return
453  /// - true, if a value has been assigned.
454  /// - false, otherwise.
455  bool IsSetLanguage(void) const;
456 
457  /// Check if it is safe to call GetLanguage method.
458  ///
459  /// @return
460  /// - true, if the data member is getatable.
461  /// - false, otherwise.
462  bool CanGetLanguage(void) const;
463 
464  /// Reset Language data member.
465  void ResetLanguage(void);
466 
467  /// Assign default value to Language data member.
468  void SetDefaultLanguage(void);
469 
470  /// Get the Language member data.
471  ///
472  /// @return
473  /// Reference to the member data.
474  const TLanguage& GetLanguage(void) const;
475 
476  /// Assign a value to Language data member.
477  ///
478  /// @param value
479  /// Value to assign
480  void SetLanguage(const TLanguage& value);
481  void SetLanguage(TLanguage&& value);
482 
483  /// Assign a value to Language data member.
484  ///
485  /// @return
486  /// Reference to the data value.
487  TLanguage& SetLanguage(void);
488 
489  /// Check if a value has been assigned to Prepub data member.
490  ///
491  /// Data member Prepub is optional;
492  /// its type is defined as 'typedef EPrepub TPrepub'
493  /// @return
494  /// - true, if a value has been assigned.
495  /// - false, otherwise.
496  bool IsSetPrepub(void) const;
497 
498  /// Check if it is safe to call GetPrepub method.
499  ///
500  /// @return
501  /// - true, if the data member is getatable.
502  /// - false, otherwise.
503  bool CanGetPrepub(void) const;
504 
505  /// Reset Prepub data member.
506  void ResetPrepub(void);
507 
508  /// Get the Prepub member data.
509  ///
510  /// @return
511  /// Copy of the member data.
512  TPrepub GetPrepub(void) const;
513 
514  /// Assign a value to Prepub data member.
515  ///
516  /// @param value
517  /// Value to assign
518  void SetPrepub(TPrepub value);
519 
520  /// Assign a value to Prepub data member.
521  ///
522  /// @return
523  /// Reference to the data value.
524  TPrepub& SetPrepub(void);
525 
526  /// part/sup on issue
527  /// Check if a value has been assigned to Part_supi data member.
528  ///
529  /// Data member Part_supi is optional;
530  /// its type is defined as 'typedef string TPart_supi'
531  /// @return
532  /// - true, if a value has been assigned.
533  /// - false, otherwise.
534  bool IsSetPart_supi(void) const;
535 
536  /// Check if it is safe to call GetPart_supi method.
537  ///
538  /// @return
539  /// - true, if the data member is getatable.
540  /// - false, otherwise.
541  bool CanGetPart_supi(void) const;
542 
543  /// Reset Part_supi data member.
544  void ResetPart_supi(void);
545 
546  /// Get the Part_supi member data.
547  ///
548  /// @return
549  /// Reference to the member data.
550  const TPart_supi& GetPart_supi(void) const;
551 
552  /// Assign a value to Part_supi data member.
553  ///
554  /// @param value
555  /// Value to assign
556  void SetPart_supi(const TPart_supi& value);
557  void SetPart_supi(TPart_supi&& value);
558 
559  /// Assign a value to Part_supi data member.
560  ///
561  /// @return
562  /// Reference to the data value.
563  TPart_supi& SetPart_supi(void);
564 
565  /// retraction info
566  /// Check if a value has been assigned to Retract data member.
567  ///
568  /// Data member Retract is optional;
569  /// its type is defined as 'typedef CCitRetract TRetract'
570  /// @return
571  /// - true, if a value has been assigned.
572  /// - false, otherwise.
573  bool IsSetRetract(void) const;
574 
575  /// Check if it is safe to call GetRetract method.
576  ///
577  /// @return
578  /// - true, if the data member is getatable.
579  /// - false, otherwise.
580  bool CanGetRetract(void) const;
581 
582  /// Reset Retract data member.
583  void ResetRetract(void);
584 
585  /// Get the Retract member data.
586  ///
587  /// @return
588  /// Reference to the member data.
589  const TRetract& GetRetract(void) const;
590 
591  /// Assign a value to Retract data member.
592  ///
593  /// @param value
594  /// Reference to value.
595  void SetRetract(TRetract& value);
596 
597  /// Assign a value to Retract data member.
598  ///
599  /// @return
600  /// Reference to the data value.
601  TRetract& SetRetract(void);
602 
603  /// current status of this publication
604  /// Check if a value has been assigned to Pubstatus data member.
605  ///
606  /// Data member Pubstatus is optional;
607  /// its type is defined as 'typedef int TPubstatus'
608  /// @return
609  /// - true, if a value has been assigned.
610  /// - false, otherwise.
611  bool IsSetPubstatus(void) const;
612 
613  /// Check if it is safe to call GetPubstatus method.
614  ///
615  /// @return
616  /// - true, if the data member is getatable.
617  /// - false, otherwise.
618  bool CanGetPubstatus(void) const;
619 
620  /// Reset Pubstatus data member.
621  void ResetPubstatus(void);
622 
623  /// Get the Pubstatus member data.
624  ///
625  /// @return
626  /// Copy of the member data.
627  TPubstatus GetPubstatus(void) const;
628 
629  /// Assign a value to Pubstatus data member.
630  ///
631  /// @param value
632  /// Value to assign
633  void SetPubstatus(TPubstatus value);
634 
635  /// Assign a value to Pubstatus data member.
636  ///
637  /// @return
638  /// Reference to the data value.
639  TPubstatus& SetPubstatus(void);
640 
641  /// dates for this record
642  /// Check if a value has been assigned to History data member.
643  ///
644  /// Data member History is optional;
645  /// its type is defined as 'typedef CPubStatusDateSet THistory'
646  /// @return
647  /// - true, if a value has been assigned.
648  /// - false, otherwise.
649  bool IsSetHistory(void) const;
650 
651  /// Check if it is safe to call GetHistory method.
652  ///
653  /// @return
654  /// - true, if the data member is getatable.
655  /// - false, otherwise.
656  bool CanGetHistory(void) const;
657 
658  /// Reset History data member.
659  void ResetHistory(void);
660 
661  /// Get the History member data.
662  ///
663  /// @return
664  /// Reference to the member data.
665  const THistory& GetHistory(void) const;
666 
667  /// Assign a value to History data member.
668  ///
669  /// @param value
670  /// Reference to value.
671  void SetHistory(THistory& value);
672 
673  /// Assign a value to History data member.
674  ///
675  /// @return
676  /// Reference to the data value.
677  THistory& SetHistory(void);
678 
679  /// Reset the whole object
680  virtual void Reset(void);
681 
682 
683 private:
684  // Prohibit copy constructor and assignment operator
687 
688  // data
689  Uint4 m_set_State[1];
691  string m_Volume;
692  string m_Issue;
693  string m_Pages;
694  string m_Section;
697  string m_Part_sup;
698  string m_Language;
700  string m_Part_supi;
704 };
705 
706 /* @} */
707 
708 
709 
710 
711 
712 ///////////////////////////////////////////////////////////
713 ///////////////////// inline methods //////////////////////
714 ///////////////////////////////////////////////////////////
715 inline
716 bool CImprint_Base::IsSetDate(void) const
717 {
718  return m_Date.NotEmpty();
719 }
720 
721 inline
723 {
724  return true;
725 }
726 
727 inline
729 {
730  if ( !m_Date ) {
731  const_cast<CImprint_Base*>(this)->ResetDate();
732  }
733  return (*m_Date);
734 }
735 
736 inline
738 {
739  if ( !m_Date ) {
740  ResetDate();
741  }
742  return (*m_Date);
743 }
744 
745 inline
747 {
748  return ((m_set_State[0] & 0xc) != 0);
749 }
750 
751 inline
753 {
754  return IsSetVolume();
755 }
756 
757 inline
759 {
760  if (!CanGetVolume()) {
761  ThrowUnassigned(1);
762  }
763  return m_Volume;
764 }
765 
766 inline
768 {
769  m_Volume = value;
770  m_set_State[0] |= 0xc;
771 }
772 
773 inline
775 {
776  m_Volume = std::forward<CImprint_Base::TVolume>(value);
777  m_set_State[0] |= 0xc;
778 }
779 
780 inline
782 {
783 #ifdef _DEBUG
784  if (!IsSetVolume()) {
786  }
787 #endif
788  m_set_State[0] |= 0x4;
789  return m_Volume;
790 }
791 
792 inline
794 {
795  return ((m_set_State[0] & 0x30) != 0);
796 }
797 
798 inline
800 {
801  return IsSetIssue();
802 }
803 
804 inline
806 {
807  if (!CanGetIssue()) {
808  ThrowUnassigned(2);
809  }
810  return m_Issue;
811 }
812 
813 inline
815 {
816  m_Issue = value;
817  m_set_State[0] |= 0x30;
818 }
819 
820 inline
822 {
823  m_Issue = std::forward<CImprint_Base::TIssue>(value);
824  m_set_State[0] |= 0x30;
825 }
826 
827 inline
829 {
830 #ifdef _DEBUG
831  if (!IsSetIssue()) {
833  }
834 #endif
835  m_set_State[0] |= 0x10;
836  return m_Issue;
837 }
838 
839 inline
841 {
842  return ((m_set_State[0] & 0xc0) != 0);
843 }
844 
845 inline
847 {
848  return IsSetPages();
849 }
850 
851 inline
853 {
854  if (!CanGetPages()) {
855  ThrowUnassigned(3);
856  }
857  return m_Pages;
858 }
859 
860 inline
862 {
863  m_Pages = value;
864  m_set_State[0] |= 0xc0;
865 }
866 
867 inline
869 {
870  m_Pages = std::forward<CImprint_Base::TPages>(value);
871  m_set_State[0] |= 0xc0;
872 }
873 
874 inline
876 {
877 #ifdef _DEBUG
878  if (!IsSetPages()) {
880  }
881 #endif
882  m_set_State[0] |= 0x40;
883  return m_Pages;
884 }
885 
886 inline
888 {
889  return ((m_set_State[0] & 0x300) != 0);
890 }
891 
892 inline
894 {
895  return IsSetSection();
896 }
897 
898 inline
900 {
901  if (!CanGetSection()) {
902  ThrowUnassigned(4);
903  }
904  return m_Section;
905 }
906 
907 inline
909 {
910  m_Section = value;
911  m_set_State[0] |= 0x300;
912 }
913 
914 inline
916 {
917  m_Section = std::forward<CImprint_Base::TSection>(value);
918  m_set_State[0] |= 0x300;
919 }
920 
921 inline
923 {
924 #ifdef _DEBUG
925  if (!IsSetSection()) {
927  }
928 #endif
929  m_set_State[0] |= 0x100;
930  return m_Section;
931 }
932 
933 inline
934 bool CImprint_Base::IsSetPub(void) const
935 {
936  return m_Pub.NotEmpty();
937 }
938 
939 inline
940 bool CImprint_Base::CanGetPub(void) const
941 {
942  return IsSetPub();
943 }
944 
945 inline
947 {
948  if (!CanGetPub()) {
949  ThrowUnassigned(5);
950  }
951  return (*m_Pub);
952 }
953 
954 inline
955 bool CImprint_Base::IsSetCprt(void) const
956 {
957  return m_Cprt.NotEmpty();
958 }
959 
960 inline
962 {
963  return IsSetCprt();
964 }
965 
966 inline
968 {
969  if (!CanGetCprt()) {
970  ThrowUnassigned(6);
971  }
972  return (*m_Cprt);
973 }
974 
975 inline
977 {
978  return ((m_set_State[0] & 0xc000) != 0);
979 }
980 
981 inline
983 {
984  return IsSetPart_sup();
985 }
986 
987 inline
989 {
990  if (!CanGetPart_sup()) {
991  ThrowUnassigned(7);
992  }
993  return m_Part_sup;
994 }
995 
996 inline
998 {
999  m_Part_sup = value;
1000  m_set_State[0] |= 0xc000;
1001 }
1002 
1003 inline
1005 {
1006  m_Part_sup = std::forward<CImprint_Base::TPart_sup>(value);
1007  m_set_State[0] |= 0xc000;
1008 }
1009 
1010 inline
1012 {
1013 #ifdef _DEBUG
1014  if (!IsSetPart_sup()) {
1016  }
1017 #endif
1018  m_set_State[0] |= 0x4000;
1019  return m_Part_sup;
1020 }
1021 
1022 inline
1024 {
1025  return ((m_set_State[0] & 0x30000) != 0);
1026 }
1027 
1028 inline
1030 {
1031  return true;
1032 }
1033 
1034 inline
1036 {
1037  m_Language = "ENG";
1038  m_set_State[0] &= ~0x30000;
1039 }
1040 
1041 inline
1043 {
1044  ResetLanguage();
1045 }
1046 
1047 inline
1049 {
1050  return m_Language;
1051 }
1052 
1053 inline
1055 {
1056  m_Language = value;
1057  m_set_State[0] |= 0x30000;
1058 }
1059 
1060 inline
1062 {
1063  m_Language = std::forward<CImprint_Base::TLanguage>(value);
1064  m_set_State[0] |= 0x30000;
1065 }
1066 
1067 inline
1069 {
1070 #ifdef _DEBUG
1071  if (!IsSetLanguage()) {
1073  }
1074 #endif
1075  m_set_State[0] |= 0x10000;
1076  return m_Language;
1077 }
1078 
1079 inline
1081 {
1082  return ((m_set_State[0] & 0xc0000) != 0);
1083 }
1084 
1085 inline
1087 {
1088  return IsSetPrepub();
1089 }
1090 
1091 inline
1093 {
1094  m_Prepub = (EPrepub)(0);
1095  m_set_State[0] &= ~0xc0000;
1096 }
1097 
1098 inline
1100 {
1101  if (!CanGetPrepub()) {
1102  ThrowUnassigned(9);
1103  }
1104  return m_Prepub;
1105 }
1106 
1107 inline
1109 {
1110  m_Prepub = value;
1111  m_set_State[0] |= 0xc0000;
1112 }
1113 
1114 inline
1116 {
1117 #ifdef _DEBUG
1118  if (!IsSetPrepub()) {
1119  memset(&m_Prepub,UnassignedByte(),sizeof(m_Prepub));
1120  }
1121 #endif
1122  m_set_State[0] |= 0x40000;
1123  return m_Prepub;
1124 }
1125 
1126 inline
1128 {
1129  return ((m_set_State[0] & 0x300000) != 0);
1130 }
1131 
1132 inline
1134 {
1135  return IsSetPart_supi();
1136 }
1137 
1138 inline
1140 {
1141  if (!CanGetPart_supi()) {
1142  ThrowUnassigned(10);
1143  }
1144  return m_Part_supi;
1145 }
1146 
1147 inline
1149 {
1150  m_Part_supi = value;
1151  m_set_State[0] |= 0x300000;
1152 }
1153 
1154 inline
1156 {
1157  m_Part_supi = std::forward<CImprint_Base::TPart_supi>(value);
1158  m_set_State[0] |= 0x300000;
1159 }
1160 
1161 inline
1163 {
1164 #ifdef _DEBUG
1165  if (!IsSetPart_supi()) {
1167  }
1168 #endif
1169  m_set_State[0] |= 0x100000;
1170  return m_Part_supi;
1171 }
1172 
1173 inline
1175 {
1176  return m_Retract.NotEmpty();
1177 }
1178 
1179 inline
1181 {
1182  return IsSetRetract();
1183 }
1184 
1185 inline
1187 {
1188  if (!CanGetRetract()) {
1189  ThrowUnassigned(11);
1190  }
1191  return (*m_Retract);
1192 }
1193 
1194 inline
1196 {
1197  return ((m_set_State[0] & 0x3000000) != 0);
1198 }
1199 
1200 inline
1202 {
1203  return IsSetPubstatus();
1204 }
1205 
1206 inline
1208 {
1209  m_Pubstatus = (int)(0);
1210  m_set_State[0] &= ~0x3000000;
1211 }
1212 
1213 inline
1215 {
1216  if (!CanGetPubstatus()) {
1217  ThrowUnassigned(12);
1218  }
1219  return m_Pubstatus;
1220 }
1221 
1222 inline
1224 {
1225  m_Pubstatus = value;
1226  m_set_State[0] |= 0x3000000;
1227 }
1228 
1229 inline
1231 {
1232 #ifdef _DEBUG
1233  if (!IsSetPubstatus()) {
1234  memset(&m_Pubstatus,UnassignedByte(),sizeof(m_Pubstatus));
1235  }
1236 #endif
1237  m_set_State[0] |= 0x1000000;
1238  return m_Pubstatus;
1239 }
1240 
1241 inline
1243 {
1244  return m_History.NotEmpty();
1245 }
1246 
1247 inline
1249 {
1250  return IsSetHistory();
1251 }
1252 
1253 inline
1255 {
1256  if (!CanGetHistory()) {
1257  ThrowUnassigned(13);
1258  }
1259  return (*m_History);
1260 }
1261 
1262 ///////////////////////////////////////////////////////////
1263 ////////////////// end of inline methods //////////////////
1264 ///////////////////////////////////////////////////////////
1265 
1266 
1267 
1268 
1269 
1270 END_objects_SCOPE // namespace ncbi::objects::
1271 
1273 
1274 
1275 #endif // OBJECTS_BIBLIO_IMPRINT_BASE_HPP
User-defined methods of the data storage class.
@Affil.hpp User-defined methods of the data storage class.
Definition: Affil.hpp:56
CCitRetract –.
Definition: CitRetract.hpp:66
Definition: Date.hpp:53
Imprint group.
Definition: Imprint_.hpp:82
CPubStatusDateSet –.
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
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_BIBLIO_EXPORT
Definition: ncbi_export.h:312
bool IsSetVolume(void) const
Check if a value has been assigned to Volume data member.
Definition: Imprint_.hpp:746
const TPart_supi & GetPart_supi(void) const
Get the Part_supi member data.
Definition: Imprint_.hpp:1139
bool CanGetHistory(void) const
Check if it is safe to call GetHistory method.
Definition: Imprint_.hpp:1248
string m_Section
Definition: Imprint_.hpp:694
TVolume & SetVolume(void)
Assign a value to Volume data member.
Definition: Imprint_.hpp:781
const TCprt & GetCprt(void) const
Get the Cprt member data.
Definition: Imprint_.hpp:967
bool CanGetLanguage(void) const
Check if it is safe to call GetLanguage method.
Definition: Imprint_.hpp:1029
CRef< TPub > m_Pub
Definition: Imprint_.hpp:695
CRef< TCprt > m_Cprt
Definition: Imprint_.hpp:696
string TSection
Definition: Imprint_.hpp:108
string TPart_sup
Definition: Imprint_.hpp:111
const TVolume & GetVolume(void) const
Get the Volume member data.
Definition: Imprint_.hpp:758
EPrepub TPrepub
Definition: Imprint_.hpp:113
const TPages & GetPages(void) const
Get the Pages member data.
Definition: Imprint_.hpp:852
bool IsSetPrepub(void) const
Check if a value has been assigned to Prepub data member.
Definition: Imprint_.hpp:1080
string m_Part_supi
Definition: Imprint_.hpp:700
bool IsSetPub(void) const
publisher, required for book Check if a value has been assigned to Pub data member.
Definition: Imprint_.hpp:934
bool CanGetPubstatus(void) const
Check if it is safe to call GetPubstatus method.
Definition: Imprint_.hpp:1201
TSection & SetSection(void)
Assign a value to Section data member.
Definition: Imprint_.hpp:922
string m_Issue
Definition: Imprint_.hpp:692
const TLanguage & GetLanguage(void) const
Get the Language member data.
Definition: Imprint_.hpp:1048
EPrepub m_Prepub
Definition: Imprint_.hpp:699
bool IsSetHistory(void) const
dates for this record Check if a value has been assigned to History data member.
Definition: Imprint_.hpp:1242
const TIssue & GetIssue(void) const
Get the Issue member data.
Definition: Imprint_.hpp:805
bool CanGetPrepub(void) const
Check if it is safe to call GetPrepub method.
Definition: Imprint_.hpp:1086
bool CanGetPages(void) const
Check if it is safe to call GetPages method.
Definition: Imprint_.hpp:846
void ResetDate(void)
Reset Date data member.
Definition: Imprint_.cpp:64
string m_Part_sup
Definition: Imprint_.hpp:697
CRef< TRetract > m_Retract
Definition: Imprint_.hpp:701
const THistory & GetHistory(void) const
Get the History member data.
Definition: Imprint_.hpp:1254
DECLARE_INTERNAL_TYPE_INFO()
TPrepub GetPrepub(void) const
Get the Prepub member data.
Definition: Imprint_.hpp:1099
bool IsSetPubstatus(void) const
current status of this publication Check if a value has been assigned to Pubstatus data member.
Definition: Imprint_.hpp:1195
void ResetPrepub(void)
Reset Prepub data member.
Definition: Imprint_.hpp:1092
CCitRetract TRetract
Definition: Imprint_.hpp:115
const TPart_sup & GetPart_sup(void) const
Get the Part_sup member data.
Definition: Imprint_.hpp:988
bool IsSetLanguage(void) const
put here for simplicity Check if a value has been assigned to Language data member.
Definition: Imprint_.hpp:1023
const TPub & GetPub(void) const
Get the Pub member data.
Definition: Imprint_.hpp:946
bool CanGetSection(void) const
Check if it is safe to call GetSection method.
Definition: Imprint_.hpp:893
bool CanGetVolume(void) const
Check if it is safe to call GetVolume method.
Definition: Imprint_.hpp:752
string TIssue
Definition: Imprint_.hpp:106
bool CanGetDate(void) const
Check if it is safe to call GetDate method.
Definition: Imprint_.hpp:722
TDate & SetDate(void)
Assign a value to Date data member.
Definition: Imprint_.hpp:737
bool IsSetRetract(void) const
retraction info Check if a value has been assigned to Retract data member.
Definition: Imprint_.hpp:1174
string TVolume
Definition: Imprint_.hpp:105
void ResetLanguage(void)
Reset Language data member.
Definition: Imprint_.hpp:1035
CSerialObject Tparent
Definition: Imprint_.hpp:83
TLanguage & SetLanguage(void)
Assign a value to Language data member.
Definition: Imprint_.hpp:1068
TPart_sup & SetPart_sup(void)
Assign a value to Part_sup data member.
Definition: Imprint_.hpp:1011
bool CanGetPub(void) const
Check if it is safe to call GetPub method.
Definition: Imprint_.hpp:940
bool IsSetIssue(void) const
Check if a value has been assigned to Issue data member.
Definition: Imprint_.hpp:793
const TRetract & GetRetract(void) const
Get the Retract member data.
Definition: Imprint_.hpp:1186
TPubstatus & SetPubstatus(void)
Assign a value to Pubstatus data member.
Definition: Imprint_.hpp:1230
TIssue & SetIssue(void)
Assign a value to Issue data member.
Definition: Imprint_.hpp:828
string m_Language
Definition: Imprint_.hpp:698
CImprint_Base & operator=(const CImprint_Base &)
bool CanGetPart_sup(void) const
Check if it is safe to call GetPart_sup method.
Definition: Imprint_.hpp:982
Uint4 m_set_State[1]
Definition: Imprint_.hpp:689
bool CanGetRetract(void) const
Check if it is safe to call GetRetract method.
Definition: Imprint_.hpp:1180
bool IsSetDate(void) const
date of publication Check if a value has been assigned to Date data member.
Definition: Imprint_.hpp:716
CRef< THistory > m_History
Definition: Imprint_.hpp:703
void SetDefaultLanguage(void)
Assign default value to Language data member.
Definition: Imprint_.hpp:1042
const TSection & GetSection(void) const
Get the Section member data.
Definition: Imprint_.hpp:899
EPrepub
for prepublication citations
Definition: Imprint_.hpp:94
TPages & SetPages(void)
Assign a value to Pages data member.
Definition: Imprint_.hpp:875
CImprint_Base(const CImprint_Base &)
bool IsSetPart_sup(void) const
part/sup of volume Check if a value has been assigned to Part_sup data member.
Definition: Imprint_.hpp:976
bool IsSetSection(void) const
Check if a value has been assigned to Section data member.
Definition: Imprint_.hpp:887
void ResetPubstatus(void)
Reset Pubstatus data member.
Definition: Imprint_.hpp:1207
string TLanguage
Definition: Imprint_.hpp:112
const TDate & GetDate(void) const
Get the Date member data.
Definition: Imprint_.hpp:728
bool IsSetCprt(void) const
copyright date, " " " Check if a value has been assigned to Cprt data member.
Definition: Imprint_.hpp:955
TPart_supi & SetPart_supi(void)
Assign a value to Part_supi data member.
Definition: Imprint_.hpp:1162
Tparent::CMemberIndex< E_memberIndex, 15 > TmemberIndex
Definition: Imprint_.hpp:137
bool IsSetPart_supi(void) const
part/sup on issue Check if a value has been assigned to Part_supi data member.
Definition: Imprint_.hpp:1127
bool CanGetPart_supi(void) const
Check if it is safe to call GetPart_supi method.
Definition: Imprint_.hpp:1133
bool CanGetCprt(void) const
Check if it is safe to call GetCprt method.
Definition: Imprint_.hpp:961
bool IsSetPages(void) const
Check if a value has been assigned to Pages data member.
Definition: Imprint_.hpp:840
TPrepub & SetPrepub(void)
Assign a value to Prepub data member.
Definition: Imprint_.hpp:1115
string TPages
Definition: Imprint_.hpp:107
string m_Pages
Definition: Imprint_.hpp:693
TPubstatus GetPubstatus(void) const
Get the Pubstatus member data.
Definition: Imprint_.hpp:1214
string TPart_supi
Definition: Imprint_.hpp:114
CPubStatusDateSet THistory
Definition: Imprint_.hpp:117
CRef< TDate > m_Date
Definition: Imprint_.hpp:690
bool CanGetIssue(void) const
Check if it is safe to call GetIssue method.
Definition: Imprint_.hpp:799
string m_Volume
Definition: Imprint_.hpp:691
unsigned int
A callback function used to compare two keys in a database.
Definition: types.hpp:1210
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:35 2024 by modify_doxy.py rev. 669887