ElementService Class Reference

The abstract base class for all element services introduced in this assembly or in the custom extention assemblies. More...

Inheritance diagram for ElementService:

IElementService XElementService NamedPropertiesService List of all members.

Public Member Functions

abstract void Load ()
 Loads service state.
abstract void Save ()
 Saves service state.

Static Public Member Functions

static IElementService GetElementServiceFor (IElement element, Guid serviceFactoryGuid)
 Gets an element sevice instance for the element.

Protected Member Functions

 ElementService (AppTreeObj parent)
 ElementService protected constructor.

Properties

IApplication Application
 Application.
IElement Element
 Element.

Classes

class  Factory
 ElementService factory class. More...

Detailed Description

The abstract base class for all element services introduced in this assembly or in the custom extention assemblies.

Derive from this class to create a custom element service. When the Acmx runtime is loaded to Acad, it searches all loaded Acmx extention assemlies for the non-abstract descendants of the ElementService class. Then a custom element service instance can be obtained via ElementService.GetElementServiceFor(...) for each element.


Constructor & Destructor Documentation

ElementService AppTreeObj  parent  )  [protected]
 

ElementService protected constructor.

ElementService has no public constructor, it's to be instantiated via its factory instance.

Parameters:
parent 


Member Function Documentation

abstract void Load  )  [pure virtual]
 

Loads service state.

Implements IElementService.

Implemented in XElementService.

abstract void Save  )  [pure virtual]
 

Saves service state.

Implements IElementService.

Implemented in XElementService.

static IElementService GetElementServiceFor IElement  element,
Guid  serviceFactoryGuid
[static]
 

Gets an element sevice instance for the element.

The returned instance reference is not being changed during the application session, so it may be cached by clients.

Parameters:
element element
serviceFactoryGuid GUID for the element service
Returns:
element service, newly created for the first time call, or cached for the next calls


Property Documentation

IApplication Application [get]
 

Application.

Implements IElementService.

IElement Element [get]
 

Element.

Implements IElementService.


Generated on Sun May 28 08:56:22 2006 for Acmx.AcadConnectivity documentation by  doxygen 1.4.5