ArcGIS Procedural Runtime  3.2.10650
Types.h
1 /*
2  COPYRIGHT (c) 2012-2024 Esri R&D Center Zurich
3  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
4  Unpublished material - all rights reserved under the
5  Copyright Laws of the United States and applicable international
6  laws, treaties, and conventions.
7 
8  For additional information, contact:
9  Environmental Systems Research Institute, Inc.
10  Attn: Contracts and Legal Services Department
11  380 New York Street
12  Redlands, California, 92373
13  USA
14 
15  email: contracts@esri.com
16 */
17 
18 #ifndef PRTX_TYPES_H_
19 #define PRTX_TYPES_H_
20 
21 #include "prtx/prtx.h"
22 
23 #include <memory>
24 #include <string>
25 #include <vector>
26 
27 
28 namespace prtx {
29 
30 typedef uint8_t Bool;
31 typedef std::vector<prtx::Bool> BoolVector;
32 typedef std::vector<double> DoubleVector;
33 typedef std::vector<int32_t> Int32Vector;
34 typedef std::vector<std::string> StringVector;
35 typedef std::vector<std::wstring> WStringVector;
36 typedef std::shared_ptr<std::wstring> StringPtr;
37 typedef std::vector<uint8_t> BinaryVector;
38 
39 const Bool PRTX_FALSE = static_cast<Bool>(0u);
40 const Bool PRTX_TRUE = static_cast<Bool>(1u);
41 const Bool PRTX_NO = static_cast<Bool>(0u);
42 const Bool PRTX_YES = static_cast<Bool>(1u);
43 
44 inline bool toPrimitive(Bool b) { return (b == PRTX_TRUE); }
45 PRTX_EXPORTS_API Bool boolFromString(const std::wstring& w);
46 PRTX_EXPORTS_API Bool boolFromString(const std::string& s);
47 
48 } // namespace prtx
49 
50 
51 #endif /* PRTX_TYPES_H_ */
uint8_t Bool
uint8_t based Bool type
Definition: Types.h:30
std::vector< prtx::Bool > BoolVector
vector of uint8_t based Bool type
Definition: Types.h:31
std::vector< double > DoubleVector
vector of double
Definition: Types.h:32
std::vector< uint8_t > BinaryVector
vector to hold binary data
Definition: Types.h:37
std::shared_ptr< std::wstring > StringPtr
shared std::string
Definition: Types.h:36
std::vector< std::string > StringVector
vector of std::string
Definition: Types.h:34
The Procedural Runtime eXtension namespace. The prtx namespace contains the tools to extend the Proce...
Definition: AnnotationBuilder.h:35
std::vector< int32_t > Int32Vector
vector of int32_t
Definition: Types.h:33
std::vector< std::wstring > WStringVector
vector of std::wstring
Definition: Types.h:35