ITK Function Reference

(V10000.1.0.60_20160308.00)
report.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
13 /* */
14 
15 #ifndef REPORT_H
16 #define REPORT_H
17 
18 #include <fclasses/tc_string.h>
19 #include <fclasses/tc_time.h>
20 #include <tc/tc_startup.h>
21 #include <sa/tcfile.h>
22 #include <tccore/workspaceobject.h>
23 #include <ae/ae.h>
24 #include <sa/sa.h>
25 #include <tc/folder.h>
26 #include <ss/ss_const.h>
27 #include <fclasses/tc_stat.h>
28 #include <fclasses/tc_errno.h>
29 #include <fclasses/tc_stdlib.h>
30 #include <fclasses/tc_stdio.h>
31 #include <epm/cr.h>
32 
40 #define NEW_PAGE 64
41 
42 #define EMPTY -1
43 
44 #define ITEM 0
45 #define ITEMREVISION 1
46 
51 #define NULLERR -11
52 #define NO_HDR 0
53 #define NEWPAGE_HDR 1
54 #define ADMIN_HDR 2
55 #define INFO_HDR 3
56 #define NULL_STRING "\0"
57 
60 #define WSOM_name "Name"
61 
65 #define WSOM_item_id "ID"
66 
70 #define WSOM_revision_id "Revision"
71 
72 #define WSOM_description "Description"
73 #define WSOM_date_created "Date Created"
74 #define WSOM_group "Group ID"
75 
80 #define WSOM_release_date "Date Released"
81 #define WSOM_application "Application"
82 #define WSOM_classn "Classification"
83 #define WSOM_owner "Owner ID"
84 #define WSOM_rel_status "Release Status"
85 #define WSOM_obj_type "Type"
86 #define WSOM_version "Version Number"
87 
92 #define REP10_spec_folder "Specification Folder"
93 
94 typedef struct report_entry
95 {
96  const char* attr;
97  int index;
98  int indent;
99  int width;
100  int n_char;
101 } report_entry;
102 
103 
105 typedef struct admindata_s {
112 }AdminData;
113 
115 typedef struct report13_s{
120 
121 #include <user_exits/libuser_exits_exports.h>
122 
123 #ifdef __cplusplus
124  extern "C"{
125 #endif
126 
127 extern USER_EXITS_API void USER_set_print_hdr_flag(int flag);
128 
129 extern USER_EXITS_API void USER_set_head_width(int width);
130 
131 extern USER_EXITS_API void USER_set_rep4_header(const char *headerString, int index);
132 
134 extern USER_EXITS_API void USER_set_rep8_group(const char *group_name);
135 
137 extern USER_EXITS_API void USER_set_rep_group_name(const char *group_name);
138 
140 extern USER_EXITS_API void USER_set_rep_owner_name(const char *owner_name);
141 
142 extern USER_EXITS_API int NonReleased_Item_Report (void);
143 
148 extern USER_EXITS_API int Released_Item_Report (
149  logical prompt_for_input,
150  const char* tasktype_name
151  );
152 
157 extern USER_EXITS_API int Employee_Sum_Report (
158  logical prompt_for_input,
159  int attr_ct,
160  int* attr_array
161  );
162 
167 extern USER_EXITS_API int Item_Summary_Report (void);
168 
173 extern USER_EXITS_API int By_Proj_Item_Summary_Report (void);
174 
179 extern USER_EXITS_API int Users_and_Release_Levels_Report (
180  const char* group_name
181  );
182 
187 extern USER_EXITS_API int Access_Levels_Report (
188  const char* group_name
189  );
190 
195 extern USER_EXITS_API int Mass_Storage_Report (
196  const char* owner_name,
197  const char* group_name
198  );
199 
204 extern USER_EXITS_API int Object_Inquiry (
205  const char* item_folder_id,
206  const char* item_version_id
207  );
208 
209 extern USER_EXITS_API int Object_Search (
210  tag_t ivf_tag
211  );
212 
217 extern USER_EXITS_API int ItemsByDataset (
218  const char* dsetName,
219  const char* dsetType,
220  const char* owner_name,
221  const char* group_name
222  );
223 
224 extern USER_EXITS_API int Get_Item_AdminData(
225  tag_t dset_tag,
226  WSO_descriptor_t info,
227  AdminData* admin_data
228  );
229 
234 extern USER_EXITS_API int Object_By_Group(
235  char* group_name
236  );
237 
245 extern USER_EXITS_API int Job_Status(
246  char* job_name
247  );
248 
256 extern USER_EXITS_API int Import_Export_Report(
257  const char* reportStr
258  );
259 
260 
265 extern USER_EXITS_API void store_entry_index (
266  WSO_descriptor_t* info,
267  report_entry* ps,
268  int n_limit
269  );
270 
271 extern USER_EXITS_API int print_report (
272  WSO_descriptor_t* info,
273  report_entry* ps,
274  int n_limit,
275  int align_mode
276  );
277 
278 extern USER_EXITS_API int print_a_row (
279  char* arow,
280  report_entry* ps,
281  int n_limit
282  );
283 
284 extern USER_EXITS_API char* infoman_itoa (
285  int n
286  );
287 
288 extern USER_EXITS_API void setNewReport(void);
289 
290 extern USER_EXITS_API void setReportOption(
291  int rpt_option_in
292  );
293 
294 extern USER_EXITS_API void setOutputDevice(
295  FILE* device_out
296  );
297 
298 extern USER_EXITS_API FILE* getOutputDevice(void);
299 
300 extern USER_EXITS_API void Print_Item_AdminData(
301  AdminData admin_data,
302  report_entry* ps,
303  int n_limit
304  );
305 
308 #ifdef __cplusplus
309 }
310 #endif
311 
312 #include <user_exits/libuser_exits_undef.h>
313 
314 #endif