123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- //
- #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();
- //}
|