Advertisement
Guest User

Untitled

a guest
Jul 28th, 2011
922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.33 KB | None | 0 0
  1. /////////////////////////////////////////////////////////////////////////////
  2. // EuCommon.h
  3. //
  4. // Copyright (C) 2003-2010 Euphonix, Inc.
  5. // This source code is licensed under the EuCon SDK License Agreement.
  6. // All rights reserved.
  7. //
  8. // Date:        Monday, June 21, 2004
  9. // Author:      SFRESHOUR
  10. // Description: Base class for EuBrowser classes returned by EuCon.
  11. /////////////////////////////////////////////////////////////////////////////
  12. #if !defined(__EUPHONIX_EUCOMMON_H__)
  13. #define __EUPHONIX_EUCOMMON_H__
  14.  
  15. #pragma once
  16.  
  17. #include "EuDefinitions.h"
  18. #include "EuWrapperFactory.h"
  19.  
  20. #include <vector>
  21.  
  22. class EUAPI_CLASS EuCommon
  23. {
  24. public:
  25.     virtual EUAPI_FUNC tERR GetSimpleFriendlyName( tEuString&  oFriendlyName) const;
  26.  
  27.     virtual EUAPI_FUNC tERR GetSimplePersistenceID( tEuString&  oPersistID ) const;
  28.     virtual EUAPI_FUNC tERR GetFullPersistenceID( tEuString&  oPersistID ) const;
  29.  
  30.     virtual EUAPI_FUNC tERR GetAttribute( const tEuString& iAttributeID, tEuString& oAttributeValue ) const;
  31.     virtual EUAPI_FUNC tERR GetAttribute( const tEuString& iAttributeID, NEuCon::int32& oAttributeValue ) const;
  32.     virtual EUAPI_FUNC tERR GetAttribute( NEuCon::uint32 iAttributeID, tEuString& oAttributeValue ) const;
  33.     virtual EUAPI_FUNC tERR GetAttribute( NEuCon::uint32 iAttributeID, NEuCon::int32& oAttributeValue ) const;
  34.  
  35.     virtual EUAPI_FUNC tERR GetAllAttributes( std::vector<tOneAttributeBinding*>& oAllAttributes ) const;
  36.  
  37.     //   SetAttribute will:  
  38.     //    - Add the attribute if it doesn't already exist
  39.     //    - Change the value of an existing attribute
  40.     virtual EUAPI_FUNC tERR SetAttribute( const tEuString& iAttributeID, const tEuString& iNewAttributeValue, NEuCon::uint32 iNotifyStatus = kAttrNotify_None  );
  41.     virtual EUAPI_FUNC tERR SetAttribute( const tEuString& iAttributeID, NEuCon::int32 iNewAttributeValue, NEuCon::uint32 iNotifyStatus = kAttrNotify_None  );
  42.     virtual EUAPI_FUNC tERR SetAttribute( NEuCon::int32  iAttributeID, NEuCon::int32 iNewAttributeValue, NEuCon::uint32 iNotifyStatus = kAttrNotify_None  );
  43.     virtual EUAPI_FUNC tERR SetAttribute( NEuCon::int32  iAttributeID, const tEuString& iNewAttributeValue, NEuCon::uint32 iNotifyStatus = kAttrNotify_None  );
  44.  
  45.     virtual EUAPI_FUNC tERR DeleteAttribute( const tEuString& iAttributeID, NEuCon::uint32 iNotifyStatus = kAttrNotify_None );
  46.     virtual EUAPI_FUNC tERR DeleteAttribute( NEuCon::uint32 iAttributeID,     NEuCon::uint32 iNotifyStatus = kAttrNotify_None );
  47.  
  48.     EUAPI_FUNC void  ClearUserPointer();
  49.     EUAPI_FUNC void  SetUserPointer( void*  iUserPointer );
  50.     EUAPI_FUNC void  GetUserPointer( void*& oUserPointer );
  51.     EUAPI_FUNC void* GetUserPointer();
  52.  
  53.     // Reserved for use by EuCon
  54.     EUAPI_FUNC tERR  EuCommonCommand( NEuCon::uint32 iCommandID,      NEuCon::uint32 iIntParam1,       NEuCon::uint32 iIntParam2,  
  55.                                       NEuCon::uint32& oIntParam,      void*  ioVoidPtr1 = NULL,        void*  ioVoidPtr2 = NULL   );
  56.  
  57. private:
  58.     EuCommon(const EuCommon&);          // disallowed  
  59.     bool operator=(const EuCommon&);    // disallowed  
  60.  
  61. protected:
  62.     EUAPI_FUNC EuCommon();                     
  63.     EUAPI_FUNC EuCommon(NEuCon::tOpaquePtr iSelf);
  64.     virtual EUAPI_FUNC ~EuCommon();
  65.  
  66.     NEuCon::tOpaquePtr  mSelf;
  67.     bool                mClientSideCreated;
  68.  
  69. public:
  70.     // RESERVED FOR C API WRAPPERS ONLY!
  71.     NEuCon::tOpaquePtr      GetSelf() const { return(mSelf); };
  72. };
  73.  
  74. #endif  // __EUPHONIX_EUCOMMON_H__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement