CFx SDK Documentation  2023 SP0
daiConsts.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2019, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Open Design Alliance software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Open Design Alliance Copyright (C) 2002-2019 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef _DAI_CONSTS_H_
25 #define _DAI_CONSTS_H_
26 
27 #include "daiPlatform.h"
28 #include "daiObjectId.h"
29 
30 #define STL_USING_LIMITS
31 #include "OdaSTL.h"
32 
33 namespace OdDAI
34 {
35  namespace Consts
36  {
37 
38 //#ifdef HAS_MOVE_SEMANTICS
39 //# define USE_LIB_NAN
40 //#endif
41 
42 //#ifdef __cplusplus
43 //# if __cplusplus > 199711L
44 //# define USE_LIB_NAN
45 //# endif
46 //#endif
47 
48 #ifdef USE_LIB_NAN
49  static const double OdNan = nan("");
50  static const float OdNanf = nanf("");
51 #else
52  static const double OdNan = nanIEEERealCreate<double>();
53  static const float OdNanf = nanIEEERealCreate<float>();
54 #endif
55 
56  static const int OdIntUnset = std::numeric_limits<int>::max();
57  static const char OdStringUnset[] = "\xff";
58  static const size_t OdStringUnsetLength = strlen(OdStringUnset);
59  static const OdDAIObjectId OdHandleUnset = OdDAIObjectId::kNull;
60  }
61 }
62 
63 #endif // _DAI_CONSTS_H_
static DAI_EXPORT_STATIC const OdDAIObjectId kNull
Definition: daiObjectId.h:72
const T & max(const T &x, const T &y)