blob: 2ec529683fdab4ecc8e845530732c392976404e0 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
//
//-- File: MFT.cxx
//-- Created: Wed Mar 12 17:49:10 1997
//-- Author: Gerard GRAS
//-- <gg@photox>
//-- Update:
//-- reason :
//-- action :
//---Copyright: Matra Datavision 1993
//
#include <MFT.hxx>
#include <TCollection_AsciiString.hxx>
// =============================================================================
// ---Purpose: Converts a TypeOfCommand to a string
// =============================================================================
static TCollection_AsciiString typestring;
Standard_CString MFT::Convert(const MFT_TypeOfCommand aCommandType){
switch (aCommandType) {
case MFT_TOC_UNKNOWN:
typestring = "UNKNOWN";
break;
case MFT_TOC_HSTEM:
typestring = "HSTEM";
break;
case MFT_TOC_VSTEM:
typestring = "VSTEM";
break;
case MFT_TOC_VMOVETO:
typestring = "VMOVETO";
break;
case MFT_TOC_RLINETO:
typestring = "RLINETO";
break;
case MFT_TOC_HLINETO:
typestring = "HLINETO";
break;
case MFT_TOC_VLINETO:
typestring = "VLINETO";
break;
case MFT_TOC_RRCURVETO:
typestring = "RRCURVETO";
break;
case MFT_TOC_CLOSEPATH:
typestring = "CLOSEPATH";
break;
case MFT_TOC_HSBW:
typestring = "HSBW";
break;
case MFT_TOC_ENDCHAR:
typestring = "ENDCHAR";
break;
case MFT_TOC_RMOVETO:
typestring = "RMOVETO";
break;
case MFT_TOC_HMOVETO:
typestring = "HMOVETO";
break;
case MFT_TOC_VHCURVETO:
typestring = "VHCURVETO";
break;
case MFT_TOC_HVCURVETO:
typestring = "HVCURVETO";
break;
case MFT_TOC_DOTSECTION:
typestring = "DOTSECTION";
break;
case MFT_TOC_VSTEM3:
typestring = "VSTEM3";
break;
case MFT_TOC_HSTEM3:
typestring = "HSTEM3";
break;
case MFT_TOC_SEAC:
typestring = "SEAC";
break;
case MFT_TOC_SBW:
typestring = "SBW";
break;
case MFT_TOC_SETCURRENTPOINT:
typestring = "SETCURRENTPOINT";
break;
case MFT_TOC_CHARSTRING:
typestring = "CHARSTRING";
break;
case MFT_TOC_NUMERIC:
typestring = "NUMERIC";
break;
case MFT_TOC_MINMAX:
typestring = "MINMAX";
break;
}
return typestring.ToCString();
}
static TCollection_AsciiString valuename;
Standard_CString MFT::Convert(const MFT_TypeOfValue aValueType){
switch (aValueType) {
case MFT_TOV_UNKNOWN:
valuename = "UNKNOWN";
break;
case MFT_TOV_INTEGER:
valuename = "INTEGER";
break;
case MFT_TOV_FLOAT:
valuename = "FLOAT";
break;
case MFT_TOV_STRING:
valuename = "STRING";
break;
}
return valuename.ToCString();
}
|