2018-07-23 17:00:37 +02:00
|
|
|
/*
|
|
|
|
* GDSII-Converter
|
|
|
|
* Copyright (C) 2018 Mario Hüttel <mario.huettel@gmx.net>
|
|
|
|
*
|
|
|
|
* This file is part of GDSII-Converter.
|
|
|
|
*
|
|
|
|
* GDSII-Converter is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* GDSII-Converter 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 GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-07-24 18:47:29 +02:00
|
|
|
/**
|
2018-12-15 00:04:53 +01:00
|
|
|
* @file command-line.h
|
2018-07-24 18:47:29 +02:00
|
|
|
* @brief Render according to command line parameters
|
|
|
|
* @author Mario Hüttel <mario.huettel@gmx.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2019-03-30 19:51:56 +01:00
|
|
|
* @addtogroup cmdline
|
2018-07-24 18:47:29 +02:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2018-07-23 17:00:37 +02:00
|
|
|
#ifndef _COMMAND_LINE_H_
|
|
|
|
#define _COMMAND_LINE_H_
|
2019-03-26 19:57:19 +01:00
|
|
|
|
2018-07-23 17:00:37 +02:00
|
|
|
#include <glib.h>
|
|
|
|
|
2019-11-15 20:50:46 +01:00
|
|
|
/**
|
|
|
|
* @brief External renderer paramameters to command line renderer
|
|
|
|
*/
|
|
|
|
struct external_renderer_params {
|
|
|
|
/**
|
|
|
|
* @brief Path to shared object
|
|
|
|
*/
|
|
|
|
char *so_path;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Command line parameters given
|
|
|
|
*/
|
|
|
|
char *cli_params;
|
|
|
|
};
|
|
|
|
|
2018-07-30 12:35:30 +02:00
|
|
|
/**
|
2019-06-21 21:41:31 +02:00
|
|
|
* @brief Convert GDS according to command line parameters
|
|
|
|
* @param gds_name Path to GDS File
|
|
|
|
* @param cell_name Cell name
|
|
|
|
* @param renderers Renderer ids
|
|
|
|
* @param output_file_names Output file names
|
|
|
|
* @param layer_file Layer mapping file
|
2019-11-15 21:39:33 +01:00
|
|
|
* @param ext_param Settings for external library renderer
|
2019-06-22 01:21:26 +02:00
|
|
|
* @param tex_standalone Standalone TeX
|
2019-09-28 22:57:31 +02:00
|
|
|
* @param tex_layers TeX OCR layers
|
2019-06-22 01:21:26 +02:00
|
|
|
* @param scale Scale value
|
|
|
|
* @return Error code, 0 if successful
|
2018-07-30 12:35:30 +02:00
|
|
|
*/
|
2019-06-22 01:21:26 +02:00
|
|
|
int command_line_convert_gds(const char *gds_name,
|
2019-09-28 22:57:31 +02:00
|
|
|
const char *cell_name,
|
|
|
|
char **renderers,
|
|
|
|
char **output_file_names,
|
|
|
|
const char *layer_file,
|
2019-11-15 20:50:46 +01:00
|
|
|
struct external_renderer_params *ext_param,
|
2019-06-22 01:21:26 +02:00
|
|
|
gboolean tex_standalone,
|
|
|
|
gboolean tex_layers,
|
|
|
|
double scale);
|
2018-07-23 17:00:37 +02:00
|
|
|
|
|
|
|
#endif /* _COMMAND_LINE_H_ */
|
2018-07-24 18:47:29 +02:00
|
|
|
|
|
|
|
/** @} */
|