Class BaseInterfaceServer

3DS Max Plug-In SDK

Class BaseInterfaceServer

See Also: Class InterfaceServer, Class BaseInterface

class BaseInterfaceServer : public InterfaceServer

Description:

This class is available in release 4.0 and later only.

The BaseInterface server class specializes the InterfaceServer class with an implementation based on a Tab<> of interface pointers for storing interfaces, typically extension interfaces, and providing an interface iteration protocol. class IObject in the Function Publishing System specializes class BaseInterfaceServer. The class contains a protected table of BaseInterface pointers. Class IObject is an example of a class which is based on the BaseInterfaceServer class.

Methods:

public:

Prototype:

virtual BaseInterface* GetInterface(Interface_ID id);

Remarks:

This method returns a pointer to the BaseInterface of the specified interface.

Parameters:

Interface_ID id

The interface ID for which to return the BaseInterface.

Prototype:

virtual int NumInterfaces() const;

Remarks:

This method returns the number of interfaces.

Default Implementation:

{ return interfaces.Count(); }

Prototype:

virtual BaseInterface* GetInterfaceAt(int i) const;

Remarks:

This method returns a pointer to the BaseInterface of the I-th interface.

Parameters:

int i

The index of the interface in the table.

Default Implementation:

{ return interfaces[i]; }

 

Prototype:

~BaseInterfaceServer();

Remarks:

Destructor.