// #include "stdafx.h" #include "Generator.BasicMoulds.hpp" using namespace DIOS::Dev::Detail; using namespace DIOS::Dev::Detail::Generator; ////----------------------------------------------------------------------------- //// IntMould ////----------------------------------------------------------------------------- //string IntMould::GetDescription () //{ // ResDataObject temp,result; //// temp.add (ValKey::DIMENSION, Dimension.c_str ()); // temp.add (ValKey::UPPERLIMIT, m_LimitMax); // temp.add (ValKey::LOWERLIMIT, m_LimitMin); // temp.add (ValKey::ACCURACY, m_Accuracy); // result.add(Key.c_str(), temp); // return result.encode (); //} // // //string IntMould::GetAttribute () //{ // ResDataObject temp; // temp.add (Key.c_str (), (int)m_Value); // return temp.encode (); //} //std::string IntMould::JSGet() //{ // return std::to_string(m_Value); //} //std::string IntMould::GetKey() //{ // return Key; //} ////----------------------------------------------------------------------------- //// FloatMould ////----------------------------------------------------------------------------- //string FloatMould::GetDescription () //{ // ResDataObject temp, result; //// temp.add (DIMENSION, Dimension.c_str ()); // temp.add (ValKey::UPPERLIMIT, m_LimitMax); // temp.add (ValKey::LOWERLIMIT, m_LimitMin); // temp.add (ValKey::ACCURACY, m_Accuracy); // result.add(Key.c_str(), temp); // return result.encode(); //} // //string FloatMould::GetAttribute () //{ // ResDataObject temp; // temp.add (Key.c_str (), (float)m_Value); // return temp.encode(); //} //std::string FloatMould::JSGet() //{ // return std::to_string(m_Value); //} //std::string FloatMould::GetKey() //{ // return Key; //} //----------------------------------------------------------------------------- // KV //----------------------------------------------------------------------------- //string KVMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add("Unit", strUnit.c_str()); // return temp.encode(); //} //----------------------------------------------------------------------------- // MA //----------------------------------------------------------------------------- //string MAMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add(ValKey::UNIT, strUnit.c_str()); // return temp.encode(); //} //----------------------------------------------------------------------------- // MS //----------------------------------------------------------------------------- //string MSMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add(ValKey::UNIT, strUnit.c_str()); // return temp.encode(); //} //----------------------------------------------------------------------------- // MAS //----------------------------------------------------------------------------- //string MASMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add(ValKey::UNIT, strUnit.c_str()); // return temp.encode(); //} //----------------------------------------------------------------------------- // POSTKVMould //----------------------------------------------------------------------------- //string POSTKVMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add(ValKey::UNIT, strUnit.c_str()); // return temp.encode(); //} //----------------------------------------------------------------------------- // POSTMAMould //----------------------------------------------------------------------------- //string POSTMAMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add(ValKey::UNIT, strUnit.c_str()); // return temp.encode(); //} //----------------------------------------------------------------------------- // POSTMSMould //----------------------------------------------------------------------------- //string POSTMSMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add(ValKey::UNIT, strUnit.c_str()); // return temp.encode(); //} //----------------------------------------------------------------------------- // POSTMASMould //----------------------------------------------------------------------------- //string POSTMASMould::GetDescription() //{ // ResDataObject temp; // string str = GetDescription(); // temp.decode(str.c_str()); // temp[0].add(ValKey::UNIT, strUnit.c_str()); // return temp.encode(); //}