FileEventHandler/FileEventHandler.h

//**************************************************************************/
// Copyright (c) 2008 Autodesk, Inc.
// All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies this software in either electronic or hard copy form.
//
//**************************************************************************/
// DESCRIPTION:
// CREATED: October 2008
//**************************************************************************/

#if defined(JAMBUILD)
#include <Mudbox/mudbox.h>
#else
#include "../../include/Mudbox/mudbox.h"
#endif

// We are using the mudbox namespace. 
using namespace mudbox;

// One class will be defined here, which will catch file events.
class FileEventHandler : public Node
{
    // This function will be called by mudbox every time when an event happens.
    void OnNodeEvent( const Attribute &cAttribute, NodeEventType eType );

    // This attribute is a pointer to a FileEvent structure. This pointer will change its values every time when a new file event happens, 
    aptr<FileEventNotifier> m_pEvent;

public:
    // This function will be only called once, this will hook this node to catch the file events properly.
    static void Initializer( void );
};