tools/createsrc-templates/FshellCmd/SkeletonTemplate.cpp
author Joe Branton <joe.branton@accenture.com>
Thu, 29 Jul 2010 14:11:57 +1000
changeset 19 cb341c55f6e8
parent 0 7f656887cf89
permissions -rw-r--r--
Added FSHELL_[NO_]ARMCC_DIAG_SUPPRESS_SUPPORT. The versions of RVCT that I'm using (2.2 build 616 and 2.2 build 686) don't appear to support --diag-supress.

// SkeletonTemplate.cpp
//
// [[COPYRIGHT]]
//

#include <fshell/ioutils.h>
#include <fshell/common.mmh>

using namespace IoUtils;

class CCmdSkeletonTemplate : public CCommandBase
	{
public:
	static CCommandBase* NewLC();
	~CCmdSkeletonTemplate();
private:
	CCmdSkeletonTemplate();
private: // From CCommandBase.
	virtual const TDesC& Name() const;
	virtual void DoRunL();
	virtual void ArgumentsL(RCommandArgumentList& aArguments);
	virtual void OptionsL(RCommandOptionList& aOptions);
private:
	//TODO: arguments/options
	};

EXE_BOILER_PLATE(CCmdSkeletonTemplate)

CCommandBase* CCmdSkeletonTemplate::NewLC()
	{
	CCmdSkeletonTemplate* self = new(ELeave) CCmdSkeletonTemplate();
	CleanupStack::PushL(self);
	self->BaseConstructL();
	return self;
	}

CCmdSkeletonTemplate::~CCmdSkeletonTemplate()
	{
	}

CCmdSkeletonTemplate::CCmdSkeletonTemplate()
	{
	}

const TDesC& CCmdSkeletonTemplate::Name() const
	{
	_LIT(KName, "skeletontemplate");	
	return KName;
	}

void CCmdSkeletonTemplate::ArgumentsL(RCommandArgumentList& aArguments)
	{
	//TODO: aArguments.AppendStringL(iString, _L("example_arg"));
	//TODO: Also remember to update the CIF file for any arguments you add.
	}

void CCmdSkeletonTemplate::OptionsL(RCommandOptionList& aOptions)
	{
	//TODO: aOptions.AppendBoolL(iOpt, _L("example_opt"));
	//TODO: Also remember to update the CIF file for any options you add.
	}

void CCmdSkeletonTemplate::DoRunL()
	{
	// TODO: Add implementation.
	}