• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

/home/pascal/depot/filedata/src/epr/epr_record.h

00001 /*
00002  * $Id: epr__record_8h_source.html,v 1.11 2013/02/14 16:57:54 pascal Exp $
00003  *
00004  * Copyright (C) 2002 by Brockmann Consult (info@brockmann-consult.de)
00005  *
00006  * This program is free software; you can redistribute it and/or modify it
00007  * under the terms of the GNU General Public License as published by the
00008  * Free Software Foundation. This program is distributed in the hope it will
00009  * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
00010  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011  * See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00016  */
00017 
00018 #ifndef EPR_RECORD_H_INCL
00019 #define EPR_RECORD_H_INCL
00020 
00021 #ifdef __cplusplus
00022 extern "C"
00023 {
00024 #endif
00025 
00026 #include <stdio.h> /* just to get the ANSI-C type FILE */
00027 
00032 struct EPR_RecordInfo
00033 {
00037     char* dataset_name;
00038 
00042     EPR_SPtrArray* field_infos;
00049     uint tot_size;
00050 };
00051 
00060 EPR_SRecordInfo* epr_get_record_info(EPR_SDatasetId* dataset_id);
00061 EPR_SRecordInfo* epr_read_record_info(EPR_SProductId* product_id, EPR_SDatasetId* dataset_id);
00062 void epr_read_sub_record_info(EPR_SProductId* product_id, FILE* db_file_istream, const char* parent_name, EPR_SPtrArray* field_infos);
00063 EPR_SRecordInfo* epr_create_record_info(const char* dataset_name, EPR_SPtrArray* field_infos);
00064 EPR_SRecord* epr_create_record_from_info(EPR_SRecordInfo* record_info);
00065 char* epr_get_record_info_path(EPR_SProductId* product_id, const char* dataset_name);
00066 void epr_free_record_info(EPR_SRecordInfo* record_info);
00067 
00068 #ifdef __cplusplus
00069 } /* extern "C" */
00070 #endif
00071 
00072 #endif
00073 /* #ifndef EPR_RECORD_H_INCL */

Generated on Thu Feb 14 2013 17:59:03 for filedata.kdevelop by  doxygen 1.7.1