SEDecimalFormat.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5
6enum class eDecimalFormat_Type { SystemFormatting = 0, DefaultFloat, FixedMantissa, SignificantDigits };
7extern const std::string& eDecimalFormat_Type_Name(eDecimalFormat_Type m);
8
9class CDM_DECL SEDecimalFormat
10{
11 friend class PBEngine;//friend the serialization class
12public:
13 SEDecimalFormat(const SEDecimalFormat* dfault = nullptr);
14 virtual ~SEDecimalFormat();
15
16 virtual void Clear();
17 virtual void Set(const SEDecimalFormat& f);
18
19 void SetPrecision(std::streamsize p);
20 std::streamsize GetPrecision();
21
22 void SetNotation(eDecimalFormat_Type n);
23 eDecimalFormat_Type GetNotation();
24
25 void SetStream(std::ofstream& s);
26
27protected:
28 std::streamsize m_Precision;
29 eDecimalFormat_Type m_Notation;
30
31};
Definition: PBEngine.h:31
Definition: SEDecimalFormat.h:10
std::streamsize m_Precision
Definition: SEDecimalFormat.h:28
eDecimalFormat_Type m_Notation
Definition: SEDecimalFormat.h:29

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.