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

Go to the SVN repository for this file.

1 /* $Id: GBenchVersionInfo.hpp 21410 2010-05-19 23:01:10Z voronov $
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 GBenchVersionInfo.hpp
29 /// User-defined methods of the data storage class.
30 ///
31 /// This file was originally generated by application DATATOOL
32 /// using the following specifications:
33 /// 'gbench_svc.asn'.
34 ///
35 /// New methods or data members can be added to it if needed.
36 /// See also: GBenchVersionInfo_.hpp
37 
38 
39 #ifndef GUI_CORE_GBENCHVERSIONINFO_HPP
40 #define GUI_CORE_GBENCHVERSIONINFO_HPP
41 
42 
43 // generated includes
45 
46 // generated classes
47 
49 
50 class CGBenchVersion;
51 
52 BEGIN_objects_SCOPE // namespace ncbi::objects::
53 
54 /////////////////////////////////////////////////////////////////////////////
56 {
58 public:
59  // constructor
60  CGBenchVersionInfo(void);
61  // destructor
62  ~CGBenchVersionInfo(void);
63 
64  /// Format a label for this version
65  void GetLabel(string* str) const;
66 
67  /// retrieve just the version info
68  void GetVersionString(string* str) const;
69  void AddVersionString(string* str) const;
70 
71  void GetOsString(string* str) const;
72  void AddOsString(string* str) const;
73 
74  /// Forced to make this method public as far as friend declaration
75  /// does not work on Linux.
76  static void Initialize( size_t ver_major, size_t ver_minor, size_t ver_patch_level );
77 
78 private:
79  static TVer_major major;
80  static TVer_minor minor;
81  static TVer_patch patch;
82  static TOs_ver osver;
83  // Commented out until cgi update on server
84  // static TOs_arch osarch;
85  static int osarch;
86  static bool sInitialized;
87 
88  // Prohibit copy constructor and assignment operator
91 
92 };
93 
94 
96 bool operator<(const CGBenchVersionInfo& v1, const CGBenchVersionInfo& v2);
97 
98 
99 /////////////////// end of CGBenchVersionInfo inline methods
100 
101 
102 END_objects_SCOPE // namespace ncbi::objects::
103 
105 
106 #endif // GUI_CORE_GBENCHVERSIONINFO_HPP
107 /* Original file checksum: lines: 94, chars: 2712, CRC32: ed968fd */
bool operator<(const CGBenchVersionInfo &v1, const CGBenchVersionInfo &v2)
Data storage class.
CGBenchVersionInfo_Base –.
static TVer_minor minor
static TVer_major major
static TVer_patch patch
CGBenchVersionInfo(const CGBenchVersionInfo &value)
CGBenchVersionInfo & operator=(const CGBenchVersionInfo &value)
CGBenchVersionInfo_Base Tparent
static const char * str(char *buf, int n)
Definition: stats.c:84
const CVect2< U > & v2
Definition: globals.hpp:440
string GetLabel(const CSeq_id &id)
#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_GUIOBJECTS_EXPORT
Definition: gui_export.h:511
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed Jun 19 17:01:33 2024 by modify_doxy.py rev. 669887