2015-01-13
	
		
		10:47 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		2023-08-01
	
		
		01:54 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			Doreena Deng
		
		
		
		
		
		
		
		
	
			
		
2015-01-13 11:13 AM
#include "AttributeManager.hpp" 
 
class MyAttributeSetObserver : public ADB::AttributeSetObserver { 
public: 
	MyAttributeSetObserver (); 
	virtual ~MyAttributeSetObserver (); 
 
	virtual	void	AttributeCreated (ADB::IDAttribute attributeTypeId, ADB::GeneralAttributeConstRef attribute) override; 
	virtual	void	AttributeChanged (ADB::IDAttribute attributeTypeId, ADB::GeneralAttributeConstRef attribute, const FieldMask& changes) override; 
	virtual	void	AttributeDeleted (ADB::IDAttribute attributeTypeId, short index) override; 
 
	virtual void	ActiveAttributeChanged (ADB::IDAttribute attributeTypeId, const ADB::GeneralAttributeRef& attributeRef) override; 
 
	virtual void	AttributeTypeRestored (ADB::IDAttribute attributeTypeId) override; 
}; 
 
 
MyAttributeSetObserver::MyAttributeSetObserver() 
{ 
	ADB::AttributeSetConstRef attrSet = GetCurrentAttributeSet (); 
	attrSet(ODB::LogicalConst)->Attach (*this); 
} 
 
 
MyAttributeSetObserver::~MyAttributeSetObserver() 
{ 
	ADB::AttributeSetConstRef attrSet = GetCurrentAttributeSet (); 
	attrSet(ODB::LogicalConst)->Detach (*this); 
} 
 
// Implement observer methods! 2015-08-14 04:32 AM
2015-08-21 03:00 AM
2015-10-02 01:20 PM
MarkHenryC wrote:This is not part of the public API; what do you need that for?
Any info on where this AttributeSet class is defined?
2015-10-02 09:49 PM
2015-10-05 10:44 AM
MarkHenryC wrote:Thanks!
I was hoping it might provide a notification when layer status has changed, such a hiding or showing. If done via main menu there's no notification.
2015-10-05 10:14 PM
2018-03-19 05:17 PM