Initial commit
This commit is contained in:
128
Torque/SDK/lib/mayasdk6/include/maya/MCommandResult.h
Normal file
128
Torque/SDK/lib/mayasdk6/include/maya/MCommandResult.h
Normal file
@@ -0,0 +1,128 @@
|
||||
|
||||
#ifndef _MCommandResult
|
||||
#define _MCommandResult
|
||||
//
|
||||
//-
|
||||
// ==========================================================================
|
||||
// Copyright (C) Alias Systems, a division of Silicon Graphics Limited.
|
||||
// All rights reserved. These coded instructions, statements and computer
|
||||
// programs contain unpublished information proprietary to Alias Systems,
|
||||
// a division of Silicon Graphics Limited, which is protected by the
|
||||
// Canadian and US federal copyright law and may not be disclosed to third
|
||||
// parties or copied or duplicated, in whole or in part, without prior
|
||||
// written consent of Alias Systems, a division of Silicon Graphics Limited
|
||||
// ==========================================================================
|
||||
//+
|
||||
//
|
||||
// CLASS: MCommandResult
|
||||
//
|
||||
// *****************************************************************************
|
||||
//
|
||||
// CLASS DESCRIPTION (MCommandResult)
|
||||
//
|
||||
// An MCommandResult collects the result returned by MGlobal::executeCommand.
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
#if defined __cplusplus
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// INCLUDED HEADER FILES
|
||||
|
||||
|
||||
#include <maya/MStatus.h>
|
||||
#include <maya/MObject.h>
|
||||
|
||||
// *****************************************************************************
|
||||
// FORWARD DECLARATIONS
|
||||
class MIntArray;
|
||||
class MDoubleArray;
|
||||
class MString;
|
||||
class MStringArray;
|
||||
class MVector;
|
||||
class MVectorArray;
|
||||
class MMatrix;
|
||||
// *****************************************************************************
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
// CLASS DECLARATION (MCommandResult)
|
||||
|
||||
/// Result returned from executing a command.
|
||||
/**
|
||||
An MCommandResult collects the result returned by MGlobal::executeCommand.
|
||||
*/
|
||||
class OPENMAYA_EXPORT MCommandResult {
|
||||
|
||||
public:
|
||||
/// Itemize the mel command result types:
|
||||
enum Type {
|
||||
///
|
||||
kInvalid = 0,
|
||||
///
|
||||
kInt,
|
||||
///
|
||||
kIntArray,
|
||||
///
|
||||
kDouble,
|
||||
///
|
||||
kDoubleArray,
|
||||
///
|
||||
kString,
|
||||
///
|
||||
kStringArray,
|
||||
///
|
||||
kVector,
|
||||
///
|
||||
kVectorArray,
|
||||
///
|
||||
kMatrix,
|
||||
///
|
||||
kMatrixArray
|
||||
};
|
||||
|
||||
///
|
||||
MCommandResult(MStatus* ReturnStatus = NULL );
|
||||
///
|
||||
virtual ~MCommandResult();
|
||||
///
|
||||
Type resultType(MStatus* ReturnStatus = NULL) const;
|
||||
///
|
||||
MStatus getResult( int& ) const;
|
||||
///
|
||||
MStatus getResult( MIntArray& ) const;
|
||||
///
|
||||
MStatus getResult( double& ) const;
|
||||
///
|
||||
MStatus getResult( MDoubleArray& ) const;
|
||||
///
|
||||
MStatus getResult( MString& ) const;
|
||||
///
|
||||
MStatus getResult( MStringArray& ) const;
|
||||
///
|
||||
MStatus getResult( MVector& ) const;
|
||||
///
|
||||
MStatus getResult( MVectorArray& ) const;
|
||||
///
|
||||
MStatus getResult( MDoubleArray& result,
|
||||
int &numRows, int &numColumns) const;
|
||||
protected:
|
||||
// No protected members
|
||||
|
||||
private:
|
||||
const char* className() const;
|
||||
void *fResult;
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(default: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
// *****************************************************************************
|
||||
#endif /* __cplusplus */
|
||||
#endif /* _MCommandResult */
|
||||
Reference in New Issue
Block a user