Initial commit
This commit is contained in:
116
Torque/SDK/lib/mayasdk6/include/maya/MFileObject.h
Normal file
116
Torque/SDK/lib/mayasdk6/include/maya/MFileObject.h
Normal file
@@ -0,0 +1,116 @@
|
||||
|
||||
#ifndef _MFileObject
|
||||
#define _MFileObject
|
||||
//
|
||||
//-
|
||||
// ==========================================================================
|
||||
// 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: MFileObject
|
||||
//
|
||||
// *****************************************************************************
|
||||
//
|
||||
// CLASS DESCRIPTION (MFileObject)
|
||||
//
|
||||
// The MFileObject class implements an object that contains both a
|
||||
// filename and a search path. The search path is specified by a single
|
||||
// string in which multiple elements are separated by ':' characters. As
|
||||
// well this string can contain Unix environment variables, specified as
|
||||
// $VARNAME,
|
||||
//
|
||||
// Filenames can be produced by the class by combining the path element
|
||||
// with the filename element of the MFileObject. As well, methods are
|
||||
// available to test for the existance of the files produced.
|
||||
//
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
#if defined __cplusplus
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// INCLUDED HEADER FILES
|
||||
|
||||
|
||||
|
||||
#include <maya/MStatus.h>
|
||||
#include <maya/MTypes.h>
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// DECLARATIONS
|
||||
|
||||
class MString;
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// CLASS DECLARATION (MFileObject)
|
||||
|
||||
/// Manipulate Unix filenames and search paths
|
||||
/**
|
||||
Manipulate Unix filenames and search paths
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
class OPENMAYA_EXPORT MFileObject
|
||||
{
|
||||
public:
|
||||
///
|
||||
MFileObject();
|
||||
///
|
||||
MFileObject( const MFileObject & other );
|
||||
///
|
||||
virtual ~MFileObject();
|
||||
///
|
||||
MFileObject& operator=( const MFileObject & other );
|
||||
///
|
||||
MStatus setName( const MString & fileName );
|
||||
///
|
||||
MStatus setRawPath( const MString & pathString );
|
||||
///
|
||||
MStatus setFullName( const MString & fileName );
|
||||
///
|
||||
MString name() const;
|
||||
///
|
||||
MString rawPath() const;
|
||||
///
|
||||
MString path() const;
|
||||
///
|
||||
MString fullName() const;
|
||||
///
|
||||
unsigned pathCount();
|
||||
///
|
||||
MString ithPath( unsigned index );
|
||||
///
|
||||
MString ithFullName( unsigned index );
|
||||
///
|
||||
bool exists();
|
||||
///
|
||||
bool exists( unsigned index );
|
||||
///
|
||||
bool isSet() const;
|
||||
|
||||
protected:
|
||||
// No protected members
|
||||
|
||||
private:
|
||||
void * data;
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(default: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
// *****************************************************************************
|
||||
#endif /* __cplusplus */
|
||||
#endif /* _MFileObject */
|
||||
Reference in New Issue
Block a user