#ifndef LINUX #pragma once #endif #ifndef _MString #define _MString // // ***************************************************************************** // // Copyright (C) 1997-2001 Alias|Wavefront Inc. // // These coded instructions, statements and computer programs contain // unpublished information proprietary to Alias|Wavefront Inc. and are // protected by Canadian and US federal copyright laws. They may not be // disclosed to third parties or copied or duplicated, in whole or in part, // without prior written consent of Alias|Wavefront Inc. // // Unpublished-rights reserved under the Copyright Laws of the United States. // // ***************************************************************************** // // CLASS: MString // // ***************************************************************************** // // CLASS DESCRIPTION (MString) // // The MString class implements a string class, and is used to pass // all string arguments to Maya API methods. // // ***************************************************************************** #if defined __cplusplus // ***************************************************************************** // INCLUDED HEADER FILES #include // ***************************************************************************** // DECLARATIONS class MStringArray; // ***************************************************************************** // CLASS DECLARATION (MString) /// Manipulate strings. /** Methods for handling strings. */ #ifdef _WIN32 #pragma warning(disable: 4522) #endif // _WIN32 class OPENMAYA_EXPORT MString { public: /// MString(); /// MString( const char* charString ); /// MString( const char* charString, int charLength ); /// MString( const MString& other ); /// ~MString(); /// MString& operator += ( const MString& other ); /// MString& operator += ( const char * other ); /// MString& operator += ( double other ); /// MString& operator += ( int other ); /// MString& operator = ( const MString& other ); /// MString& operator = ( const char * other ); /// MString& operator = ( double value ); /// bool operator == ( const MString& other ) const; /// bool operator == ( const char * other ) const; /// bool operator != ( const MString& other ) const; /// bool operator != ( const char * other ) const; /// MString operator + (const MString& other ) const; /// MString operator + (const char * other ) const; /// MString operator + ( double value ) const; /// MStatus set( const char * charString ); /// MStatus set( const char * charString, int charLength ); /// MStatus set( double value ); /// MStatus set( double value, int precision ); /// const char* asChar() const; /// unsigned length() const; /// void clear(); /// int index(char) const; /// int rindex(char) const; /// MStatus split(char, MStringArray&) const; /// MString substring(int start, int end) const; /// MString& toUpperCase(); /// MString& toLowerCase(); /// bool isShort() const; /// short asShort() const; /// bool isInt() const; /// int asInt() const; /// bool isUnsigned() const; /// unsigned asUnsigned() const; /// bool isFloat() const; /// float asFloat() const; /// bool isDouble() const; /// double asDouble() const; /// friend OPENMAYA_EXPORT ostream& operator<<(ostream&, const MString& ); /// friend OPENMAYA_EXPORT MString operator+(const char *, const MString& ); protected: // No protected members private: void* api_data; }; #ifdef _WIN32 #pragma warning(default: 4522) #endif // _WIN32 // ***************************************************************************** #endif /* __cplusplus */ #endif /* _MString */