SEDecimalFormat.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 
6 enum class eDecimalFormat_Type { SystemFormatting = 0, DefaultFloat, FixedMantissa, SignificantDigits };
7 extern const std::string& eDecimalFormat_Type_Name(eDecimalFormat_Type m);
8 
9 class CDM_DECL SEDecimalFormat
10 {
11  friend class PBEngine;//friend the serialization class
12 public:
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 
27 protected:
28  std::streamsize m_Precision;
29  eDecimalFormat_Type m_Notation;
30 
31 };
std::streamsize m_Precision
Definition: SEDecimalFormat.h:28
Definition: PBEngine.h:24
Definition: SEDecimalFormat.h:9
eDecimalFormat_Type m_Notation
Definition: SEDecimalFormat.h:29