NCBI C++ ToolKit
ProjectDescr.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: ProjectDescr.cpp 59444 2013-08-26 17:38:09Z rafanovi $
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  * Author: .......
27  *
28  * File Description:
29  * .......
30  *
31  * Remark:
32  * This code was originally generated by application DATATOOL
33  * using the following specifications:
34  * 'gbproj.asn'.
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 
40 // generated includes
42 
43 // generated classes
44 
46 
47 BEGIN_objects_SCOPE // namespace ncbi::objects::
48 
49 // destructor
51 {
52 }
53 
54 
55 /// SetCreateDate() will add a descriptor for creation date
57 {
58  CDate date(time);
59  SetCreateDate(date);
60 }
61 
62 
64 {
65  SetCreate_date().Assign(date);
66 }
67 
69 {
70  return GetCreate_date().AsCTime();
71 }
72 
73 
74 /// SetModifiedDate() will add a descriptor for the update date
76 {
77  CDate date(time);
78  SetModifiedDate(date);
79 }
80 
81 
83 {
84  SetModified_date().Assign(date);
85 }
86 
87 
89 {
90  if (IsSetModified_date()) {
91  return GetModified_date().AsCTime();
92  } else {
93  return GetCreate_date().AsCTime();
94  }
95 }
96 
97 
98 
99 END_objects_SCOPE // namespace ncbi::objects::
100 
102 
103 /* Original file checksum: lines: 57, chars: 1731, CRC32: 3c6d5f70 */
User-defined methods of the data storage class.
Definition: Date.hpp:53
CTime AsCTime(CTime::ETimeZone tz=CTime::eLocal) const
Definition: Date.cpp:70
void SetCreateDate(const CTime &time)
SetCreateDate() will add a descriptor for creation date.
CTime GetModifiedDate() const
CTime GetCreateDate() const
~CProjectDescr(void)
void SetModifiedDate(const CTime &time)
SetModifiedDate() will add a descriptor for the update date.
CTime –.
Definition: ncbitime.hpp:296
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const TCreate_date & GetCreate_date(void) const
Get the Create_date member data.
bool IsSetModified_date(void) const
Check if a value has been assigned to Modified_date data member.
TModified_date & SetModified_date(void)
Assign a value to Modified_date data member.
const TModified_date & GetModified_date(void) const
Get the Modified_date member data.
TCreate_date & SetCreate_date(void)
Assign a value to Create_date data member.
Modified on Sat Dec 02 09:22:38 2023 by modify_doxy.py rev. 669887