# ApplicationFramework
TKCDF
CDF

# CDF_Store Class Reference

`#include <CDF_Store.hxx>`

## Public Member Functions

void * | operator new (size_t, void *anAddress)
void * | operator new (size_t size)
void | operator delete (void *anAddress)
Standard_EXPORT | CDF_Store (const Handle(CDM_Document)&aDocument)
| creates a store list from the document of the current selection.
Standard_EXPORT CDF_TryStoreStatus | Check ()

Checks will make the following control. Check must be used before
using Create method. Check will not be done twice by Create.
1) controls whether there is one document in the current selection.
2) controls whether there is a storage driver for the document.
3) controls whether the applicationdatatype associated with the driver
exists as metadata in the metadata manager (Design Manager for example).
4) controls whether there is a storage driver for each subcomponents
of the document if there are. If the control fails for a subcomponent,
the control stops and name and type of this subcomponent can be get
with LastName method
5) controls whether the applicationdatatype associated with the driver of
each subcomponent exists as metadata in the metadata manager
(Design Manager for example). If the control fails for a subcomponent,
the control stops and name and type of this subcomponent can be get
with LastName method
.

Standard_EXPORT Standard_ExtString | LastName () const
| in the case of a subcomponent for which no storage driver exists, returns the name of the subcomponent if there is one.
Standard_EXPORT Standard_ExtString | Folder () const
| returns the folder in which the current document will be stored.
Standard_EXPORT Standard_ExtString | Name () const
| returns the name under which the current document will be stored
Standard_EXPORT Standard_Boolean | IsStored () const
| returns true if the current document is already stored
Standard_EXPORT Standard_Boolean | IsModified () const
Standard_EXPORT Standard_Boolean | CurrentIsConsistent () const
Standard_EXPORT Standard_Boolean | IsConsistent () const
Standard_EXPORT Standard_Boolean | HasAPreviousVersion () const
Standard_EXPORT Standard_ExtString | PreviousVersion () const
Standard_EXPORT Standard_Boolean | IsMainDocument () const
| returns true if the currentdocument is the main one, ie the document of the current selection.
Standard_EXPORT Standard_Boolean | SetFolder (const TCollection_ExtendedString &aFolder)
| defines the folder in which the document should be stored. returns Standard_True if the Folder exists, Standard_False otherwise.
Standard_EXPORT CDF_StoreSetNameStatus | SetName (const Standard_ExtString aName)
| defines the name under which the document should be stored.
Standard_EXPORT void | SetComment (const Standard_ExtString aComment)
Standard_EXPORT Standard_ExtString | Comment () const
Standard_EXPORT CDF_StoreSetNameStatus | RecheckName ()
| defines the name under which the document should be stored. uses for example after modification of the folder.
Standard_EXPORT Standard_Boolean | SetPreviousVersion (const Standard_ExtString aPreviousVersion)
Standard_EXPORT void | Realize ()
Standard_EXPORT Standard_ExtString | Path () const
| returns the complete path of the created meta-data.
Standard_EXPORT Standard_ExtString | MetaDataPath () const
| returns the path of the previous store is the object is already stored, otherwise an empty string;
Standard_EXPORT Standard_ExtString | Description () const
| returns the description of the format of the main object.
Standard_EXPORT void | InitComponent ()
| Allows to Start a new Iteration from beginning .
Standard_EXPORT Standard_Boolean | MoreComponent () const
| Returns True if there are more entries to return .
Standard_EXPORT void | NextComponent ()
| Go to the next entry (if there is not, Value will raise an exception) .
Standard_EXPORT void | SetCurrent ()
Standard_EXPORT Standard_ExtString | Component () const
| Returns item value of current entry .
Standard_EXPORT Standard_Boolean | HasSubComponents () const
Standard_EXPORT CDF_SubComponentStatus | SubComponentStatus (const Standard_ExtString aPresentation) const
Standard_EXPORT void | SetCurrent (const Standard_ExtString aPresentation)
Standard_EXPORT void | SetMain ()
| the two following methods can be used just after Realize or Import -- method to know if thes methods worked correctly, and if not why.
Standard_EXPORT CDF_StoreStatus | StoreStatus () const
Standard_EXPORT Standard_ExtString | AssociatedStatusText () const
Standard_EXPORT CDF_StoreSetNameStatus | SetName (const TCollection_ExtendedString &aName)
| defines the name under which the document should be stored.
Standard_EXPORT Standard_Boolean | SetFolder (const Standard_ExtString aFolder)
| defines the folder in which the document should be stored. returns Standard_True if the Folder exists, Standard_False otherwise.

## Private Member Functions

Standard_EXPORT | CDF_Store ()
Standard_EXPORT void | FindDefault ()
Standard_EXPORT void | Init ()

## Private Attributes

Handle_CDF_StoreList | myList
Handle_CDM_Document | myMainDocument
Handle_CDM_Document | myCurrentDocument
Standard_Boolean | myHasSubComponents
Standard_Boolean | myIsMainDocument
TCollection_ExtendedString | myLastName
TCollection_ExtendedString | myPath
TCollection_ExtendedString | myText
CDF_StoreStatus | myStatus

