- Partially refactored bang handling code

- Renamed CMeasure::ExecuteBang to CMeasure::Command
- Minor cosmetic changes and tweaks
This commit is contained in:
Birunthan Mohanathas
2012-02-01 15:55:29 +00:00
parent 7531ddde27
commit b21658b1cd
11 changed files with 503 additions and 635 deletions

View File

@ -27,14 +27,14 @@ typedef VOID (*FINALIZE)(HMODULE, UINT);
typedef UINT (*UPDATE)(UINT);
typedef double (*UPDATE2)(UINT);
typedef LPCTSTR (*GETSTRING)(UINT, UINT);
typedef void (*EXECUTEBANG)(LPCTSTR, UINT);
typedef void (*EXECUTEBANG)(LPCWSTR, UINT);
typedef void (*NEWINITIALIZE)(void*);
typedef void (*NEWRELOAD)(void*, void*, double*);
typedef void (*NEWFINALIZE)(void*);
typedef double (*NEWUPDATE)(void*);
typedef LPCWSTR (*NEWGETSTRING)(void*);
typedef void (*NEWEXECUTEBANG)(void*, const WCHAR*);
typedef void (*NEWEXECUTEBANG)(void*, const LPCWSTR);
class CMeasurePlugin : public CMeasure
{
@ -44,7 +44,7 @@ public:
virtual bool Update();
virtual const WCHAR* GetStringValue(AUTOSCALE autoScale, double scale, int decimals, bool percentual);
virtual void ExecuteBang(const WCHAR* args);
virtual void Command(const std::wstring& command);
protected:
virtual void ReadConfig(CConfigParser& parser, const WCHAR* section);