ITK Function Reference

(V10000.1.0.60_20160308.00)
tccalendar.h
Go to the documentation of this file.
1  /*@<COPYRIGHT_START>@
2  ===============================================
3  Copyright 2006 UGS Corp. All Rights Reserved.
4  ===============================================
5  @<COPYRIGHT_END>@*/
6 
7 
14 #ifndef TCCALENDAR_H
15 #define TCCALENDAR_H
16 
17 #include <unidefs.h>
18 #include <sa/sa.h>
19 #include <sa/libsa_exports.h>
20 
21 
22 #ifdef __cplusplus
23  extern "C"{
24 #endif
25 
34 #define TCCALENDAR_name_size_c 256
35 
40  int tccal_type,
41  tag_t base_calendar,
42  tag_t schedule,
43  tag_t resource,
44  const char* tccal_name,
45  const char* tccal_desc,
46  int num_sun_ranges,
47  tag_t * sun_ranges,
48  int num_mon_ranges,
49  tag_t * mon_ranges,
50  int num_tue_ranges,
51  tag_t * tue_ranges,
52  int num_wed_ranges,
53  tag_t * wed_ranges,
54  int num_thu_ranges,
55  tag_t * thu_ranges,
56  int num_fri_ranges,
57  tag_t * fri_ranges,
58  int num_sat_ranges,
59  tag_t * sat_ranges,
60  const char* time_zone,
61  tag_t* newtccalendar
62  );
63 
67 extern SA_API int TCCALENDAR_delete_tccalendar (
68  tag_t tccalendar
69  );
70 
74 extern SA_API int TCCALENDAR_get_base_tccalendar (
75  tag_t* tccalendar
76  );
77 
81 extern SA_API int TCCALENDAR_get_resource_tccalendar(
82  tag_t resource,
83  tag_t* tccalendar
84  );
85 
89 extern SA_API int TCCALENDAR_get_schedule_tccalendar(
90  tag_t schedule,
91  tag_t* tccalendar
92  );
93 
100 extern SA_API int TCCALENDAR_get_tccalendar_by_name(
101  const char tccalname[SA_user_size_c + 1],
102  tag_t* tccalendar
103  );
104 
108 extern SA_API int TCCALENDAR_get_tccalendar_by_name2(
109  const char *tccalname,
110  tag_t* tccalendar
111  );
112 
116 extern SA_API int TCCALENDAR_get_tccalendar_name(
117  tag_t tccal,
118  char ** tccalName
119  );
120 
124 extern SA_API int TCCALENDAR_update_tccalendar (
125  tag_t tccalendar,
126  int num_sun_ranges,
127  tag_t * sun_ranges,
128  int num_mon_ranges,
129  tag_t * mon_ranges,
130  int num_tue_ranges,
131  tag_t * tue_ranges,
132  int num_wed_ranges,
133  tag_t * wed_ranges,
134  int num_thu_ranges,
135  tag_t * thu_ranges,
136  int num_fri_ranges,
137  tag_t * fri_ranges,
138  int num_sat_ranges,
139  tag_t * sat_ranges
140  );
141 
147  tag_t resource,
148  char *fromDate,
149  char *toDate,
150  int *no_of_nonwd,
151  char ***nonWorkingDates
152  );
153 
170 extern SA_API int TCCALENDAR_find_end_date (
171  date_t start_date,
172  tag_t user_tag,
174  unsigned int years,
175  unsigned int weeks,
176  unsigned int days,
177  unsigned int hours,
178  unsigned int minutes,
179  date_t* end_date
180  );
181 
182 #ifdef __cplusplus
183 }
184 #endif
185 
186 #include <sa/libsa_undef.h>
187 #endif