00001
00011
00012
00013 #if (_MSC_VER > 1000) || defined(SGI_COMPILER)
00014 #pragma once
00015 #endif
00016
00017 #ifndef __XSIPREFERENCES_H__
00018 #define __XSIPREFERENCES_H__
00019
00020 #include <xsi_value.h>
00021 #include <xsi_siobject.h>
00022
00023 namespace XSI {
00024
00025
00080
00081 class SICPPSDKDECL Preferences : public SIObject
00082 {
00083 public:
00085 Preferences();
00086
00088 ~Preferences();
00089
00093 Preferences(const CRef& in_ref);
00094
00098 Preferences(const Preferences& in_obj);
00099
00104 bool IsA( siClassID in_ClassID) const;
00105
00109 siClassID GetClassID() const;
00110
00116 Preferences& operator=(const Preferences& in_obj);
00117
00123 Preferences& operator=(const CRef& in_ref);
00124
00128 CRefArray GetCategories( ) const;
00129
00136 CStatus GetPreferenceValue( const CString &in_sPrefName, CValue &out_value);
00137
00144 CStatus SetPreferenceValue( const CString &in_sPrefName, const CValue &in_value);
00145
00153 CStatus Import( const CString &in_sFile );
00154
00161 CStatus Export( const CString &in_sFile, const CString &in_sCategories );
00162
00168 CStatus RestoreDefault( const CString &in_sPrefName );
00169
00170 private:
00171 Preferences * operator&() const;
00172 Preferences * operator&();
00173 };
00174
00175 };
00176
00177 #endif // __XSIPREFERENCES_H__