blob: cd01c8d1aa6e21e036d4c019a6a04a70ad0f77e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// File: Dynamic.cxx
// Created: Wed Aug 31 15:24:04 1994
// Author: Gilles DEBARBOUILLE
// <gde@watson>
// Historique :
// CRD : 15/04/97 : Correction warning de compil.
// CRD : 03/07/97 : Portage Windows NT.
#include <Dynamic.hxx>
#ifdef HAVE_CONFIG_H
# include <oce-config.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef WNT
//#define strcasecmp _stricoll
#include <stdio.h>
#endif
//=======================================================================
//function : Mode
//purpose :
//=======================================================================
Dynamic_ModeEnum Dynamic::Mode(const Standard_CString amode)
{
#ifdef DEB
Dynamic_ModeEnum aMode;
#else
Dynamic_ModeEnum aMode=Dynamic_IN;
#endif
if (!strcasecmp(amode,"in" )) aMode = Dynamic_IN;
else if(!strcasecmp(amode,"out" )) aMode = Dynamic_OUT;
else if(!strcasecmp(amode,"inout" )) aMode = Dynamic_INOUT;
else if(!strcasecmp(amode,"Internal")) aMode = Dynamic_INTERNAL;
else if(!strcasecmp(amode,"constant")) aMode = Dynamic_CONSTANT;
return aMode;
}
|