stegocurve  1.1
Tool for plot easily the efficiency of code based steganography
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Typedefs | Enumerations | Functions
stegocurve_config.h File Reference

Header file which provides a structure to manage the behavior of stegocurve. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "tools/definition.h"
#include "tools/stegocurve_args.h"
#include "codes/codes.h"
#include "tools/entropy.h"
#include "plotters/plotters.h"

Go to the source code of this file.

Data Structures

struct  STEGOCURVE_ACTION
 structure to manage the behavior of the stegocurve from command line or config file. More...

Macros

#define LINE_LENGTH   200

Typedefs

typedef struct STEGOCURVE_ACTION stegocurve_action
 equivalent to struct STEGOCURVE_ACTION

Enumerations

enum  action_type {
  generate, gnuplot, tikz, pgfplots,
  error
}

Functions

void generate_all (const char *data_directory)
 Generate all data define in stegocurve in the directory data_directory.
void stegocurve_action_init (stegocurve_action *act)
 allocate the needed memory for an action
void stegocurve_action_free (stegocurve_action *act)
 desallocate the memory takes by the stegocurve_action
void stegocurve_action_do (const stegocurve_action *act)
 from the structure stegocurve_action make the action
void extract_value_from_line (char **val, const char *line)
 allocate and put the value from line into val. This value must be between ' or ".
void stegocurve_read_config_file (stegocurve_action *act, const char *config_filename)
 The file config_filename will open and read in order to initialize the act. This is a kind a special parser for a stegocurve config file.

Detailed Description

Header file which provides a structure to manage the behavior of stegocurve.

Author
Morgan Barbier morga.nosp@m.n.ba.nosp@m.rbier.nosp@m.@ens.nosp@m.icaen.nosp@m..fr
Version
1.1
Date
2015-03-03

stegocurve is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

stegocurve is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with stegocurve. If not, see http://www.gnu.org/licenses/.

Enumeration Type Documentation

to determine the type of the action to treat

Enumerator:
generate 

for the data generation step

gnuplot 

to plot with gnuplot

tikz 

to plot with tikz pure

pgfplots 

to plot with tikz and pgfplots

error 

to manage an error

Function Documentation

void extract_value_from_line ( char **  val,
const char *  line 
)

allocate and put the value from line into val. This value must be between ' or ".

Parameters
[in]valvariable receving the result
[in]linevariable containing all the line
Warning
This function allocate the needed memory for val
void generate_all ( const char *  data_directory)

Generate all data define in stegocurve in the directory data_directory.

Parameters
[in]data_directorythe name of the directory where data will write
void stegocurve_action_do ( const stegocurve_action act)

from the structure stegocurve_action make the action

Parameters
[in]actthe action to do
void stegocurve_action_free ( stegocurve_action act)

desallocate the memory takes by the stegocurve_action

Parameters
[in]actto desallocate
void stegocurve_action_init ( stegocurve_action act)

allocate the needed memory for an action

Parameters
[in]actgives the pointer to a stegocurve_action to allocate.
void stegocurve_read_config_file ( stegocurve_action act,
const char *  config_filename 
)

The file config_filename will open and read in order to initialize the act. This is a kind a special parser for a stegocurve config file.

Parameters
[in]actis the stegocurve_action to initialize from config file
[in]config_filenamethe path and name to the setting file of stegocurve