fishjam
Starting Member
1 Posts |
Posted - Mar 22 2005 : 03:48:16 AM
|
when i use Delphi, it provide a way to auto complete class.such as type: TForm1 = class(TForm) private { Private declarations } public function GetSomeValue:Integer; //Add this Line end; then i press Ctrl+Shift+C in TForm1's scrope, it will generate the implement code like this:
function TForm1.GetSomeValue: Integer; begin end;
I Wander Why visual assist can't support this.there is a tool name's VcExtend can do this.such as. write a class define like this,but no implemention code. class CTaste : public CShow { public: CTaste(); virtual ~CTaste(); private: CString m_strName; //RW (read and write) int m_nAge; //RW (read and write) CString m_strAddr; //R (read) };
when i use CodeCleanUp , it will generate code automatic in *.inl like this:
inline CString CTaste::GetName() const { return m_strName; } inline void CTaste::SetName(const CString& Name) { m_strName = Name; }
inline int CTaste::GetAge() const { return m_nAge; }
inline void CTaste::SetAge(int Age) { m_nAge = Age; }
inline CString CTaste::GetAddr() const { return m_strAddr; } |
|