NCBI C++ ToolKit
VisualStudioProject_.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 VisualStudioProject_.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/build-system/project_tree_builder/msvc71_project.dtd">msvc71_project.dtd</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/build-system/project_tree_builder/msvc71_project.def">msvc71_project.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 BUILD_SYSTEM_PROJECT_TREE_BUILDER_VISUALSTUDIOPROJECT_BASE_HPP
42 #define BUILD_SYSTEM_PROJECT_TREE_BUILDER_VISUALSTUDIOPROJECT_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 // forward declarations
60 class CConfigurations;
61 class CFiles;
62 class CPlatforms;
63 
64 
65 // generated classes
66 
67 
68 /** @addtogroup dataspec_msvc71_project
69  *
70  * @{
71  */
72 
73 /////////////////////////////////////////////////////////////////////////////
74 ///
75 /// CVisualStudioProject_Base --
76 ///
77 
79 {
81 public:
82  // constructor
84  // destructor
85  virtual ~CVisualStudioProject_Base(void);
86 
87  // type info
89 
90  /////////////////////////////////////////////////////////////////////////////
91  ///
92  /// C_Attlist --
93  ///
94 
95  class C_Attlist : public CSerialObject
96  {
98  public:
99  // constructor
100  C_Attlist(void);
101  // destructor
102  ~C_Attlist(void);
103 
104  // type info
106 
107  // types
108  typedef string TProjectType;
109  typedef string TVersion;
110  typedef string TName;
111  typedef string TSccProjectName;
112  typedef string TSccLocalPath;
113  typedef string TKeyword;
114  typedef string TProjectGUID;
115  typedef string TRootNamespace;
116 
117  // member index
118  enum class E_memberIndex {
119  e__allMandatory = 0,
121  e_Version,
122  e_Name,
125  e_Keyword,
128  };
130 
131  // getters
132  // setters
133 
134  /// Check if a value has been assigned to ProjectType data member.
135  ///
136  /// Data member ProjectType is mandatory;
137  /// its type is defined as 'typedef string TProjectType'
138  /// @return
139  /// - true, if a value has been assigned.
140  /// - false, otherwise.
141  bool IsSetProjectType(void) const;
142 
143  /// Check if it is safe to call GetProjectType method.
144  ///
145  /// @return
146  /// - true, if the data member is getatable.
147  /// - false, otherwise.
148  bool CanGetProjectType(void) const;
149 
150  /// Reset ProjectType data member.
151  void ResetProjectType(void);
152 
153  /// Get the ProjectType member data.
154  ///
155  /// @return
156  /// Reference to the member data.
157  const TProjectType& GetProjectType(void) const;
158 
159  /// Assign a value to ProjectType data member.
160  ///
161  /// @param value
162  /// Value to assign
163  void SetProjectType(const TProjectType& value);
165 
166  /// Assign a value to ProjectType data member.
167  ///
168  /// @return
169  /// Reference to the data value.
171 
172  /// Check if a value has been assigned to Version data member.
173  ///
174  /// Data member Version is mandatory;
175  /// its type is defined as 'typedef string TVersion'
176  /// @return
177  /// - true, if a value has been assigned.
178  /// - false, otherwise.
179  bool IsSetVersion(void) const;
180 
181  /// Check if it is safe to call GetVersion method.
182  ///
183  /// @return
184  /// - true, if the data member is getatable.
185  /// - false, otherwise.
186  bool CanGetVersion(void) const;
187 
188  /// Reset Version data member.
189  void ResetVersion(void);
190 
191  /// Get the Version member data.
192  ///
193  /// @return
194  /// Reference to the member data.
195  const TVersion& GetVersion(void) const;
196 
197  /// Assign a value to Version data member.
198  ///
199  /// @param value
200  /// Value to assign
201  void SetVersion(const TVersion& value);
202  void SetVersion(TVersion&& value);
203 
204  /// Assign a value to Version data member.
205  ///
206  /// @return
207  /// Reference to the data value.
208  TVersion& SetVersion(void);
209 
210  /// Check if a value has been assigned to Name data member.
211  ///
212  /// Data member Name is mandatory;
213  /// its type is defined as 'typedef string TName'
214  /// @return
215  /// - true, if a value has been assigned.
216  /// - false, otherwise.
217  bool IsSetName(void) const;
218 
219  /// Check if it is safe to call GetName method.
220  ///
221  /// @return
222  /// - true, if the data member is getatable.
223  /// - false, otherwise.
224  bool CanGetName(void) const;
225 
226  /// Reset Name data member.
227  void ResetName(void);
228 
229  /// Get the Name member data.
230  ///
231  /// @return
232  /// Reference to the member data.
233  const TName& GetName(void) const;
234 
235  /// Assign a value to Name data member.
236  ///
237  /// @param value
238  /// Value to assign
239  void SetName(const TName& value);
240  void SetName(TName&& value);
241 
242  /// Assign a value to Name data member.
243  ///
244  /// @return
245  /// Reference to the data value.
246  TName& SetName(void);
247 
248  /// Check if a value has been assigned to SccProjectName data member.
249  ///
250  /// Data member SccProjectName is optional;
251  /// its type is defined as 'typedef string TSccProjectName'
252  /// @return
253  /// - true, if a value has been assigned.
254  /// - false, otherwise.
255  bool IsSetSccProjectName(void) const;
256 
257  /// Check if it is safe to call GetSccProjectName method.
258  ///
259  /// @return
260  /// - true, if the data member is getatable.
261  /// - false, otherwise.
262  bool CanGetSccProjectName(void) const;
263 
264  /// Reset SccProjectName data member.
265  void ResetSccProjectName(void);
266 
267  /// Get the SccProjectName member data.
268  ///
269  /// @return
270  /// Reference to the member data.
271  const TSccProjectName& GetSccProjectName(void) const;
272 
273  /// Assign a value to SccProjectName data member.
274  ///
275  /// @param value
276  /// Value to assign
279 
280  /// Assign a value to SccProjectName data member.
281  ///
282  /// @return
283  /// Reference to the data value.
285 
286  /// Check if a value has been assigned to SccLocalPath data member.
287  ///
288  /// Data member SccLocalPath is optional;
289  /// its type is defined as 'typedef string TSccLocalPath'
290  /// @return
291  /// - true, if a value has been assigned.
292  /// - false, otherwise.
293  bool IsSetSccLocalPath(void) const;
294 
295  /// Check if it is safe to call GetSccLocalPath method.
296  ///
297  /// @return
298  /// - true, if the data member is getatable.
299  /// - false, otherwise.
300  bool CanGetSccLocalPath(void) const;
301 
302  /// Reset SccLocalPath data member.
303  void ResetSccLocalPath(void);
304 
305  /// Get the SccLocalPath member data.
306  ///
307  /// @return
308  /// Reference to the member data.
309  const TSccLocalPath& GetSccLocalPath(void) const;
310 
311  /// Assign a value to SccLocalPath data member.
312  ///
313  /// @param value
314  /// Value to assign
315  void SetSccLocalPath(const TSccLocalPath& value);
317 
318  /// Assign a value to SccLocalPath data member.
319  ///
320  /// @return
321  /// Reference to the data value.
323 
324  /// Check if a value has been assigned to Keyword data member.
325  ///
326  /// Data member Keyword is optional;
327  /// its type is defined as 'typedef string TKeyword'
328  /// @return
329  /// - true, if a value has been assigned.
330  /// - false, otherwise.
331  bool IsSetKeyword(void) const;
332 
333  /// Check if it is safe to call GetKeyword method.
334  ///
335  /// @return
336  /// - true, if the data member is getatable.
337  /// - false, otherwise.
338  bool CanGetKeyword(void) const;
339 
340  /// Reset Keyword data member.
341  void ResetKeyword(void);
342 
343  /// Get the Keyword member data.
344  ///
345  /// @return
346  /// Reference to the member data.
347  const TKeyword& GetKeyword(void) const;
348 
349  /// Assign a value to Keyword data member.
350  ///
351  /// @param value
352  /// Value to assign
353  void SetKeyword(const TKeyword& value);
354  void SetKeyword(TKeyword&& value);
355 
356  /// Assign a value to Keyword data member.
357  ///
358  /// @return
359  /// Reference to the data value.
360  TKeyword& SetKeyword(void);
361 
362  /// Check if a value has been assigned to ProjectGUID data member.
363  ///
364  /// Data member ProjectGUID is optional;
365  /// its type is defined as 'typedef string TProjectGUID'
366  /// @return
367  /// - true, if a value has been assigned.
368  /// - false, otherwise.
369  bool IsSetProjectGUID(void) const;
370 
371  /// Check if it is safe to call GetProjectGUID method.
372  ///
373  /// @return
374  /// - true, if the data member is getatable.
375  /// - false, otherwise.
376  bool CanGetProjectGUID(void) const;
377 
378  /// Reset ProjectGUID data member.
379  void ResetProjectGUID(void);
380 
381  /// Get the ProjectGUID member data.
382  ///
383  /// @return
384  /// Reference to the member data.
385  const TProjectGUID& GetProjectGUID(void) const;
386 
387  /// Assign a value to ProjectGUID data member.
388  ///
389  /// @param value
390  /// Value to assign
391  void SetProjectGUID(const TProjectGUID& value);
393 
394  /// Assign a value to ProjectGUID data member.
395  ///
396  /// @return
397  /// Reference to the data value.
399 
400  /// Check if a value has been assigned to RootNamespace data member.
401  ///
402  /// Data member RootNamespace is optional;
403  /// its type is defined as 'typedef string TRootNamespace'
404  /// @return
405  /// - true, if a value has been assigned.
406  /// - false, otherwise.
407  bool IsSetRootNamespace(void) const;
408 
409  /// Check if it is safe to call GetRootNamespace method.
410  ///
411  /// @return
412  /// - true, if the data member is getatable.
413  /// - false, otherwise.
414  bool CanGetRootNamespace(void) const;
415 
416  /// Reset RootNamespace data member.
417  void ResetRootNamespace(void);
418 
419  /// Get the RootNamespace member data.
420  ///
421  /// @return
422  /// Reference to the member data.
423  const TRootNamespace& GetRootNamespace(void) const;
424 
425  /// Assign a value to RootNamespace data member.
426  ///
427  /// @param value
428  /// Value to assign
431 
432  /// Assign a value to RootNamespace data member.
433  ///
434  /// @return
435  /// Reference to the data value.
437 
438  /// Reset the whole object
439  void Reset(void);
440 
441 
442  private:
443  // Prohibit copy constructor and assignment operator
446 
447  // data
450  string m_Version;
451  string m_Name;
454  string m_Keyword;
457  };
458  // types
462  typedef string TReferences;
463  typedef CFiles TFiles;
464  typedef string TGlobals;
465 
466  // member index
467  enum class E_memberIndex {
468  e__allMandatory = 0,
469  e_Attlist,
470  e_Platforms,
472  e_References,
473  e_Files,
474  e_Globals
475  };
477 
478  // getters
479  // setters
480 
481  /// Check if a value has been assigned to Attlist data member.
482  ///
483  /// Data member Attlist is mandatory;
484  /// its type is defined as 'typedef C_Attlist TAttlist'
485  /// @return
486  /// - true, if a value has been assigned.
487  /// - false, otherwise.
488  bool IsSetAttlist(void) const;
489 
490  /// Check if it is safe to call GetAttlist method.
491  ///
492  /// @return
493  /// - true, if the data member is getatable.
494  /// - false, otherwise.
495  bool CanGetAttlist(void) const;
496 
497  /// Reset Attlist data member.
498  void ResetAttlist(void);
499 
500  /// Get the Attlist member data.
501  ///
502  /// @return
503  /// Reference to the member data.
504  const TAttlist& GetAttlist(void) const;
505 
506  /// Assign a value to Attlist data member.
507  ///
508  /// @param value
509  /// Reference to value.
510  void SetAttlist(TAttlist& value);
511 
512  /// Assign a value to Attlist data member.
513  ///
514  /// @return
515  /// Reference to the data value.
516  TAttlist& SetAttlist(void);
517 
518  /// Check if a value has been assigned to Platforms data member.
519  ///
520  /// Data member Platforms is mandatory;
521  /// its type is defined as 'typedef CPlatforms TPlatforms'
522  /// @return
523  /// - true, if a value has been assigned.
524  /// - false, otherwise.
525  bool IsSetPlatforms(void) const;
526 
527  /// Check if it is safe to call GetPlatforms method.
528  ///
529  /// @return
530  /// - true, if the data member is getatable.
531  /// - false, otherwise.
532  bool CanGetPlatforms(void) const;
533 
534  /// Reset Platforms data member.
535  void ResetPlatforms(void);
536 
537  /// Get the Platforms member data.
538  ///
539  /// @return
540  /// Reference to the member data.
541  const TPlatforms& GetPlatforms(void) const;
542 
543  /// Assign a value to Platforms data member.
544  ///
545  /// @param value
546  /// Reference to value.
548 
549  /// Assign a value to Platforms data member.
550  ///
551  /// @return
552  /// Reference to the data value.
553  TPlatforms& SetPlatforms(void);
554 
555  /// Check if a value has been assigned to Configurations data member.
556  ///
557  /// Data member Configurations is mandatory;
558  /// its type is defined as 'typedef CConfigurations TConfigurations'
559  /// @return
560  /// - true, if a value has been assigned.
561  /// - false, otherwise.
562  bool IsSetConfigurations(void) const;
563 
564  /// Check if it is safe to call GetConfigurations method.
565  ///
566  /// @return
567  /// - true, if the data member is getatable.
568  /// - false, otherwise.
569  bool CanGetConfigurations(void) const;
570 
571  /// Reset Configurations data member.
572  void ResetConfigurations(void);
573 
574  /// Get the Configurations member data.
575  ///
576  /// @return
577  /// Reference to the member data.
578  const TConfigurations& GetConfigurations(void) const;
579 
580  /// Assign a value to Configurations data member.
581  ///
582  /// @param value
583  /// Reference to value.
585 
586  /// Assign a value to Configurations data member.
587  ///
588  /// @return
589  /// Reference to the data value.
591 
592  /// Check if a value has been assigned to References data member.
593  ///
594  /// Data member References is mandatory;
595  /// its type is defined as 'typedef string TReferences'
596  /// @return
597  /// - true, if a value has been assigned.
598  /// - false, otherwise.
599  bool IsSetReferences(void) const;
600 
601  /// Check if it is safe to call GetReferences method.
602  ///
603  /// @return
604  /// - true, if the data member is getatable.
605  /// - false, otherwise.
606  bool CanGetReferences(void) const;
607 
608  /// Reset References data member.
609  void ResetReferences(void);
610 
611  /// Get the References member data.
612  ///
613  /// @return
614  /// Reference to the member data.
615  const TReferences& GetReferences(void) const;
616 
617  /// Assign a value to References data member.
618  ///
619  /// @param value
620  /// Value to assign
621  void SetReferences(const TReferences& value);
623 
624  /// Assign a value to References data member.
625  ///
626  /// @return
627  /// Reference to the data value.
628  TReferences& SetReferences(void);
629 
630  /// Check if a value has been assigned to Files data member.
631  ///
632  /// Data member Files is mandatory;
633  /// its type is defined as 'typedef CFiles TFiles'
634  /// @return
635  /// - true, if a value has been assigned.
636  /// - false, otherwise.
637  bool IsSetFiles(void) const;
638 
639  /// Check if it is safe to call GetFiles method.
640  ///
641  /// @return
642  /// - true, if the data member is getatable.
643  /// - false, otherwise.
644  bool CanGetFiles(void) const;
645 
646  /// Reset Files data member.
647  void ResetFiles(void);
648 
649  /// Get the Files member data.
650  ///
651  /// @return
652  /// Reference to the member data.
653  const TFiles& GetFiles(void) const;
654 
655  /// Assign a value to Files data member.
656  ///
657  /// @param value
658  /// Reference to value.
659  void SetFiles(TFiles& value);
660 
661  /// Assign a value to Files data member.
662  ///
663  /// @return
664  /// Reference to the data value.
665  TFiles& SetFiles(void);
666 
667  /// Check if a value has been assigned to Globals data member.
668  ///
669  /// Data member Globals is mandatory;
670  /// its type is defined as 'typedef string TGlobals'
671  /// @return
672  /// - true, if a value has been assigned.
673  /// - false, otherwise.
674  bool IsSetGlobals(void) const;
675 
676  /// Check if it is safe to call GetGlobals method.
677  ///
678  /// @return
679  /// - true, if the data member is getatable.
680  /// - false, otherwise.
681  bool CanGetGlobals(void) const;
682 
683  /// Reset Globals data member.
684  void ResetGlobals(void);
685 
686  /// Get the Globals member data.
687  ///
688  /// @return
689  /// Reference to the member data.
690  const TGlobals& GetGlobals(void) const;
691 
692  /// Assign a value to Globals data member.
693  ///
694  /// @param value
695  /// Value to assign
696  void SetGlobals(const TGlobals& value);
697  void SetGlobals(TGlobals&& value);
698 
699  /// Assign a value to Globals data member.
700  ///
701  /// @return
702  /// Reference to the data value.
703  TGlobals& SetGlobals(void);
704 
705  /// Reset the whole object
706  virtual void Reset(void);
707 
708 
709 private:
710  // Prohibit copy constructor and assignment operator
713 
714  // data
719  string m_References;
721  string m_Globals;
722 };
723 
724 /* @} */
725 
726 
727 
728 
729 
730 ///////////////////////////////////////////////////////////
731 ///////////////////// inline methods //////////////////////
732 ///////////////////////////////////////////////////////////
733 inline
735 {
736  return ((m_set_State[0] & 0x3) != 0);
737 }
738 
739 inline
741 {
742  return IsSetProjectType();
743 }
744 
745 inline
747 {
748  if (!CanGetProjectType()) {
749  ThrowUnassigned(0);
750  }
751  return m_ProjectType;
752 }
753 
754 inline
756 {
757  m_ProjectType = value;
758  m_set_State[0] |= 0x3;
759 }
760 
761 inline
763 {
764  m_ProjectType = std::forward<CVisualStudioProject_Base::C_Attlist::TProjectType>(value);
765  m_set_State[0] |= 0x3;
766 }
767 
768 inline
770 {
771 #ifdef _DEBUG
772  if (!IsSetProjectType()) {
773  m_ProjectType = UnassignedString();
774  }
775 #endif
776  m_set_State[0] |= 0x1;
777  return m_ProjectType;
778 }
779 
780 inline
782 {
783  return ((m_set_State[0] & 0xc) != 0);
784 }
785 
786 inline
788 {
789  return IsSetVersion();
790 }
791 
792 inline
794 {
795  if (!CanGetVersion()) {
796  ThrowUnassigned(1);
797  }
798  return m_Version;
799 }
800 
801 inline
803 {
804  m_Version = value;
805  m_set_State[0] |= 0xc;
806 }
807 
808 inline
810 {
811  m_Version = std::forward<CVisualStudioProject_Base::C_Attlist::TVersion>(value);
812  m_set_State[0] |= 0xc;
813 }
814 
815 inline
817 {
818 #ifdef _DEBUG
819  if (!IsSetVersion()) {
820  m_Version = UnassignedString();
821  }
822 #endif
823  m_set_State[0] |= 0x4;
824  return m_Version;
825 }
826 
827 inline
829 {
830  return ((m_set_State[0] & 0x30) != 0);
831 }
832 
833 inline
835 {
836  return IsSetName();
837 }
838 
839 inline
841 {
842  if (!CanGetName()) {
843  ThrowUnassigned(2);
844  }
845  return m_Name;
846 }
847 
848 inline
850 {
851  m_Name = value;
852  m_set_State[0] |= 0x30;
853 }
854 
855 inline
857 {
858  m_Name = std::forward<CVisualStudioProject_Base::C_Attlist::TName>(value);
859  m_set_State[0] |= 0x30;
860 }
861 
862 inline
864 {
865 #ifdef _DEBUG
866  if (!IsSetName()) {
867  m_Name = UnassignedString();
868  }
869 #endif
870  m_set_State[0] |= 0x10;
871  return m_Name;
872 }
873 
874 inline
876 {
877  return ((m_set_State[0] & 0xc0) != 0);
878 }
879 
880 inline
882 {
883  return IsSetSccProjectName();
884 }
885 
886 inline
888 {
889  if (!CanGetSccProjectName()) {
890  ThrowUnassigned(3);
891  }
892  return m_SccProjectName;
893 }
894 
895 inline
897 {
898  m_SccProjectName = value;
899  m_set_State[0] |= 0xc0;
900 }
901 
902 inline
904 {
905  m_SccProjectName = std::forward<CVisualStudioProject_Base::C_Attlist::TSccProjectName>(value);
906  m_set_State[0] |= 0xc0;
907 }
908 
909 inline
911 {
912 #ifdef _DEBUG
913  if (!IsSetSccProjectName()) {
914  m_SccProjectName = UnassignedString();
915  }
916 #endif
917  m_set_State[0] |= 0x40;
918  return m_SccProjectName;
919 }
920 
921 inline
923 {
924  return ((m_set_State[0] & 0x300) != 0);
925 }
926 
927 inline
929 {
930  return IsSetSccLocalPath();
931 }
932 
933 inline
935 {
936  if (!CanGetSccLocalPath()) {
937  ThrowUnassigned(4);
938  }
939  return m_SccLocalPath;
940 }
941 
942 inline
944 {
945  m_SccLocalPath = value;
946  m_set_State[0] |= 0x300;
947 }
948 
949 inline
951 {
952  m_SccLocalPath = std::forward<CVisualStudioProject_Base::C_Attlist::TSccLocalPath>(value);
953  m_set_State[0] |= 0x300;
954 }
955 
956 inline
958 {
959 #ifdef _DEBUG
960  if (!IsSetSccLocalPath()) {
961  m_SccLocalPath = UnassignedString();
962  }
963 #endif
964  m_set_State[0] |= 0x100;
965  return m_SccLocalPath;
966 }
967 
968 inline
970 {
971  return ((m_set_State[0] & 0xc00) != 0);
972 }
973 
974 inline
976 {
977  return IsSetKeyword();
978 }
979 
980 inline
982 {
983  if (!CanGetKeyword()) {
984  ThrowUnassigned(5);
985  }
986  return m_Keyword;
987 }
988 
989 inline
991 {
992  m_Keyword = value;
993  m_set_State[0] |= 0xc00;
994 }
995 
996 inline
998 {
999  m_Keyword = std::forward<CVisualStudioProject_Base::C_Attlist::TKeyword>(value);
1000  m_set_State[0] |= 0xc00;
1001 }
1002 
1003 inline
1005 {
1006 #ifdef _DEBUG
1007  if (!IsSetKeyword()) {
1008  m_Keyword = UnassignedString();
1009  }
1010 #endif
1011  m_set_State[0] |= 0x400;
1012  return m_Keyword;
1013 }
1014 
1015 inline
1017 {
1018  return ((m_set_State[0] & 0x3000) != 0);
1019 }
1020 
1021 inline
1023 {
1024  return IsSetProjectGUID();
1025 }
1026 
1027 inline
1029 {
1030  if (!CanGetProjectGUID()) {
1031  ThrowUnassigned(6);
1032  }
1033  return m_ProjectGUID;
1034 }
1035 
1036 inline
1038 {
1039  m_ProjectGUID = value;
1040  m_set_State[0] |= 0x3000;
1041 }
1042 
1043 inline
1045 {
1046  m_ProjectGUID = std::forward<CVisualStudioProject_Base::C_Attlist::TProjectGUID>(value);
1047  m_set_State[0] |= 0x3000;
1048 }
1049 
1050 inline
1052 {
1053 #ifdef _DEBUG
1054  if (!IsSetProjectGUID()) {
1055  m_ProjectGUID = UnassignedString();
1056  }
1057 #endif
1058  m_set_State[0] |= 0x1000;
1059  return m_ProjectGUID;
1060 }
1061 
1062 inline
1064 {
1065  return ((m_set_State[0] & 0xc000) != 0);
1066 }
1067 
1068 inline
1070 {
1071  return IsSetRootNamespace();
1072 }
1073 
1074 inline
1076 {
1077  if (!CanGetRootNamespace()) {
1078  ThrowUnassigned(7);
1079  }
1080  return m_RootNamespace;
1081 }
1082 
1083 inline
1085 {
1086  m_RootNamespace = value;
1087  m_set_State[0] |= 0xc000;
1088 }
1089 
1090 inline
1092 {
1093  m_RootNamespace = std::forward<CVisualStudioProject_Base::C_Attlist::TRootNamespace>(value);
1094  m_set_State[0] |= 0xc000;
1095 }
1096 
1097 inline
1099 {
1100 #ifdef _DEBUG
1101  if (!IsSetRootNamespace()) {
1102  m_RootNamespace = UnassignedString();
1103  }
1104 #endif
1105  m_set_State[0] |= 0x4000;
1106  return m_RootNamespace;
1107 }
1108 
1109 inline
1111 {
1112  return m_Attlist.NotEmpty();
1113 }
1114 
1115 inline
1117 {
1118  return true;
1119 }
1120 
1121 inline
1123 {
1124  if ( !m_Attlist ) {
1125  const_cast<CVisualStudioProject_Base*>(this)->ResetAttlist();
1126  }
1127  return (*m_Attlist);
1128 }
1129 
1130 inline
1132 {
1133  if ( !m_Attlist ) {
1134  ResetAttlist();
1135  }
1136  return (*m_Attlist);
1137 }
1138 
1139 inline
1141 {
1142  return m_Platforms.NotEmpty();
1143 }
1144 
1145 inline
1147 {
1148  return true;
1149 }
1150 
1151 inline
1153 {
1154  if ( !m_Platforms ) {
1155  const_cast<CVisualStudioProject_Base*>(this)->ResetPlatforms();
1156  }
1157  return (*m_Platforms);
1158 }
1159 
1160 inline
1162 {
1163  if ( !m_Platforms ) {
1164  ResetPlatforms();
1165  }
1166  return (*m_Platforms);
1167 }
1168 
1169 inline
1171 {
1172  return m_Configurations.NotEmpty();
1173 }
1174 
1175 inline
1177 {
1178  return true;
1179 }
1180 
1181 inline
1183 {
1184  if ( !m_Configurations ) {
1185  const_cast<CVisualStudioProject_Base*>(this)->ResetConfigurations();
1186  }
1187  return (*m_Configurations);
1188 }
1189 
1190 inline
1192 {
1193  if ( !m_Configurations ) {
1195  }
1196  return (*m_Configurations);
1197 }
1198 
1199 inline
1201 {
1202  return ((m_set_State[0] & 0xc0) != 0);
1203 }
1204 
1205 inline
1207 {
1208  return IsSetReferences();
1209 }
1210 
1211 inline
1213 {
1214  if (!CanGetReferences()) {
1215  ThrowUnassigned(3);
1216  }
1217  return m_References;
1218 }
1219 
1220 inline
1222 {
1223  m_References = value;
1224  m_set_State[0] |= 0xc0;
1225 }
1226 
1227 inline
1229 {
1230  m_References = std::forward<CVisualStudioProject_Base::TReferences>(value);
1231  m_set_State[0] |= 0xc0;
1232 }
1233 
1234 inline
1236 {
1237 #ifdef _DEBUG
1238  if (!IsSetReferences()) {
1240  }
1241 #endif
1242  m_set_State[0] |= 0x40;
1243  return m_References;
1244 }
1245 
1246 inline
1248 {
1249  return m_Files.NotEmpty();
1250 }
1251 
1252 inline
1254 {
1255  return true;
1256 }
1257 
1258 inline
1260 {
1261  if ( !m_Files ) {
1262  const_cast<CVisualStudioProject_Base*>(this)->ResetFiles();
1263  }
1264  return (*m_Files);
1265 }
1266 
1267 inline
1269 {
1270  if ( !m_Files ) {
1271  ResetFiles();
1272  }
1273  return (*m_Files);
1274 }
1275 
1276 inline
1278 {
1279  return ((m_set_State[0] & 0xc00) != 0);
1280 }
1281 
1282 inline
1284 {
1285  return IsSetGlobals();
1286 }
1287 
1288 inline
1290 {
1291  if (!CanGetGlobals()) {
1292  ThrowUnassigned(5);
1293  }
1294  return m_Globals;
1295 }
1296 
1297 inline
1299 {
1300  m_Globals = value;
1301  m_set_State[0] |= 0xc00;
1302 }
1303 
1304 inline
1306 {
1307  m_Globals = std::forward<CVisualStudioProject_Base::TGlobals>(value);
1308  m_set_State[0] |= 0xc00;
1309 }
1310 
1311 inline
1313 {
1314 #ifdef _DEBUG
1315  if (!IsSetGlobals()) {
1317  }
1318 #endif
1319  m_set_State[0] |= 0x400;
1320  return m_Globals;
1321 }
1322 
1323 ///////////////////////////////////////////////////////////
1324 ////////////////// end of inline methods //////////////////
1325 ///////////////////////////////////////////////////////////
1326 
1327 
1328 
1329 
1330 
1331 END_objects_SCOPE // namespace ncbi::objects::
1332 
1334 
1335 
1336 #endif // BUILD_SYSTEM_PROJECT_TREE_BUILDER_VISUALSTUDIOPROJECT_BASE_HPP
CConfigurations –.
CFiles –.
Definition: Files.hpp:66
CPlatforms –.
Definition: Platforms.hpp:66
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
CVisualStudioProject_Base –.
char value[7]
Definition: config.c:431
void ThrowUnassigned(TMemberIndex index) const
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
bool IsSetProjectGUID(void) const
Check if a value has been assigned to ProjectGUID data member.
CRef< TConfigurations > m_Configurations
TConfigurations & SetConfigurations(void)
Assign a value to Configurations data member.
bool IsSetSccProjectName(void) const
Check if a value has been assigned to SccProjectName data member.
void ResetName(void)
Reset Name data member.
virtual void Reset(void)
Reset the whole object.
TSccLocalPath & SetSccLocalPath(void)
Assign a value to SccLocalPath data member.
void ResetProjectGUID(void)
Reset ProjectGUID data member.
void Reset(void)
Reset the whole object.
TProjectGUID & SetProjectGUID(void)
Assign a value to ProjectGUID data member.
void ResetFiles(void)
Reset Files data member.
void ResetSccProjectName(void)
Reset SccProjectName data member.
const TRootNamespace & GetRootNamespace(void) const
Get the RootNamespace member data.
bool IsSetName(void) const
Check if a value has been assigned to Name data member.
CVisualStudioProject_Base(const CVisualStudioProject_Base &)
void ResetAttlist(void)
Reset Attlist data member.
bool IsSetFiles(void) const
Check if a value has been assigned to Files data member.
bool CanGetReferences(void) const
Check if it is safe to call GetReferences method.
TProjectType & SetProjectType(void)
Assign a value to ProjectType data member.
const TProjectType & GetProjectType(void) const
Get the ProjectType member data.
void ResetRootNamespace(void)
Reset RootNamespace data member.
const TProjectGUID & GetProjectGUID(void) const
Get the ProjectGUID member data.
TPlatforms & SetPlatforms(void)
Assign a value to Platforms data member.
TSccProjectName & SetSccProjectName(void)
Assign a value to SccProjectName data member.
const TSccProjectName & GetSccProjectName(void) const
Get the SccProjectName member data.
TVersion & SetVersion(void)
Assign a value to Version data member.
const TConfigurations & GetConfigurations(void) const
Get the Configurations member data.
bool CanGetName(void) const
Check if it is safe to call GetName method.
TRootNamespace & SetRootNamespace(void)
Assign a value to RootNamespace data member.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
const TFiles & GetFiles(void) const
Get the Files member data.
bool IsSetProjectType(void) const
Check if a value has been assigned to ProjectType data member.
TName & SetName(void)
Assign a value to Name data member.
bool CanGetProjectType(void) const
Check if it is safe to call GetProjectType method.
Tparent::CMemberIndex< E_memberIndex, 7 > TmemberIndex
bool IsSetVersion(void) const
Check if a value has been assigned to Version data member.
bool CanGetSccLocalPath(void) const
Check if it is safe to call GetSccLocalPath method.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
bool CanGetSccProjectName(void) const
Check if it is safe to call GetSccProjectName method.
TFiles & SetFiles(void)
Assign a value to Files data member.
const TVersion & GetVersion(void) const
Get the Version member data.
bool IsSetConfigurations(void) const
Check if a value has been assigned to Configurations data member.
const TSccLocalPath & GetSccLocalPath(void) const
Get the SccLocalPath member data.
CVisualStudioProject_Base & operator=(const CVisualStudioProject_Base &)
C_Attlist & operator=(const C_Attlist &)
bool IsSetRootNamespace(void) const
Check if a value has been assigned to RootNamespace data member.
void ResetKeyword(void)
Reset Keyword data member.
bool CanGetFiles(void) const
Check if it is safe to call GetFiles method.
void ResetVersion(void)
Reset Version data member.
bool CanGetProjectGUID(void) const
Check if it is safe to call GetProjectGUID method.
void ResetSccLocalPath(void)
Reset SccLocalPath data member.
void ResetGlobals(void)
Reset Globals data member.
bool CanGetGlobals(void) const
Check if it is safe to call GetGlobals method.
const TGlobals & GetGlobals(void) const
Get the Globals member data.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
const TReferences & GetReferences(void) const
Get the References member data.
bool CanGetRootNamespace(void) const
Check if it is safe to call GetRootNamespace method.
bool CanGetKeyword(void) const
Check if it is safe to call GetKeyword method.
TReferences & SetReferences(void)
Assign a value to References data member.
bool IsSetReferences(void) const
Check if a value has been assigned to References data member.
bool IsSetKeyword(void) const
Check if a value has been assigned to Keyword data member.
bool CanGetConfigurations(void) const
Check if it is safe to call GetConfigurations method.
bool CanGetVersion(void) const
Check if it is safe to call GetVersion method.
TGlobals & SetGlobals(void)
Assign a value to Globals data member.
void ResetReferences(void)
Reset References data member.
void ResetPlatforms(void)
Reset Platforms data member.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
Tparent::CMemberIndex< E_memberIndex, 9 > TmemberIndex
bool IsSetGlobals(void) const
Check if a value has been assigned to Globals data member.
bool CanGetPlatforms(void) const
Check if it is safe to call GetPlatforms method.
const TName & GetName(void) const
Get the Name member data.
const TPlatforms & GetPlatforms(void) const
Get the Platforms member data.
TKeyword & SetKeyword(void)
Assign a value to Keyword data member.
bool IsSetPlatforms(void) const
Check if a value has been assigned to Platforms data member.
const TKeyword & GetKeyword(void) const
Get the Keyword member data.
void ResetProjectType(void)
Reset ProjectType data member.
void ResetConfigurations(void)
Reset Configurations data member.
bool IsSetSccLocalPath(void) const
Check if a value has been assigned to SccLocalPath data member.
Modified on Thu Feb 29 12:20:27 2024 by modify_doxy.py rev. 669887