ITK Function Reference

(V10000.1.0.60_20160308.00)
workspaceobject.h
Go to the documentation of this file.
1 /* Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
2  ==================================================
3  Copyright $2014.
4  Siemens Product Lifecycle Management Software Inc.
5  All Rights Reserved.
6  ==================================================
7  Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved. */
8 
16 /* */
17 
18 #ifndef WORKSPACEOBJECT_H
19 #define WORKSPACEOBJECT_H
20 
21 #include <tc/tc_startup.h>
22 #include <tccore/libtccore_exports.h>
23 
143 #define WSO_name_size_c 128
144 #define TC_LEGACY_ID_NAME_SIZE 32
145 
147 #define WSO_desc_size_c 240
148 
149 #define WSO_date_size_c 21
150 #define WSO_object_type_size_c 32
151 #define WSO_revision_size_c 15
152 #define WSO_release_status_size_c 128
153 
154 #define WSO_ip_class_size_c 128
155 #define WSO_gov_class_size_c 128
156 
162 #define WSO_where_ref_any_depth -1
163 
168 #define RLM_tasktype_name_size_c 32
169 #define RLM_tasktype_desc_size_c 32
170 #define RLM_followup_action_size_c 32
171 
176 #define Describe_object_name 0x1
177 #define Describe_object_type 0x2
178 #define Describe_owner 0x4
179 #define Describe_application 0x8
180 #define Describe_date_created 0x10
181 #define Describe_date_modified 0x20
182 #define Describe_date_released 0x40
183 #define Describe_released_for 0x80
184 #define Describe_id_string 0x100
185 #define Describe_revision_number 0x200
186 #define Describe_revision_limit 0x400
187 #define Describe_owning_group 0x800
188 #define Describe_last_mod_user 0x1000
189 #define Describe_archive_date 0x2000
190 #define Describe_backup_date 0x4000
191 #define Describe_description 0x8000
192 #define Describe_is_frozen 0x10000
193 #define Describe_is_reserved 0x20000
194 #define Describe_revision_id 0x40000
195 #define Describe_owning_site 0x80000
196 
208 typedef struct WSO_description_s {
211 
214 
219 
234 
238 typedef struct WSO_search_criteria_s{
244  int revision;
253  int scope;
255 
256 #define WSO_search_HOR 0
257 #define WSO_search_Vault 1
258 
282 typedef struct WSO_get_info_entry_s {
283  char name[WSO_name_size_c + 1];
284  int size;
285  char* value;
286  char desc[32];
287  int p_flag;
289  int m_flag;
290  void* client_data;
295 
306 typedef struct WSO_descriptor_s {
307  int m_flag;
310  int n_entries;
313 
318 typedef struct WSO_status_s {
326 } WSO_status_t;
327 
336 
343 typedef enum WSOM_range_type_e {
349 
351 typedef struct WSOM_effectivity_info_s {
353  int unitCount;
354  int* units;
355  int dateCount;
359 
360 #ifdef __cplusplus
361 extern "C"{
362 #endif
363 
364 extern TCCORE_API int WSOM_init_module();
365 
366 extern TCCORE_API int WSOM_exit_module();
367 
372 extern TCCORE_API int WSOM_extent(
373  int* n_instances,
374  tag_t** instances
375  );
376 
384 extern TCCORE_API int WSOM_initialize(
385  tag_t a_WSO_tag,
386  const char a_name[WSO_name_size_c + 1],
387  const char a_description[WSO_desc_size_c + 1]
388  );
389 
394 extern TCCORE_API int WSOM_initialize2(
395  tag_t a_WSO_tag,
396  const char *a_name,
397  const char *a_description
398  );
399 
410 extern TCCORE_API int WSOM_set_name(
411  tag_t a_WSO_tag,
412  const char new_name[WSO_name_size_c + 1]
413  );
414 
422 extern TCCORE_API int WSOM_set_name2(
423  tag_t a_WSO_tag,
424  const char *new_name
425  );
426 
433 extern TCCORE_API int WSOM_ask_name(
434  tag_t a_WSO_tag,
435  char a_name[WSO_name_size_c + 1]
436  );
437 
441 extern TCCORE_API int WSOM_ask_name2(
442  tag_t a_WSO_tag,
443  char **a_name
444  );
445 
452 extern TCCORE_API int WSOM_ask_id_string(
453  tag_t a_WSO_tag,
454  char** an_id
455  );
456 
461 extern TCCORE_API int WSOM_ask_object_id_string(
462  tag_t a_WSO_tag,
463  char** object_id
464  );
465 
476 extern TCCORE_API int WSOM_set_description(
477  tag_t a_WSO_tag,
478  const char new_description[WSO_desc_size_c + 1]
479  );
480 
488 extern TCCORE_API int WSOM_set_description2(
489  tag_t a_WSO_tag,
490  const char *new_description
491  );
492 
499 extern TCCORE_API int WSOM_ask_description(
500  tag_t a_WSO_tag,
501  char a_description[WSO_desc_size_c + 1]
502  );
503 
507 extern TCCORE_API int WSOM_ask_description2(
508  tag_t a_WSO_tag,
509  char **a_description
510  );
511 
534 extern TCCORE_API int WSOM_set_object_type(
535  tag_t wso_tag,
536  const char object_type[WSO_name_size_c + 1]
537  );
538 
559 extern TCCORE_API int WSOM_set_object_type2(
560  tag_t wso_tag,
561  const char *object_type
562  );
563 
569 extern TCCORE_API int WSOM_ask_status(
570  tag_t a_WSO_tag,
571  int* status_count,
572  WSO_status_t** status_structures
573  );
574 
579 extern TCCORE_API int WSOM_set_ip_classification(
580  tag_t aWSOsTag,
581  const char newClassn[WSO_ip_class_size_c + 1]
582  );
583 
584 
585 extern TCCORE_API int WSOM_set_ip_classification2(
586  tag_t aWSOsTag,
587  const char *newClassn
588  );
589 
594 extern TCCORE_API int WSOM_ask_ip_classification(
595  tag_t aWSOsTag,
596  char aClassification[WSO_ip_class_size_c + 1]
597  );
598 
599 
600 extern TCCORE_API int WSOM_ask_ip_classification2(
601  tag_t aWSOsTag,
602  char **aClassification
603  );
604 
608 extern TCCORE_API int WSOM_has_ip_classification(
609  tag_t aWSOsTag,
610  logical* hasIPClassification
611  );
612 
617 extern TCCORE_API int WSOM_set_gov_classification(
618  tag_t aWSOsTag,
619  const char classification[WSO_gov_class_size_c + 1]
620  );
621 
622 
623 extern TCCORE_API int WSOM_set_gov_classification2(
624  tag_t aWSOsTag,
625  const char *classification
626  );
627 
632 extern TCCORE_API int WSOM_ask_gov_classification(
633  tag_t aWSOsTag,
634  char classification[WSO_gov_class_size_c + 1]
635  );
636 
637 
638 extern TCCORE_API int WSOM_ask_gov_classification2(
639  tag_t aWSOsTag,
640  char **classification
641  );
642 
646 extern TCCORE_API int WSOM_has_gov_classification(
647  tag_t aWSOsTag,
648  logical* hasGovClassification
649  );
653 extern TCCORE_API int WSOM_ask_ip_logged(
654  tag_t aWSOsTag,
655  logical* logged
656  );
657 
661 extern TCCORE_API int WSOM_ask_user_can_unmanage(
662  tag_t aWSOsTag,
663  logical* can_unmanage
664  );
665 
669 extern TCCORE_API int WSOM_ask_licenses(
670  tag_t aWSOTag,
671  int* licenseCount,
672  tag_t** licenses
673  );
674 
689 extern TCCORE_API int WSOM_find(
690  const char name[WSO_name_size_c + 1],
691  int* hits,
692  tag_t** list
693  );
694 
703 extern TCCORE_API int WSOM_find2(
704  const char *name,
705  int* hits,
706  tag_t** list
707  );
708 
713 extern TCCORE_API int WSOM_clear_search_criteria(
714  WSO_search_criteria_t* criteria
715  );
716 
768 extern TCCORE_API int WSOM_search(
769  WSO_search_criteria_t criteria,
770  int* hits,
771  tag_t** list
772  );
773 
790 extern TCCORE_API int WSOM_get_info(
791  tag_t a_WS0_tag,
792  WSO_descriptor_t* info
793  );
794 
799 extern TCCORE_API int WSOM_set_info(
800  tag_t a_WS0_tag,
801  WSO_descriptor_t* info
802  );
803 
807 extern TCCORE_API int WSOM_free_info(
808  tag_t a_WS0_tag,
809  WSO_descriptor_t* info
810  );
811 
819 extern TCCORE_API int WSOM_describe(
820  tag_t a_WSO_tag,
821  WSO_description_t* description
822  );
823 
835 extern TCCORE_API int WSOM_copy(
836  tag_t a_WSO_tag,
837  const char* new_name,
838  tag_t* copy_tag
839  );
840 
848 extern TCCORE_API int WSOM_set_revision(
849  tag_t a_WSO_tag,
850  int rev_number
851  );
852 
856 extern TCCORE_API int WSOM_ask_revision(
857  tag_t a_WSO_tag,
858  int* rev_number
859  );
860 
866 extern TCCORE_API int WSOM_set_revision_limit(
867  tag_t a_WSO_tag,
868  int rev_limit
869  );
870 
874 extern TCCORE_API int WSOM_ask_revision_limit(
875  tag_t a_WSO_tag,
876  int* rev_limit
877  );
878 
885 extern TCCORE_API int WSOM_ask_object_type(
886  tag_t a_WSO_tag,
887  char object_type[WSO_name_size_c+1]
888  );
889 
893 extern TCCORE_API int WSOM_ask_object_type2(
894  tag_t a_WSO_tag,
895  char **object_type
896  );
897 
908 extern TCCORE_API int WSOM_ask_based_on(
909  tag_t wso,
910  tag_t* based_on_wso
912  );
913 
924 extern TCCORE_API int WSOM_list_derived_wsos(
925  tag_t wso,
926  int* n_derived,
927  tag_t** derived_wsos
928  );
929 
962 extern TCCORE_API int WSOM_where_referenced(
963  tag_t wso,
964  int n_levels,
966  int* n_referencers,
967  int** levels,
969  tag_t** referencers,
970  char*** relations
972  );
973 
984 extern TCCORE_API int WSOM_ask_release_status_list(
985  tag_t workspace_object,
986  int* status_count,
987  tag_t** status_list
988  );
989 
993 extern TCCORE_API int WSOM_status_ask_date_released(
994  tag_t release_status,
995  date_t* release_date
996  );
997 
1015 extern TCCORE_API int WSOM_effectivity_create(
1016  tag_t release_status,
1017  tag_t end_item,
1018  tag_t* effectivity
1019  );
1020 
1026 extern TCCORE_API int WSOM_effectivity_create_empty(
1027  tag_t release_status,
1028  tag_t* effectivity
1029  );
1030 
1034 extern TCCORE_API int WSOM_eff_create_with_date_text(
1035  tag_t release_status,
1036  tag_t end_item,
1037  const char* range_text,
1038  tag_t* effectivity
1039  );
1040 
1044 extern TCCORE_API int WSOM_eff_create_with_unit_text(
1045  tag_t release_status,
1046  tag_t end_item,
1047  const char* range_text,
1048  tag_t* effectivity
1049  );
1050 
1054 extern TCCORE_API int WSOM_effectivity_create_with_effectivitygroup(
1055  tag_t effectivitygroup_rev,
1056  tag_t end_item,
1057  const char* unit_text,
1058  tag_t* effectivity
1059  );
1060 
1070 extern TCCORE_API int WSOM_effectivity_create_with_text(
1071  tag_t release_status,
1072  tag_t end_item,
1073  const char* range_text,
1074  tag_t* effectivity
1075  );
1076 
1082 extern TCCORE_API int WSOM_effectivity_create_with_units(
1083  tag_t release_status,
1084  tag_t end_item,
1085  int n_units,
1086  int* start_end_values,
1088  WSOM_open_ended_status_t open_ended_or_stock_out,
1090  tag_t* effectivity
1091  );
1092 
1098 extern TCCORE_API int WSOM_effectivity_create_with_dates(
1099  tag_t release_status,
1100  tag_t end_item,
1101  int n_dates,
1102  date_t* start_end_values,
1104  WSOM_open_ended_status_t open_ended_or_stock_out,
1106  tag_t* effectivity
1107  );
1108 
1115 extern TCCORE_API int WSOM_status_ask_effectivities(
1116  tag_t release_status,
1117  int* n_effectivities,
1118  tag_t** effectivities
1119  );
1120 
1126 extern TCCORE_API int WSOM_status_remove_effectivity(
1127  tag_t release_status,
1128  tag_t effectivity
1129  );
1130 
1136 extern TCCORE_API int WSOM_status_clear_effectivities(
1137  tag_t release_status
1138  );
1139 
1162 extern TCCORE_API int WSOM_eff_set_range(
1163  tag_t release_status,
1164  tag_t effectivity,
1165  const char* range_text,
1166  logical append
1168  );
1169 
1176 extern TCCORE_API int WSOM_effectivity_set_range(
1177  tag_t effectivity,
1178  const char* range_text,
1179  logical append
1180  );
1181 
1187 extern TCCORE_API int WSOM_eff_set_unit_range(
1188  tag_t release_status,
1189  tag_t effectivity,
1190  const char* range_text,
1191  logical append
1192  );
1193 
1198 extern TCCORE_API int WSOM_eff_ask_unit_range(
1199  tag_t release_status,
1200  tag_t effectivity,
1201  char** range_text
1202  );
1203 
1208 extern TCCORE_API int WSOM_effectivity_ask_unit_range(
1209  tag_t effectivity,
1210  char** range_text
1211  );
1212 
1218 extern TCCORE_API int WSOM_eff_set_date_range(
1219  tag_t release_status,
1220  tag_t effectivity,
1221  const char* range_text,
1222  logical append
1223  );
1224 
1229 extern TCCORE_API int WSOM_eff_ask_date_range(
1230  tag_t release_status,
1231  tag_t effectivity,
1232  char** range_text
1233  );
1234 
1239 extern TCCORE_API int WSOM_effectivity_ask_date_range(
1240  tag_t effectivity,
1241  char** range_text
1242  );
1243 
1248 extern TCCORE_API int WSOM_eff_ask_range(
1249  tag_t release_status,
1250  tag_t effectivity,
1251  char** range_text
1252  );
1253 
1258 extern TCCORE_API int WSOM_effectivity_ask_range(
1259  tag_t effectivity,
1260  char** range_text
1261  );
1262 
1276 extern TCCORE_API int WSOM_eff_set_units(
1277  tag_t release_status,
1278  tag_t effectivity,
1279  int n_units,
1280  int* start_end_values,
1288  WSOM_open_ended_status_t open_ended_or_stock_out,
1290  logical append
1292  );
1293 
1298 extern TCCORE_API int WSOM_effectivity_set_units(
1299  tag_t effectivity,
1300  int n_units,
1301  int* start_end_values,
1302  WSOM_open_ended_status_t open_ended_or_stock_out,
1303  logical append
1304  );
1305 
1315 extern TCCORE_API int WSOM_eff_set_dates(
1316  tag_t release_status,
1317  tag_t effectivity,
1318  int n_dates,
1319  date_t* start_end_values,
1327  WSOM_open_ended_status_t open_ended_or_stock_out,
1329  logical append
1331  );
1332 
1337 extern TCCORE_API int WSOM_effectivity_set_dates(
1338  tag_t effectivity,
1339  int n_dates,
1340  date_t* start_end_values,
1341  WSOM_open_ended_status_t open_ended_or_stock_out,
1342  logical append
1343  );
1344 
1349 extern TCCORE_API int WSOM_eff_ask_units(
1350  tag_t release_status,
1351  tag_t effectivity,
1352  int* n_units,
1353  int** start_end_values,
1354  WSOM_open_ended_status_t* open_ended_or_stock_out
1356  );
1357 
1362 extern TCCORE_API int WSOM_effectivity_ask_units(
1363  tag_t effectivity,
1364  int* n_units,
1365  int** start_end_values,
1366  WSOM_open_ended_status_t* open_ended_or_stock_out
1367  );
1368 
1373 extern TCCORE_API int WSOM_eff_ask_dates(
1374  tag_t release_status,
1375  tag_t effectivity,
1376  int* n_dates,
1377  date_t** start_end_values,
1378  WSOM_open_ended_status_t* open_ended_or_stock_out
1380  );
1381 
1386 extern TCCORE_API int WSOM_effectivity_ask_dates(
1387  tag_t effectivity,
1388  int* n_dates,
1389  date_t** start_end_values,
1390  WSOM_open_ended_status_t* open_ended_or_stock_out
1391  );
1392 
1402 extern TCCORE_API int WSOM_eff_ask_ranges(
1403  tag_t release_status,
1404  tag_t effectivity,
1405  int* n_units,
1406  int* n_dates,
1407  int** units,
1408  date_t** dates,
1409  WSOM_open_ended_status_t* unit_open_ended_status,
1411  WSOM_open_ended_status_t* date_open_ended_status
1412  );
1413 
1418 extern TCCORE_API int WSOM_effectivity_ask_ranges(
1419  tag_t effectivity,
1420  int* n_units,
1421  int* n_dates,
1422  int** units,
1423  date_t** dates,
1424  WSOM_open_ended_status_t* unit_open_ended_status,
1425  WSOM_open_ended_status_t* date_open_ended_status
1426  );
1427 
1431 extern TCCORE_API int WSOM_eff_ask_range_type(
1432  tag_t release_status,
1433  tag_t effectivity,
1434  WSOM_range_type_t* range_type
1437  );
1438 
1443 extern TCCORE_API int WSOM_effectivity_ask_range_type(
1444  tag_t effectivity,
1445  WSOM_range_type_t* range_type
1446  );
1447 
1452 extern TCCORE_API int WSOM_eff_clear_ranges(
1453  tag_t release_status,
1454  tag_t effectivity
1455  );
1456 
1464 extern TCCORE_API int WSOM_eff_set_range_type(
1465  tag_t release_status,
1466  tag_t effectivity,
1467  WSOM_range_type_t range_type
1468  );
1469 
1475 extern TCCORE_API int WSOM_effectivity_set_range_type(
1476  tag_t effectivity,
1477  WSOM_range_type_t range_type
1478  );
1479 
1490 extern TCCORE_API int WSOM_eff_set_end_item_rev(
1491  tag_t release_status,
1492  tag_t effectivity,
1493  tag_t end_item_rev
1494  );
1495 
1496 
1506 extern TCCORE_API int WSOM_eff_set_end_item(
1507  tag_t release_status,
1508  tag_t effectivity,
1509  tag_t end_item
1510  );
1511 
1516 extern TCCORE_API int WSOM_effectivity_set_end_item(
1517  tag_t effectivity,
1518  tag_t end_item
1519  );
1520 
1524 extern TCCORE_API int WSOM_eff_ask_end_item_rev(
1525  tag_t release_status,
1526  tag_t effectivity,
1527  tag_t* end_item_rev
1528  );
1529 
1533 extern TCCORE_API int WSOM_eff_ask_end_item(
1534  tag_t release_status,
1535  tag_t effectivity,
1536  tag_t* end_item
1537  );
1538 
1543 extern TCCORE_API int WSOM_effectivity_ask_end_item(
1544  tag_t effectivity,
1545  tag_t* end_item
1546  );
1547 
1553 extern TCCORE_API int WSOM_eff_set_protection(
1554  tag_t release_status,
1555  tag_t effectivity,
1556  logical protection
1557  );
1558 
1563 extern TCCORE_API int WSOM_effectivity_set_protection(
1564  tag_t effectivity,
1565  logical protection
1566  );
1567 
1571 extern TCCORE_API int WSOM_eff_ask_is_protected(
1572  tag_t release_status,
1573  tag_t effectivity,
1574  logical* is_protected
1575  );
1576 
1581 extern TCCORE_API int WSOM_effectivity_is_protected(
1582  tag_t effectivity,
1583  logical* is_protected
1584  );
1585 
1595 extern TCCORE_API int WSOM_ask_effectivity_mode(
1596  logical* is_v7
1597  );
1598 
1599 extern TCCORE_API int WSOM_ask_ead_paragraph (
1600  tag_t aWSOTag,
1601  int* num,
1602  char *** paragraph
1603  );
1604 
1616 extern TCCORE_API int WSOM_generate_new_revision_id(
1617  tag_t wso_revision_tag,
1618  tag_t object_type,
1619  char **id
1620  );
1621 
1632 extern TCCORE_API int WSOM_generate_new_thread_id(
1633  tag_t object_type,
1634  char **id
1635  );
1636 
1649 extern TCCORE_API int WSOM_assign_to_owning_project (
1650  tag_t wso,
1651  tag_t owning_project
1652  );
1653 
1654 #ifdef __cplusplus
1655 }
1656 #endif
1657 
1660 #include <tccore/libtccore_undef.h>
1661 
1662 #endif