Eneboo - Documentación para desarrolladores
|
00001 #ifndef __DIGIDOC_DF_EXTRACT_H__ 00002 #define __DIGIDOC_DF_EXTRACT_H__ 00003 //================================================== 00004 // FILE: DigiDocDfExtract.h 00005 // PROJECT: Digi Doc 00006 // DESCRIPTION: Digi Doc functions for extracting <DataFile> contents 00007 // AUTHOR: Veiko Sinivee, S|E|B IT Partner Estonia 00008 //================================================== 00009 // Copyright (C) AS Sertifitseerimiskeskus 00010 // This library is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Lesser General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2.1 of the License, or (at your option) any later version. 00014 // This library is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 // Lesser General Public License for more details. 00018 // GNU Lesser General Public Licence is available at 00019 // http://www.gnu.org/copyleft/lesser.html 00020 //==========< HISTORY >============================= 00021 // 03.03.2008 Veiko Sinivee 00022 // Creation 00023 //================================================== 00024 00025 #include <libdigidoc/DigiDocDefs.h> 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 //-------------------------------------------------- 00032 // Reads in signed XML document and extracts the desired data file 00033 // pSigDoc - signed document object if exists. Can be NULL 00034 // szFileName - digidoc filename 00035 // szDataFileName - name of the file where to store embedded data. 00036 // szDocId - DataFile Id atribute value 00037 // szCharset - convert DataFile content to charset 00038 //-------------------------------------------------- 00039 EXP_OPTION int ddocExtractDataFile(SignedDoc* pSigDoc, const char* szFileName, 00040 const char* szDataFileName, const char* szDocId, 00041 const char* szCharset); 00042 00043 #ifdef __cplusplus 00044 } 00045 #endif 00046 00047 00048 #endif