File: command_line.h

package info (click to toggle)
fractalnow 0.8.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,656 kB
  • sloc: ansic: 8,201; cpp: 4,517; sh: 571; makefile: 9
file content (83 lines) | stat: -rw-r--r-- 2,553 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
 *  command_line.h -- part of FractalNow
 *
 *  Copyright (c) 2012 Marc Pegon <pe.marc@free.fr>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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 this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

 /**
  * \file command_line.h
  * \brief Header file related to command line parsing.
  * \author Marc Pegon
  */

#ifndef __COMMAND_LINE_H__
#define __COMMAND_LINE_H__

#include "main.h"

#include "fractalnow.h"

#include <stdint.h>

 //! For storing command lines arguments.
 /* This structure is to store the arguments given on the command line.
 */
class CommandLineArguments {
	public:
	 //!brief Parse arguments given on command line.
	 /*
	 * \param dst Pointer to the (already allocated) structure in which to store the arguments.
	 * \param argc Argc of the main function
	 * \param argv Argv of the main function
	 */
	CommandLineArguments(int argc, char *argv[]);

	//! Config file name.
	char *fractalConfigFileName;
	//! Fractal file name.
	char *fractalFileName;
	//! Rendering file name.
	char *renderingFileName;
	//! Rendering file name.
	char *gradientFileName;
	//! Width of output float table/image.
	uint_fast32_t width;
	//! Height of output float table/image.
	uint_fast32_t height;
	//! Minimum size for anti-aliasing.
	uint_fast32_t minAntiAliasingSize;
	//! Maximum size for anti-aliasing.
	uint_fast32_t maxAntiAliasingSize;
	//! Anti-aliasing size iteration.
	uint_fast32_t antiAliasingSizeIteration;
	//! Force number of threads used for drawing fractals.
	int nbThreads;
	//! Quad interpolation size.
	uint_fast32_t quadInterpolationSize;
	//! Adaptive anti-aliasing threshold.
	double adaptiveAAMThreshold;
	//! Color dissimilarity threshold.
	double colorDissimilarityThreshold;
	//! Float precision for computing fractal.
	FloatPrecision floatPrecision;
#ifdef _ENABLE_MP_FLOATS
	//! Precision (value) of Multiple Precision floats.
	int64_t MPFloatPrecision;
#endif
};

#endif