CFx SDK Documentation
2023 SP0
SDK
CFx
dd_inc
OdDToStr.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16
// agreement with Open Design Alliance.
17
// Teigha(R) Copyright (C) 2002-2017 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
25
#ifndef _OD_DTOSTR_
26
#define _OD_DTOSTR_
27
28
//DD:EXPORT_ON
29
30
#include "
OdString.h
"
31
#include "
OdAnsiString.h
"
32
33
FIRSTDLL_EXPORT
void
odDToStr
(
char
*
dst
,
double
val,
char
fmt,
int
prec,
int
cropzeros = 0);
34
FIRSTDLL_EXPORT
OdString
odDToStr
(
double
val,
char
fmt,
int
prec,
int
cropzeros = 0);
35
FIRSTDLL_EXPORT
double
odStrToD
(
const
OdChar
* p,
OdChar
** ppend = 0);
36
#if defined(_MSC_VER) && _MSC_VER >= 1300
37
FIRSTDLL_EXPORT
inline
double
odStrToD
(
const
__wchar_t* p, __wchar_t** ppend = 0)
38
{
39
return
odStrToD
(
reinterpret_cast<
const
OdChar
*
>
(p),
reinterpret_cast<
OdChar
**
>
(ppend));
40
}
41
#endif
42
FIRSTDLL_EXPORT
double
odStrToD
(
const
char
* p,
char
** ppend = 0);
43
FIRSTDLL_EXPORT
double
odStrToD
(
const
OdString
&);
44
FIRSTDLL_EXPORT
double
odStrToD
(
const
OdAnsiString&);
45
46
//DD:EXPORT_OFF
47
48
#endif
// _OD_DTOSTR_
OdAnsiString.h
odDToStr
FIRSTDLL_EXPORT void odDToStr(char *dst, double val, char fmt, int prec, int cropzeros=0)
odStrToD
FIRSTDLL_EXPORT double odStrToD(const OdChar *p, OdChar **ppend=0)
OdChar
wchar_t OdChar
Definition:
OdPlatformSettings.h:745
OdString.h
FIRSTDLL_EXPORT
#define FIRSTDLL_EXPORT
Definition:
RootExport.h:39
OdString
Definition:
OdString.h:95
dst
Definition:
SmCalloutBlocks.h:39
Generated on Thu Feb 24 2022 15:09:53