Main Page | Class List | Directories | File List | Class Members | File Members

texoutput.c File Reference

LaTeX output. More...

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <stdarg.h>
#include "acquisition.h"
#include "fitsoutput.h"
#include "preview.h"
#include "texoutput.h"
#include "ccu.h"
#include "telescope.h"
#include "glib.h"
#include "semaphore.h"

Functions

void texoutput_msg (char *msg)
 called whenever texoutput wants to say something to the user.
void texoutput_background_handler ()
 called by a timer.
void texoutput_queue_delete ()
 queues the "delete file" operation
void texoutput_queue_print (int n)
 queues the "print file" operation
void texoutput_queue_comment (char *comment)
 queues the "add comment" operation
void texoutput_queue_dap (struct dap_struct dap)
 queues the "add data associated parameters" operation
void texoutput_queue_imstat (struct image_statistics_struct imstat)
 queues the "add image statistics" operation
void texoutput_queue_time ()
 queues the "add timestamp" operation
void texoutput_add_imstat (struct image_statistics_struct in)
 executes the "add image statistics" operation
void texoutput_add_time ()
 adds a timestamp to the logfile
void texoutput_add_dap (struct dap_struct dap)
 adds the data associated parameters to the logfile
void texoutput_add_comment (char *comment)
 adds a comment
void texoutput_init ()
 (constructor) intializes the texoutput system
void texoutput_delete ()
 deletes the tex file
void texoutput_print (int n)
 prints the tex file
void texoutput_view ()
 displays the compiled version of the tex file
void texoutput_view_backup ()
 displays the compiled version of the backup tex file
void texoutput_compile ()
 compiles the tex file
void texoutput_push_item (struct texoutput_struct input)
 queues a new request into the texoutput queue.
int texoutput_pop_item (struct texoutput_struct *dummy)
 pops an texoutput request from the texoutput queue.

Variables

sem_t texoutput_sem
sem_t texoutput_op_sem
char texoutput_path [1000]
char texoutput_compile_command [1000]
char texoutput_compile_backup_command [1000]
char texoutput_viewer_command [1000]
char texoutput_editor_command [1000]
char texoutput_print_command [1000]
GList * texoutput_list = NULL
texoutput_struct texoutput_current


Detailed Description

LaTeX output.

Copyright (C) 2001-2003 Dirk Huenniger (dhun@astro.uni-bonn.de)

This program 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, version 2.


Function Documentation

void texoutput_add_comment char *  comment  ) 
 

adds a comment

Parameters:
comment the comment to be added
Returns:
void This function adds a comment

void texoutput_add_dap struct dap_struct  dap  ) 
 

adds the data associated parameters to the logfile

Parameters:
dap a struct containing the data associated parameters
Returns:
void
This function adds the "add data associated parameters (DAP)" operation. DAP means the name of the observer the instrument and the telescope. It was invented at the Effelsberg 100m Radio Telescope and this is why it is important.

void texoutput_add_imstat struct image_statistics_struct  in  ) 
 

executes the "add image statistics" operation

Parameters:
in an image_statistics_struct containing the information to be added
Returns:
void
This function exectues the queues the "add image statistics" operation

void texoutput_add_time  ) 
 

adds a timestamp to the logfile

Returns:
void
This function adds a timestamp to the logfile

void texoutput_background_handler  ) 
 

called by a timer.

Returns:
void
This function is called by a timer. It checks the work queue for new commands and calles the corresponding functions

void texoutput_compile  ) 
 

compiles the tex file

Returns:
void This function compiles the tex file

void texoutput_delete  ) 
 

deletes the tex file

Returns:
void This function deletes the tex file

void texoutput_init  ) 
 

(constructor) intializes the texoutput system

Returns:
void This function intializes the texoutput system

void texoutput_msg char *  msg  ) 
 

called whenever texoutput wants to say something to the user.

Parameters:
msg the message to be send to the user
Returns:
void
This function is called whenever texoutput wants to say something to the user.

int texoutput_pop_item struct texoutput_struct *  dummy  ) 
 

pops an texoutput request from the texoutput queue.

Parameters:
dummy a pointer to an texoutput_struct in which the poped item will be writen
Returns:
integer 0 on success, -1 on failure
This function pops an texoutput request from the texoutput queue.

void texoutput_print int  n  ) 
 

prints the tex file

Parameters:
n the number of copies
Returns:
void This function prints the tex file

void texoutput_push_item struct texoutput_struct  input  ) 
 

queues a new request into the texoutput queue.

Parameters:
input the request to be queued
Returns:
void
This function queues a new request into the texoutput queue

void texoutput_queue_comment char *  comment  ) 
 

queues the "add comment" operation

Parameters:
comment the comment to be added
Returns:
void
This function queues the "add comment" operation

void texoutput_queue_dap struct dap_struct  dap  ) 
 

queues the "add data associated parameters" operation

Parameters:
dap a struct containing the data associated parameters
Returns:
void
This function queues the "add data associated parameters (DAP)" operation. DAP means the name of the opserver the instrument and the telescope. It was invented at the Effelsberg 100m Radio Telescope and this is why it is important.

void texoutput_queue_delete  ) 
 

queues the "delete file" operation

Returns:
void
This function queues the "delete file" operation

void texoutput_queue_imstat struct image_statistics_struct  imstat  ) 
 

queues the "add image statistics" operation

Parameters:
in an image_statistics_struct containing the information to be added
Returns:
void
This function queues the queues the "add image statistics" operation

void texoutput_queue_print int  n  ) 
 

queues the "print file" operation

Returns:
void
This function queues the "print file" operation

void texoutput_queue_time  ) 
 

queues the "add timestamp" operation

Returns:
void
This function queues the "add timestamp" operation

void texoutput_view  ) 
 

displays the compiled version of the tex file

Returns:
void This function displays the compiled version of the tex file. This is a dvi file

void texoutput_view_backup  ) 
 

displays the compiled version of the backup tex file

Returns:
void This function displays the compiled version of the backup tex file. This is a dvi file


Variable Documentation

char texoutput_compile_backup_command[1000]
 

the command to compile the backup tex file

char texoutput_compile_command[1000]
 

the command to compile the tex file

struct texoutput_struct texoutput_current
 

the current operation beeing executed

char texoutput_editor_command[1000]
 

the command to start an editor (for .tex files)

GList* texoutput_list = NULL
 

a list of texoutputs to be done

sem_t texoutput_op_sem
 

semaphore protecting texoutput_operation

char texoutput_path[1000]
 

the path containg the texfile related files

char texoutput_print_command[1000]
 

a command to print a .ps file

sem_t texoutput_sem
 

semaphore protecting body.tex main.tex main.dvi and main.ps

char texoutput_viewer_command[1000]
 

the command to start the .dvi (compile version of .tex) viewer


Generated on Fri Dec 16 22:23:40 2005 for gboccia by  doxygen 1.4.2