Generator.BasicMoulds.cpp 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. //
  2. #include "stdafx.h"
  3. #include "Generator.BasicMoulds.hpp"
  4. using namespace DIOS::Dev::Detail;
  5. using namespace DIOS::Dev::Detail::Generator;
  6. ////-----------------------------------------------------------------------------
  7. //// IntMould
  8. ////-----------------------------------------------------------------------------
  9. //string IntMould::GetDescription ()
  10. //{
  11. // ResDataObject temp,result;
  12. //// temp.add (ValKey::DIMENSION, Dimension.c_str ());
  13. // temp.add (ValKey::UPPERLIMIT, m_LimitMax);
  14. // temp.add (ValKey::LOWERLIMIT, m_LimitMin);
  15. // temp.add (ValKey::ACCURACY, m_Accuracy);
  16. // result.add(Key.c_str(), temp);
  17. // return result.encode ();
  18. //}
  19. //
  20. //
  21. //string IntMould::GetAttribute ()
  22. //{
  23. // ResDataObject temp;
  24. // temp.add (Key.c_str (), (int)m_Value);
  25. // return temp.encode ();
  26. //}
  27. //std::string IntMould::JSGet()
  28. //{
  29. // return std::to_string(m_Value);
  30. //}
  31. //std::string IntMould::GetKey()
  32. //{
  33. // return Key;
  34. //}
  35. ////-----------------------------------------------------------------------------
  36. //// FloatMould
  37. ////-----------------------------------------------------------------------------
  38. //string FloatMould::GetDescription ()
  39. //{
  40. // ResDataObject temp, result;
  41. //// temp.add (DIMENSION, Dimension.c_str ());
  42. // temp.add (ValKey::UPPERLIMIT, m_LimitMax);
  43. // temp.add (ValKey::LOWERLIMIT, m_LimitMin);
  44. // temp.add (ValKey::ACCURACY, m_Accuracy);
  45. // result.add(Key.c_str(), temp);
  46. // return result.encode();
  47. //}
  48. //
  49. //string FloatMould::GetAttribute ()
  50. //{
  51. // ResDataObject temp;
  52. // temp.add (Key.c_str (), (float)m_Value);
  53. // return temp.encode();
  54. //}
  55. //std::string FloatMould::JSGet()
  56. //{
  57. // return std::to_string(m_Value);
  58. //}
  59. //std::string FloatMould::GetKey()
  60. //{
  61. // return Key;
  62. //}
  63. //-----------------------------------------------------------------------------
  64. // KV
  65. //-----------------------------------------------------------------------------
  66. //string KVMould::GetDescription()
  67. //{
  68. // ResDataObject temp;
  69. // string str = GetDescription();
  70. // temp.decode(str.c_str());
  71. // temp[0].add("Unit", strUnit.c_str());
  72. // return temp.encode();
  73. //}
  74. //-----------------------------------------------------------------------------
  75. // MA
  76. //-----------------------------------------------------------------------------
  77. //string MAMould::GetDescription()
  78. //{
  79. // ResDataObject temp;
  80. // string str = GetDescription();
  81. // temp.decode(str.c_str());
  82. // temp[0].add(ValKey::UNIT, strUnit.c_str());
  83. // return temp.encode();
  84. //}
  85. //-----------------------------------------------------------------------------
  86. // MS
  87. //-----------------------------------------------------------------------------
  88. //string MSMould::GetDescription()
  89. //{
  90. // ResDataObject temp;
  91. // string str = GetDescription();
  92. // temp.decode(str.c_str());
  93. // temp[0].add(ValKey::UNIT, strUnit.c_str());
  94. // return temp.encode();
  95. //}
  96. //-----------------------------------------------------------------------------
  97. // MAS
  98. //-----------------------------------------------------------------------------
  99. //string MASMould::GetDescription()
  100. //{
  101. // ResDataObject temp;
  102. // string str = GetDescription();
  103. // temp.decode(str.c_str());
  104. // temp[0].add(ValKey::UNIT, strUnit.c_str());
  105. // return temp.encode();
  106. //}
  107. //-----------------------------------------------------------------------------
  108. // POSTKVMould
  109. //-----------------------------------------------------------------------------
  110. //string POSTKVMould::GetDescription()
  111. //{
  112. // ResDataObject temp;
  113. // string str = GetDescription();
  114. // temp.decode(str.c_str());
  115. // temp[0].add(ValKey::UNIT, strUnit.c_str());
  116. // return temp.encode();
  117. //}
  118. //-----------------------------------------------------------------------------
  119. // POSTMAMould
  120. //-----------------------------------------------------------------------------
  121. //string POSTMAMould::GetDescription()
  122. //{
  123. // ResDataObject temp;
  124. // string str = GetDescription();
  125. // temp.decode(str.c_str());
  126. // temp[0].add(ValKey::UNIT, strUnit.c_str());
  127. // return temp.encode();
  128. //}
  129. //-----------------------------------------------------------------------------
  130. // POSTMSMould
  131. //-----------------------------------------------------------------------------
  132. //string POSTMSMould::GetDescription()
  133. //{
  134. // ResDataObject temp;
  135. // string str = GetDescription();
  136. // temp.decode(str.c_str());
  137. // temp[0].add(ValKey::UNIT, strUnit.c_str());
  138. // return temp.encode();
  139. //}
  140. //-----------------------------------------------------------------------------
  141. // POSTMASMould
  142. //-----------------------------------------------------------------------------
  143. //string POSTMASMould::GetDescription()
  144. //{
  145. // ResDataObject temp;
  146. // string str = GetDescription();
  147. // temp.decode(str.c_str());
  148. // temp[0].add(ValKey::UNIT, strUnit.c_str());
  149. // return temp.encode();
  150. //}