funkalicious 0.1

write_binary_data.h

Go to the documentation of this file.
00001 /*
00002 ** write_binary_data.h
00003 ** 
00004     Copyright (C) 2009 Joseph Pingenot
00005 
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU Affero General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU Affero General Public License for more details.
00015 
00016     You should have received a copy of the GNU Affero General Public License
00017     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 
00019 ** Made by Johnny Q. Hacker
00020 ** Login   <solarion@nathan>
00021 ** 
00022 ** Started on  Tue Nov 24 21:38:48 2009 Johnny Q. Hacker
00023 ** Last update Tue Nov 24 21:38:48 2009 Johnny Q. Hacker
00024 */
00025 
00026 #include <glib-2.0/glib.h>
00027 #include <gio/gio.h>
00028 #include <libdotcode/binary_data_common.h>
00029 
00030 #ifndef     WRITE_BINARY_DATA_H_
00031 # define    WRITE_BINARY_DATA_H_
00032 
00033 GError* dotcode_write_binary_data(const struct dotcode_data* data, GFile* file);
00034 
00035 GError* dotcode_write_sstring(const char* str, gboolean write_header, GOutputStream *os);
00036 
00037 GError* dotcode_write_int(int val, gboolean write_header, GOutputStream *os);
00038 
00039 GError* dotcode_write_float8(double val, gboolean write_header, GOutputStream *os);
00040 
00041 GError* dotcode_write_float4(float val, gboolean write_header, GOutputStream *os);
00042 
00043 GError* dotcode_write_vector(const struct dotcode_vector* val, gboolean write_header, GOutputStream *os);
00044 
00045 GError* dotcode_write_array(const struct dotcode_array* val, gboolean write_header, GOutputStream *os);
00046 
00047 GError* dotcode_write_grid(const struct dotcode_grid* grid, gboolean write_header, GOutputStream *os);
00048 
00049 GError* dotcode_write_tensor(const struct dotcode_tensor* tensor, gboolean write_header, GOutputStream *os);
00050 
00051 GError* dotcode_write_typed_file(const enum dotcode_type t, const void* data, GFile *outfile);
00052 
00053 GError* dotcode_write_generic(const enum dotcode_type t, const void* data, gboolean write_header, GOutputStream *os);
00054 
00055 #endif      /* !WRITE_BINARY_DATA_H_ */
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines