summaryrefslogtreecommitdiff
path: root/inc/Storage_HeaderData.hxx
blob: 97da8e0edeebbd72104044d5cb93872d24af75ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Storage_HeaderData_HeaderFile
#define _Storage_HeaderData_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Storage_HeaderData_HeaderFile
#include <Handle_Storage_HeaderData.hxx>
#endif

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _TCollection_AsciiString_HeaderFile
#include <TCollection_AsciiString.hxx>
#endif
#ifndef _TCollection_ExtendedString_HeaderFile
#include <TCollection_ExtendedString.hxx>
#endif
#ifndef _TColStd_SequenceOfAsciiString_HeaderFile
#include <TColStd_SequenceOfAsciiString.hxx>
#endif
#ifndef _TColStd_SequenceOfExtendedString_HeaderFile
#include <TColStd_SequenceOfExtendedString.hxx>
#endif
#ifndef _Storage_Error_HeaderFile
#include <Storage_Error.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
class Storage_Schema;
class TCollection_AsciiString;
class TCollection_ExtendedString;
class TColStd_SequenceOfAsciiString;
class TColStd_SequenceOfExtendedString;



class Storage_HeaderData : public MMgt_TShared {

public:

  
  Standard_EXPORT   Storage_HeaderData();
  //! return the creation date <br>
  Standard_EXPORT     TCollection_AsciiString CreationDate() const;
  //! return the Storage package version <br>
  Standard_EXPORT     TCollection_AsciiString StorageVersion() const;
  //! get the version of the schema <br>
  Standard_EXPORT     TCollection_AsciiString SchemaVersion() const;
  //! get the schema's name <br>
  Standard_EXPORT     TCollection_AsciiString SchemaName() const;
  //! set the version of the application <br>
  Standard_EXPORT     void SetApplicationVersion(const TCollection_AsciiString& aVersion) ;
  //! get the version of the application <br>
  Standard_EXPORT     TCollection_AsciiString ApplicationVersion() const;
  //! set the name of the application <br>
  Standard_EXPORT     void SetApplicationName(const TCollection_ExtendedString& aName) ;
  //! get the name of the application <br>
  Standard_EXPORT     TCollection_ExtendedString ApplicationName() const;
  //! set the data type <br>
  Standard_EXPORT     void SetDataType(const TCollection_ExtendedString& aType) ;
  //! returns data type <br>
  Standard_EXPORT     TCollection_ExtendedString DataType() const;
  //! add <theUserInfo> to the user informations <br>
  Standard_EXPORT     void AddToUserInfo(const TCollection_AsciiString& theUserInfo) ;
  //! return the user informations <br>
  Standard_EXPORT    const TColStd_SequenceOfAsciiString& UserInfo() const;
  //! add <theUserInfo> to the user informations <br>
  Standard_EXPORT     void AddToComments(const TCollection_ExtendedString& aComment) ;
  //! return the user informations <br>
  Standard_EXPORT    const TColStd_SequenceOfExtendedString& Comments() const;
  //! the the number of persistent objects <br>
//!  Return: <br>
//!   the number of persistent objects readed <br>
  Standard_EXPORT     Standard_Integer NumberOfObjects() const;
  
  Standard_EXPORT     Storage_Error ErrorStatus() const;
  
  Standard_EXPORT     TCollection_AsciiString ErrorStatusExtension() const;
  
  Standard_EXPORT     void ClearErrorStatus() ;


friend class Storage_Schema;


  DEFINE_STANDARD_RTTI(Storage_HeaderData)

protected:




private: 

  
  Standard_EXPORT     void SetNumberOfObjects(const Standard_Integer anObjectNumber) ;
  
  Standard_EXPORT     void SetStorageVersion(const TCollection_AsciiString& aVersion) ;
  
  Standard_EXPORT     void SetCreationDate(const TCollection_AsciiString& aDate) ;
  
  Standard_EXPORT     void SetSchemaVersion(const TCollection_AsciiString& aVersion) ;
  
  Standard_EXPORT     void SetSchemaName(const TCollection_AsciiString& aName) ;
  
  Standard_EXPORT     void SetErrorStatus(const Storage_Error anError) ;
  
  Standard_EXPORT     void SetErrorStatusExtension(const TCollection_AsciiString& anErrorExt) ;

Standard_Integer myNBObj;
TCollection_AsciiString myStorageVersion;
TCollection_AsciiString mySchemaVersion;
TCollection_AsciiString mySchemaName;
TCollection_AsciiString myApplicationVersion;
TCollection_ExtendedString myApplicationName;
TCollection_ExtendedString myDataType;
TCollection_AsciiString myDate;
TColStd_SequenceOfAsciiString myUserInfo;
TColStd_SequenceOfExtendedString myComments;
Storage_Error myErrorStatus;
TCollection_AsciiString myErrorStatusExt;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif