#include <SignatureSet.h>

Public Member Functions | |
| virtual bool | insertSignature (Signature *pSignature)=0 |
| virtual bool | insertSignatures (const std::vector< Signature * > &signatures)=0 |
| virtual bool | hasSignature (Signature *pSignature) const =0 |
| virtual unsigned int | getNumSignatures () const =0 |
| virtual std::vector< Signature * > | getSignatures () const =0 |
| virtual bool | removeSignature (Signature *pSignature, bool bDelete=false)=0 |
| virtual bool | removeSignatures (const std::vector< Signature * > &signatures, bool bDelete=false)=0 |
| virtual void | clear (bool bDelete=false)=0 |
Protected Member Functions | |
| virtual | ~SignatureSet () |
This class provides encapsulation for multiple signatures into a single object. The SignatureSet is also a type of signature, so it can contain metadata, a description, and acquisition values. Signatures can be inserted into and removed from the set.
When a SignatureSet is deleted, Signatures contained in the set are not automatically deleted unless the SignatureSet is an ancestor of the Signature.
This subclass of Subject will notify upon the following conditions:
Definition at line 34 of file SignatureSet.h.
| virtual SignatureSet::~SignatureSet | ( | ) | [protected, virtual] |
This should be destroyed by calling ModelServices::destroyElement.
Definition at line 154 of file SignatureSet.h.
| virtual bool SignatureSet::insertSignature | ( | Signature * | pSignature | ) | [pure virtual] |
Adds an existing signature into the set.
| pSignature | The signature to add to the set. |
Implemented in SignatureLibrary.
| virtual bool SignatureSet::insertSignatures | ( | const std::vector< Signature * > & | signatures | ) | [pure virtual] |
Add several signatures to the set.
It is possible to add the same sig to the set multiple times.
This method adds several sigs to the set. If any of the sigs to add are NULL, the method will fail, having done nothing.
| signatures | A vector of signatures to add to the set |
Implemented in SignatureLibrary.
| virtual bool SignatureSet::hasSignature | ( | Signature * | pSignature | ) | const [pure virtual] |
Checks to see if a signature is in the set.
| pSignature | The signature to check for. |
| virtual unsigned int SignatureSet::getNumSignatures | ( | ) | const [pure virtual] |
Counts the signatures in the set.
| virtual std::vector<Signature*> SignatureSet::getSignatures | ( | ) | const [pure virtual] |
Returns a vector of pointers to the signatures in the set.
| virtual bool SignatureSet::removeSignature | ( | Signature * | pSignature, | |
| bool | bDelete = false | |||
| ) | [pure virtual] |
Removed a signature from the set.
| pSignature | The signature to remove from the set. | |
| bDelete | TRUE if the signature should be deleted when removed from the set, otherwise FALSE. |
Implemented in SignatureLibrary.
| virtual bool SignatureSet::removeSignatures | ( | const std::vector< Signature * > & | signatures, | |
| bool | bDelete = false | |||
| ) | [pure virtual] |
Removes several signatures from the set.
This method removes several sigs from the set, optionally deleting them in the process. If the list of sigs to remove contains sigs not in the set, those sigs will be ignored.
| signatures | A vector of sigs to remove from the set | |
| bDelete | Specifies if the signatures should be destroyed as well as being removed from the set. Signatures not found in the set will not be deleted regardless of the value of this parameter. |
true if the list of signatures to remove was not empty and all of the specified signatures were found in the set; otherwise returns false.Implemented in SignatureLibrary.
| virtual void SignatureSet::clear | ( | bool | bDelete = false |
) | [pure virtual] |
Removes all of the signatures from the set.
This method removes all of the signatures from the set, optionally deleting them in the process.
| bDelete | Specifies if the signatures should be destroyed as well as being removed from the set. |
Implemented in SignatureLibrary.