Open CASCADE Technology 6.6.0
|
A directory is a collection of documents. There is only one instance
of a given document in a directory.
put.
#include <CDF_Directory.hxx>
Public Member Functions | |
CDF_Directory () | |
Creates an empty directory. | |
void | Add (const Handle< CDM_Document > &aDocument) |
adds a document into the directory. | |
void | Remove (const Handle< CDM_Document > &aDocument) |
removes the document. | |
Standard_Boolean | Contains (const Handle< CDM_Document > &aDocument) const |
Returns true if the document aDocument is in the directory | |
Handle_CDM_Document | Last () |
returns the last document (if any) which has been added in the directory. | |
Standard_Integer | Length () const |
returns the number of documents of the directory. | |
Standard_Boolean | IsEmpty () const |
returns true if the directory is empty. |
CDF_Directory::CDF_Directory | ( | ) |
void CDF_Directory::Add | ( | const Handle< CDM_Document > & | aDocument | ) |
Standard_Boolean CDF_Directory::Contains | ( | const Handle< CDM_Document > & | aDocument | ) | const |
Standard_Boolean CDF_Directory::IsEmpty | ( | ) | const |
Handle_CDM_Document CDF_Directory::Last | ( | ) |
Standard_Integer CDF_Directory::Length | ( | ) | const |
void CDF_Directory::Remove | ( | const Handle< CDM_Document > & | aDocument | ) |