summaryrefslogtreecommitdiff
path: root/src/analysis/exporter.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-03-21 18:54:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-03-21 18:54:20 (GMT)
commit8123d9342f92a2cf6fd999b350252c001f403092 (patch)
tree5030aa5d40fa8551937649cdd3377062ec8991d0 /src/analysis/exporter.c
parenta6acb5629572e6da4d72f4419b01672c2ea5ddf2 (diff)
Allowed a simple export of an assembly content.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@144 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/exporter.c')
-rw-r--r--src/analysis/exporter.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/analysis/exporter.c b/src/analysis/exporter.c
index e78fd54..e1e9160 100644
--- a/src/analysis/exporter.c
+++ b/src/analysis/exporter.c
@@ -181,6 +181,32 @@ GtkTextTagTable *_get_gtk_tag_table(GtkTextTagTable *table)
/******************************************************************************
* *
* Paramètres : exporter = instance sachant exporter son contenu. *
+* stream = flux ouvert en écriture. *
+* text = texte à insérer dans l'existant. *
+* length = taille du texte à traiter. *
+* tag = type de décorateur à utiliser. *
+* *
+* Description : Ajoute du texte simple à un fichier ouvert en écriture. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void g_content_exporter_insert_text(GContentExporter *exporter, FILE *stream, const char *text, size_t length, RenderingTagType tag)
+{
+ size_t ret; /* Quantité d'octets écrite */
+
+ ret = fwrite(text, sizeof(char), length, stream);
+ if (ret != length) perror("fwrite");
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : exporter = instance sachant exporter son contenu. *
* buffer = zone de texte à venir compléter. *
* iter = point d'insertion du nouveau texte. [OUT] *
* text = texte à insérer dans l'existant. *
@@ -212,6 +238,29 @@ void g_content_exporter_insert_with_gtk_tag(GContentExporter *exporter, GtkTextB
/******************************************************************************
* *
* Paramètres : exporter = instance sachant exporter son contenu. *
+* options = options de rendu. *
+* rendering = support effectif final des lignes de code. *
+* stream = flux ouvert en écriture. *
+* *
+* Description : Ajoute du texte simple à un fichier ouvert en écriture. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void g_content_exporter_add_text(GContentExporter *exporter, GRenderingOptions *options, MainRendering rendering, FILE *stream)
+{
+ if (exporter->add_text != NULL)
+ exporter->add_text(exporter, options, rendering, stream);
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : exporter = instance sachant exporter son contenu. *
* rendering = support effectif final des lignes de code. *
* buffer = zone de texte à venir compléter. *
* iter = point d'insertion du nouveau texte. *