PL.Net
These classes enable InterDynamics' Planimate® platform to be integrated in dotNET projects. Code is written in C# and VS2013 projects are provided.
units.hpp
1 #ifndef UNITS_HPP
2 #define UNITS_HPP
3 
4 // Value formatting options for user attributes and table columns
5 //
6 // NOTE TF_EditUnits() needs updating when unit mode addded
7 //
8 
9 enum eTFUnit
10 {
11  UNIT_TIME, // time HH:MM SS
12  UNIT_VALUE, // Plain value
13  UNIT_MONEY, // $x.xx
14  UNIT_RATESEC, // rate/s
15  UNIT_RATEMIN, // rate/m
16  UNIT_RATEHOUR, // rate/h
17  UNIT_RATEDAY, // rate/d
18  UNIT_RATEWEEK, // rate/w
19  UNIT_RATEMONTH, // rate/M
20  UNIT_RATEYEAR, // rate/y
21  UNIT_ABSTIME, // calendar HH:MM SS
22  UNIT_LABEL, // label list
23  UNIT_MONEY_U, // $x
24  UNIT_ABSTIME2, // calendar HHMM
25  UNIT_VALUESPACED, // value with commas
26  UNIT_TIMEOFDAY, // Time of day HHMM
27  UNIT_TIMEAMPM, // Time of day 12hr
28  UNIT_HEX, // hexadecimal
29  UNIT_TIME2, // Time HH:MM:SS
30  UNIT_ABSTIME3, // calendar HH:MM:SS
31  UNIT_MINUTES, // Time minutes
32  UNIT_HOURS, // Time hours
33  UNIT_DAYS, // Time days
34  UNIT_WEEKS, // Time weeks
35  UNIT_VALUE_F1, // fixed xxxx.x
36  UNIT_VALUE_F2, // fixed xxxx.xx
37  UNIT_VALUE_CF1, // fixed x,xxx.x
38  UNIT_VALUE_CF2, // fixed x,xxx.xx
39  UNIT_DATEONLY, // only date
40  UNIT_DAYDATE, // jan 3 feb, 2000
41  UNIT_WEEKDAY1, // week and day from 1
42  UNIT_VALUE_RJZ, // right justified zero filled 000XXX
43  UNIT_ABSTIME3U, // US date HH:MM:SS
44  UNIT_LONG_EW, // Longitude DD:MM:SS[E|W]
45  UNIT_LONG_PRECISE, // Longitude [-]DD:MM:SS.SS
46  UNIT_LAT_NS, // Latitude DD:MM:SS[N|S]
47  UNIT_LAT_PRECISE, // Latitude [-]DD:MM:SS.SS
48  UNIT_TIMEOFDAY_2, // Time of day HH:MM
49  UNIT_DATE2, // Calendar YYYY-MM-DD
50  UNIT_FREETEXT, // (free text)
51  UNIT_MONEY_R, // Rand currency
52  UNIT_MONEY_RU, // Rand currency no cents
53  UNIT_MONEY_E, // Euro currency
54  UNIT_MONEY_EU, // Euro currency no cents
55  UNIT_TIME3, // Time HH:MM (no seconds)
56  UNIT_ABSTIMEMS, // Calendar HH:MM:SS.SSS
57  UNIT_DATE2TIME, // Calendar YYYY-MM-DD HH:MM:SS
58  UNIT_DAYHHMM, // Time Day HHMM Mon 1234
59  UNIT_DAY2HHMM, // Time Day HHMM 1d 1234, 7d 2359
60  UNIT_PERCENT, // As percentage with % symbol
61  UNIT_PERCENT2, // As percentage with variable fractions
62  UNIT_DATE3, // calendar YYYYMMDD
63  UNIT_SCIENTIFIC, // scientific eg: 1.2345e-002
64  UNIT_ABSTIMEC, // C-style DAY MMM DD HH:MM:SS YYYY
65  UNIT_PERCENT3, // As percentage x.xxx%
66  UNIT_PPM, // Parts per million
67  UNIT_PERCENT_NS, // as percent without symbol
68  UNIT_PPM_NS, // as ppm without symbol
69  UNIT_PERCENT6, // As percentage x.xxxxxx%
70  UNIT_VALUESPACED2, // value spaced without decimal
71  UNIT_DATE4, // Calendar dd MMM (no year)
72  UNIT_DATE5, // Calendar dd MMM HHMM (no year)
73  UNIT_HOURMIN, // xxhr xxmin
74  UNIT_OS_DATETIME,
75  UNIT_OS_DATEONLY,
76  UNIT_OS_TIME,
77  UNIT_OS_CURRENCY,
78  UNIT_OS_VALUE,
79  UNIT_OS_PERCENT,
80  UNIT_RGB,
81  UNIT_VALUENODEC,
82  UNIT_VALUE_F3,
83  UNIT_VALUE_CF3,
84  UNIT_PERCENT1,
85  UNIT_DATE3TIME, // Calendar YYYY-MM-DD HHMMSS
86  UNIT_TIMEDHHMM,
87  UNIT_TIMED0HMM,
88  UNIT_DAY2HHMMCOLON,
89  UNIT_WEEKDAYNOTIME, // week and day from 1
90  UNIT_DAYFROM1, // day from 1
91  UNIT_DATE4TIME, // calendar yyyymmddhhmmss
92 
93  // this counts unit modes
94  UNIT_MODECOUNT,
95 
96  // special case - must be 255 and last
97  UNIT_NULL = 255
98 };
99 
100 #endif
101