ITK Function Reference

(V10000.1.0.60_20160308.00)
tcfile.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
12 /* */
13 
14 #ifndef TCFILE_H
15 #define TCFILE_H
16 
17 #include <pom/pom/pom.h>
18 #include <ss/ss_const.h>
19 #include <ss/ss_types.h>
20 #include <sa/libsa_exports.h>
21 
40 #define IMF_filename_size_c 132
41 #define IMF_relative_path_size_c 240
42 
50 #define IMF_dlp_classification_code_msg "BMF_IMF_dlp_classification_code"
51 
52 typedef void* IMF_file_t;
54 
55 
56 
57 #ifdef __cplusplus
58 extern "C"{
59 #endif
60 
68 extern SA_API int IMF_create_file(
69  const char* filename,
72  int file_type,
75  tag_t* file_tag,
76  IMF_file_t* file_descriptor
77  );
78 
89 extern SA_API int IMF_copy_file(
90  tag_t file_tag,
91  const char* new_filename,
92  tag_t* new_file_tag,
93  IMF_file_t* file_descriptor
94  );
95 
105 extern SA_API int IMF_import_file(
106  const char* osFileName,
107  const char* newFilename,
110  int fileType,
113  tag_t* newFileTag,
114  IMF_file_t* fileDescriptor
115  );
116 
121 extern SA_API int IMF_export_file(
122  tag_t file_tag,
123  const char* pathname
124  );
125 
129 extern SA_API int IMF_ask_file_descriptor(
130  tag_t file_tag,
131  IMF_file_t* file_descriptor
132  );
133 
137 extern SA_API int IMF_ask_file_tag(
138  IMF_file_t file_descriptor,
139  tag_t* file_tag
140  );
141 
150 extern SA_API int IMF_ask_file_pathname(
151  tag_t file_tag,
152  int mach_type,
153  char pathname[SS_MAXPATHLEN]
154  );
155 
161 extern SA_API int IMF_ask_file_pathname2(
162  tag_t file_tag,
163  int mach_type,
164  char **pathname
165  );
166 
173 extern SA_API int IMF_open_file(
174  IMF_file_t file_descriptor,
175  int ss_file_access_mode
176  );
177 
181 extern SA_API int IMF_close_file(
182  IMF_file_t file_descriptor
183  );
184 
196 extern SA_API int IMF_read_file_line(
197  IMF_file_t file_descriptor,
198  char text_line[SS_MAXLLEN]
199  );
200 
209 extern SA_API int IMF_read_file_line2(
210  IMF_file_t file_descriptor,
211  char **text_line
212  );
213 
220 extern SA_API int IMF_write_file_line(
221  IMF_file_t file_descriptor,
222  const char text_line[SS_MAXLLEN]
223  );
224 
228 extern SA_API int IMF_write_file_line2(
229  IMF_file_t file_descriptor,
230  const char *text_line
231  );
232 
250 extern SA_API int IMF_read_file(
251  IMF_file_t file_descriptor,
252  int datatype_count,
253  int data_type,
255  int* items_read_count,
256  void* items_read
257  );
258 
263 extern SA_API int IMF_write_file(
264  IMF_file_t file_descriptor,
265  int datatype_count,
266  int data_type,
267  void* items_to_write,
268  int* items_written_count
269  );
270 
275 extern SA_API int IMF_expand_path(
276  const char* oldpath,
277  char* newpath
278  );
279 
286 extern SA_API int IMF_stat(
287  const char* path,
288  IMF_file_status* stats
289  );
290 
298 extern SA_API int IMF_ask_security_level( void );
299 
303 extern SA_API int IMF_ask_volume(
304  tag_t fileTag,
305  tag_t* volumeTag
306  );
307 
311 extern SA_API int IMF_move_file(
312  tag_t fileTag,
313  tag_t volumeTag
314  );
315 
329 extern SA_API int IMF_replace_file(
330  tag_t file_tag,
331  const char* new_file_pathname,
332  logical retain_orig_filename
333  );
334 
353 extern SA_API int IMF_replace_file_and_get_new_tag(
354  tag_t old_file_tag,
355  const char* new_file_pathname,
356  logical retain_orig_filename,
357  tag_t* new_file_tag
358  );
359 
372 extern SA_API int IMF_set_original_file_name (
373  tag_t file_tag,
374  const char name[IMF_filename_size_c + 1]
375  );
376 
377 
387 extern SA_API int IMF_set_original_file_name2 (
388  tag_t file_tag,
389  const char *name
390  );
391 
392 
404 extern SA_API int IMF_ask_original_file_name (
405  tag_t file_tag,
406  char name[IMF_filename_size_c + 1]
407  );
408 
409 
418 extern SA_API int IMF_ask_original_file_name2 (
419  tag_t file_tag,
420  char **name
421  );
422 
423 
441 extern SA_API int IMF_set_relative_path (
442  tag_t file_tag,
443  const char relative_path[IMF_relative_path_size_c + 1]
444  );
445 
460 extern SA_API int IMF_set_relative_path2 (
461  tag_t file_tag,
462  const char *relative_path
463  );
464 
479 extern SA_API int IMF_ask_relative_path (
480  tag_t file_tag,
481  char relative_path[IMF_relative_path_size_c + 1]
482  );
483 
495 extern SA_API int IMF_ask_relative_path2 (
496  tag_t file_tag,
497  char **relative_path
498  );
499 
509 extern SA_API int IMF_fmsfile_import(
510  const char* osFileName,
511  const char* newFilename,
514  int fileType,
517  tag_t* newFileTag,
518  IMF_file_t* fileDescriptor
519  );
520 
521 
534 extern SA_API int IMF_fmsfile_export(
535  tag_t file_tag,
536  const char* pathname
537  );
538 
539 
550 extern SA_API int IMF_get_transient_file_read_ticket(
551  int file_type,
552  int server_mode,
553  logical deleteSW,
555  const char* transient_volume_file_path,
557  char** transient_volume_file_read_ticket
558  );
559 
570 extern SA_API int IMF_get_transient_file_write_ticket(
571  int file_type,
572  int server_mode,
573  const char* transient_volume_file_path,
575  char** transient_volume_file_write_ticket
576  );
577 
581 extern SA_API int IMF_get_transient_volume_root_dir(
582  int tier,
584  char** transientVolRootDir
585  );
586 
595  int tier,
597  char* ticket_string,
598  char** ticket_file_path
599  );
600 
621 extern SA_API int IMF_get_read_file_tickets (
622  int n_file_tags,
623  const tag_t* file_tags,
624  const char* application,
627  int** ifails,
629  char*** ticket_infos
634  );
635 
650 extern SA_API int IMF_download_file(
651  const char* read_ticket,
652  const char* pathname
653  );
654 
664 extern SA_API int IMF_dlp_classification_code(
665  tag_t file_tag,
666  char* file_classification_code
669  );
670 
673 #ifdef __cplusplus
674 }
675 #endif
676 
677 #include <sa/libsa_undef.h>
678 
679 #endif