European
Southern
Observatory

ESO — Reaching New Heights in Astronomy

Countries taking part in the ESO

VLT Software Documentation

c++-file.template.doc

c++-file - template for c++ files

DESCRIPTION

An empty template is provided by getTemplate(7) in the "code" menu. Complete the template according to the following instruction:

/*******************************************************************************
* E.S.O. - VLT project
*
* "@(#) $I>-<d$"
*
* who       when        what
* --------  ----------  ----------------------------------------------
* NNNNNNNN  yyyy-mm-dd  created 
*/

#ifndef __vxworks   >>> predefined Macros Candidates: 
     			__vxworks #vxworks in general
     			_WRS_KERNEL #vxWorks kernel
     			__RTP__ # vxWorks application process (currently not used in VLT and can be replaced by 'defined(__vxworks) && !defined(_WRS_KERNEL)'
#define _POSIX_C_SOURCE 1    <<<< if you delete this line you SHALL comment
     				  why POSIX does not apply for this file
     				  The purpose of the Macro is, to intentionally break the build if non agreed feature sets are used.
     				  For Linux you might need to remove the settings in the case that intentionally non-Posix functions will be called by the sourcecode.
     				  For VxWorks Kernel you might want to keep #define _POSIX... if you are sure that this sourcecode should not use any VxWorks specific functions
     				  For VxWorks Application processes (currently not used by VLT) you can independently decide between allowing VxWorks extensions over Posix only
#endif
#include "vltPort.h"

ATTRIBUTE_UNUSED static const char *rcsId="@(#) $I>-<d$"; 

>>> To document global objects (functions, typedefs, enum, macros, etc), you must document the file in which they are defined. In other words, there must at least be a line @file
/**
 * @file
 * Brief description of the file.
 * A more elaborated file description.
 */   

/* 
 * System Headers 
 */

/*
 * Local Headers 
 */

/* 
 * Signal catching functions  
 */

/* 
 * Local functions  
 */
/**
 * Brief description of the function. 
 * More details
 *
 * @param ...
 * ...
 * @return ...
 */

 
Generated on Wed Jun 8 09:09:12 2011 for forCoding - 1.50 API by doxygen 1.6.3