#ifndef isSharedCmd_h #define isSharedCmd_h // Shave and a Haircut // (c) 2019 Epic Games // US Patent 6720962 #include #include #include #include class isSharedCmd : public MPxCommand { public: isSharedCmd(); virtual ~isSharedCmd(); MStatus doIt( const MArgList& args ); bool isUndoable() const; static void* createCmd(); static MSyntax createSyntax(); static const MString commandName; private: }; inline bool isSharedCmd::isUndoable() const { return false; } class shaveRepair : public MPxCommand { public: shaveRepair(){} virtual ~shaveRepair(){} MStatus doIt( const MArgList& args ) { MGlobal::executeCommand("shave_Repair"); return MStatus::kSuccess; } bool isUndoable() const {return false;} static void* createCmd() {return new shaveRepair();} static MSyntax createSyntax() {return MSyntax();} static const MString commandName; private: }; class shavePurge : public MPxCommand { public: shavePurge(){} virtual ~shavePurge(){} MStatus doIt( const MArgList& args ) { MGlobal::executeCommand("shave_Purge"); return MStatus::kSuccess; } bool isUndoable() const {return false;} static void* createCmd() {return new shavePurge();} static MSyntax createSyntax() {return MSyntax();} static const MString commandName; private: }; #endif