LOFixtureLibrary Class Reference
An object to manage a collection of fixture definitions.
More...
#import <LOFixtureLibrary.h>
Detailed Description
An object to manage a collection of fixture definitions.
This allows multiple fixtures to be loaded from a single XML file and multiple fixture files, de-duping and automatically renaming non duplicates with identical names.
This library object can be used as an NSBrowser delegate to populate a browser.
Member Function Documentation
- (NSString *) commentForFixtureNamed: |
|
(NSString *) |
name |
fromManufacturer: |
|
(NSString *) |
manufacturer | |
|
|
| | |
Get the comment for the fixture with name and manufacturer.
- Returns:
- The comment or nil if no fixture.
Get the default Fixture Library for the applications.
- Returns:
- The current applications default fixture library.
- (NSXMLElement *) exportLibraryXML |
|
|
|
|
- (NSXMLElement *) exportLibraryXMLForManufacturer: |
|
(NSString *) |
theManufacturer |
|
|
Export all fixture definitions belonging to a specific manufacturer into a single XML object.
- See also:
- - exportLibraryXML
Filter the results based on the searchFilter.
This function is automatically called from setSearchFilter: so there is never any need to call it directly
Return the first fixture found in the library with the same attributes as theFixture.
The name and manufacturers names are not checked. The comment field is also ignored for the purposes of finding a matching fixture.
- See also:
- - fixtureMatchingXML:
- (LOFixture *) fixtureMatchingXML: |
|
(NSXMLElement *) |
XMLElement |
|
|
Return the first fixture found in the library with the same attributes as theFixture.
The name and manufacturers names are not checked. The comment field is also ignored for the purposes of finding a matching fixture.
- See also:
- - fixtureMatching:
- (LOFixture *) fixtureNamed: |
|
(NSString *) |
name |
fromManufacturer: |
|
(NSString *) |
manufacturer | |
|
|
| | |
Get a new instance of a fixture from the library.
- Returns:
- the fixture, or nil if no fixture exists in the library.
- (LOFixture *) fixtureSelectedInBrowser: |
|
(NSBrowser *) |
browser |
|
|
Get the fixture selected in the NSBrowser.
This can only be used if the browser uses this FixtureLibrary as its delegate
- (BOOL) importFixtureXML: |
|
(NSXMLElement *) |
XMLElement |
|
|
Import a fixture XML definition.
The format of a single fixture file follows that of a stndard fixture definition :
<fixture manufacturer="" name="">
...
</fixture>
- See also:
- - importLibraryXML:
initWithXML:
- (int) importLibraryXML: |
|
(NSXMLElement *) |
XMLElement |
|
|
Import multiple fixtures.
A library file contains multiple fixtures :
<fixtures>
<fixture manufacturer="" name="">
...
</fixture>
</fixtures>
- See also:
- - importFixtureXML:
initWithXML:
- Returns:
- The number of fixtures imported
- (id) initWithDelegate: |
|
(id) |
aDelegate |
|
|
Get an array of manufacturer names held in the library.
- Returns:
- Array of NSStrings containing the manufacturer names
- (NSArray *) namesForManufacturer: |
|
(NSString *) |
manufacturer |
|
|
All the fixture names in the library for a given manufacturer;.
- Returns:
- Array of NSStrings containing the fixture names
- (void) setDelegate: |
|
(id) |
aDelegate |
|
|
Set a new delegate object.
- Parameters:
-
| aDelegate | The object to receive all delegate messages |
- See also:
- delegate:
NSObject(LOFixtureLibraryDelegate) in LOFixtureLibrary.h
- (void) setSearchFilter: |
|
(NSString *) |
search |
|
|
Set the current serach filter, set to empty string or nil to remove the filter.
- See also:
- searchFilter
The documentation for this class was generated from the following files: