Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cms_cfg.hh

Go to the documentation of this file.
00001 /*************************************************************************
00002 * File: cms_cfg.hh                                                    *
00003 * Authors: Fred Proctor, Will Shackleford                                *
00004 * Purpose: C++ Header file for the  Communication Management System (CMS)*
00005 *          Includes:                                                     *
00006 *                    1. cms_config -- function which reads               *
00007 *                         configuration file.                            *
00008 *************************************************************************/
00009 
00010 #ifndef CMS_CFG_HH
00011 #define CMS_CFG_HH
00012 
00013 /* Include Files */
00014 
00015 #include "cms_user.hh"
00016 #include "rcs_defs.hh"          /* RCS_EXPORT */
00017 
00018 /* Config File Definitions. */
00019 #ifndef CMS_CONFIG_LINELEN
00020 #define CMS_CONFIG_LINELEN 200
00021 #endif
00022 #ifndef CMS_CONFIG_COMMENTCHAR
00023 #define CMS_CONFIG_COMMENTCHAR '#'
00024 #endif
00025 
00026 #ifdef __cplusplus
00027 extern "C"
00028 {
00029 #endif
00030 
00031 /* Function Prototypes. */
00032   extern int RCS_EXPORT cms_config (CMS ** c, char *b, char *p, char *f,
00033                                     int set_to_server = 0, int set_to_master =
00034                                     0);
00035 
00036   extern int RCS_EXPORT cms_copy (CMS ** dest, CMS * src,
00037                                   int set_to_server = 0, int set_to_master =
00038                                   0);
00039 
00040 
00041   extern int cms_create_from_lines (CMS ** cms, char *buffer_line,
00042                                     char *proc_line, int set_to_server =
00043                                     0, int set_to_master = 0);
00044 
00045   extern int cms_create (CMS ** cms, char *buf_line, char *proc_line,
00046                          char *buffer_type, char *proc_type,
00047                          int set_to_server = 0, int set_to_master = 0);
00048 
00049 
00050 
00051   extern int load_nml_config_file (const char *file);
00052   extern int unload_nml_config_file (const char *file);
00053   extern int print_loaded_nml_config_file_list ();
00054   extern int unload_all_nml_config_files ();
00055   extern char *get_buffer_line (const char *buf, const char *file);
00056   extern int hostname_matches_bufferline (char *bufline);
00057 
00058 
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062 
00063 
00064 
00065 #endif                          /* !defined(CMS_CFG_HH) */

Generated on Sun Dec 2 15:56:48 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001