## Constructor & Destructor Documentation

Standard_EXPORT CDF_Store::CDF_Store | ( | const Handle(CDM_Document)& | aDocument | ) |

Standard_EXPORT CDF_Store::CDF_Store | ( |  | ) | `[private]`

## Member Function Documentation

Standard_EXPORT Standard_ExtString CDF_Store::AssociatedStatusText | ( |  | ) | const

Standard_EXPORT CDF_TryStoreStatus CDF_Store::Check | ( |  | ) |

Standard_EXPORT Standard_ExtString CDF_Store::Comment | ( |  | ) | const

Standard_EXPORT Standard_ExtString CDF_Store::Component | ( |  | ) | const

Standard_EXPORT Standard_Boolean CDF_Store::CurrentIsConsistent | ( |  | ) | const

Standard_EXPORT Standard_ExtString CDF_Store::Description | ( |  | ) | const

Standard_EXPORT void CDF_Store::FindDefault | ( |  | ) | `[private]`

Standard_EXPORT Standard_ExtString CDF_Store::Folder | ( |  | ) | const

Standard_EXPORT Standard_Boolean CDF_Store::HasAPreviousVersion | ( |  | ) | const

Standard_EXPORT Standard_Boolean CDF_Store::HasSubComponents | ( |  | ) | const

Standard_EXPORT void CDF_Store::Init | ( |  | ) | `[private]`

Standard_EXPORT void CDF_Store::InitComponent | ( |  | ) |

Standard_EXPORT Standard_Boolean CDF_Store::IsConsistent | ( |  | ) | const

Standard_EXPORT Standard_Boolean CDF_Store::IsMainDocument | ( |  | ) | const

Standard_EXPORT Standard_Boolean CDF_Store::IsModified | ( |  | ) | const

Standard_EXPORT Standard_Boolean CDF_Store::IsStored | ( |  | ) | const

Standard_EXPORT Standard_ExtString CDF_Store::LastName | ( |  | ) | const

Standard_EXPORT Standard_ExtString CDF_Store::MetaDataPath | ( |  | ) | const

Standard_EXPORT Standard_Boolean CDF_Store::MoreComponent | ( |  | ) | const

Standard_EXPORT Standard_ExtString CDF_Store::Name | ( |  | ) | const

Standard_EXPORT void CDF_Store::NextComponent | ( |  | ) |

void CDF_Store::operator delete | ( | void * | anAddress | ) | `[inline]`

void* CDF_Store::operator new | ( | size_t | size | ) | `[inline]`

void* CDF_Store::operator new | ( | size_t | ,
|  | void * | anAddress
| ) | `[inline]`

Standard_EXPORT Standard_ExtString CDF_Store::Path | ( |  | ) | const

Standard_EXPORT Standard_ExtString CDF_Store::PreviousVersion | ( |  | ) | const

Standard_EXPORT void CDF_Store::Realize | ( |  | ) |

Standard_EXPORT CDF_StoreSetNameStatus CDF_Store::RecheckName | ( |  | ) |

Standard_EXPORT void CDF_Store::SetComment | ( | const Standard_ExtString | aComment | ) |

Standard_EXPORT void CDF_Store::SetCurrent | ( | const Standard_ExtString | aPresentation | ) |

Standard_EXPORT void CDF_Store::SetCurrent | ( |  | ) |

Standard_EXPORT Standard_Boolean CDF_Store::SetFolder | ( | const Standard_ExtString | aFolder | ) |

Standard_EXPORT Standard_Boolean CDF_Store::SetFolder | ( | const TCollection_ExtendedString & | aFolder | ) |

Standard_EXPORT void CDF_Store::SetMain | ( |  | ) |

Standard_EXPORT CDF_StoreSetNameStatus CDF_Store::SetName | ( | const TCollection_ExtendedString & | aName | ) |

Standard_EXPORT CDF_StoreSetNameStatus CDF_Store::SetName | ( | const Standard_ExtString | aName | ) |

Standard_EXPORT Standard_Boolean CDF_Store::SetPreviousVersion | ( | const Standard_ExtString | aPreviousVersion | ) |

Standard_EXPORT CDF_StoreStatus CDF_Store::StoreStatus | ( |  | ) | const

Standard_EXPORT CDF_SubComponentStatus CDF_Store::SubComponentStatus | ( | const Standard_ExtString | aPresentation | ) | const

## Field Documentation

Handle_CDM_Document CDF_Store::myCurrentDocument`[private]`

Standard_Boolean CDF_Store::myHasSubComponents`[private]`

Standard_Boolean CDF_Store::myIsMainDocument`[private]`

TCollection_ExtendedString CDF_Store::myLastName`[private]`

Handle_CDF_StoreList CDF_Store::myList`[private]`

Handle_CDM_Document CDF_Store::myMainDocument`[private]`

TCollection_ExtendedString CDF_Store::myPath`[private]`

CDF_StoreStatus CDF_Store::myStatus`[private]`

TCollection_ExtendedString CDF_Store::myText`[private]`

The documentation for this class was generated from the following file:

- CDF_Store.hxx