9 #include <mix/Exceptions.h>
10 #include <csi/param.H>
11 #include <csi/CharAr.H>
42 {
return &operator[](0); }
68 #define AnyType PEP_Type
70 #define AnyCmp(x,y) strcmp(x.name, y.name)
71 #define AnyFormatSpec "\n%d: name='%s' base='%s' type=%p create_view=%p"
72 #define AnyPrintList i, item.name, item.type? item.type->base_type(): "?", item.type, item.create_view
73 #include <mix/AnyAr.H>
94 int PEP_FindProtocolSection (FILE* fp,
const char* application,
95 const char* protocol);
104 void PEP_ReadName (FILE* fp, CharAr& car);
130 int PEP_ReadCLikeCharLiteral (FILE* fp,
char eos);
142 int PEP_ReadCLikeString (FILE* fp,
char eos, CharAr& car);
155 int PEP_ReadCLikeString (
const char* raw,
char eos, CharAr& car);
169 int PEP_WriteCLikeString (FILE* fp,
char eos, CharAr& car);
172 Logic PEP_IsNameChar (
char x);
175 void PEP_SkipSpaces (FILE* fp);
178 void PEP_SkipEndOfLine (FILE* fp);
181 ParType* PEP_TypeByName (
char* name);
184 int PEP_IndexByName (
const char* name);
187 Logic PEP_CompatibleTypes (
const ParType& pt1,
const ParType& pt2);
196 void PEP_ScanConfig (
const char* filename,
197 const char* application,
198 const char* protocol,
203 void PEP_AddStdProps (ParDescAr& pdar);
211 char* PEP_BuildEnvName (
const char* application,
212 const char* protocol);
221 Logic PEP_GetCommKeys (
const char* application,
222 const char* protocol,
231 void PEP_SetCommKeys (
const char* application,
232 const char* protocol,
242 void PEP_CleanCommKeys (
const char* application,
243 const char* protocol);
248 #define LOW_BOUND (1<<0)
249 #define HIGH_BOUND (1<<1)
257 int PEP_IntRange (
const char* s,
int r[2]);
260 #define AssocAr pepNamedValues
261 #define AssocItemType pepNamedValue
262 #define AssocKeyField name
263 #define AssocKeyType char*
264 #define AssocKeysCmp(key1,key2) strcmp(key1,key2)
265 #define AssocFormatSpec "name=\"%s\", value=\"%s\"\n"
266 #define AssocPrintList item.name, item.value
267 #include <mix/AssocAr.H>
272 #define TARG_NV_DELIM '='
273 #define TARG_VN_DELIM ';'
281 void PEP_ParseNameValue (
const char* targ, pepNamedValues& nv,
282 const char* defname = NULL);
290 void PEP_Initialize ();
293 void PEP_RegisterTypes ();
298 void PEP_RegisterViews ();
304 #ifndef __pep_global_vars
312 extern TypesAr peptypes;
315 extern ErrCode pepStatus;
319 extern FILE *pepFpWrite, *pepFpRead;
ParViewInit create_view
Definition: pep_utils.H:64
key_t lock_k
Definition: pep_utils.H:84
Definition: pep_utils.H:60
Definition: pep_utils.H:81
key_t page_k
Definition: pep_utils.H:83
Definition: pep_utils.H:24
ParType * type
Definition: pep_utils.H:63
char * name
Definition: pep_utils.H:62