This reference page is linked to from the following overview topics: Vault and Asset Tracking.
ATSFileEntry describes a file monitored by the Asset Tracking System. It contains information about the status, children (or dependent) files, and any attachment files to this file. Children define the file dependency tree for a particular ATSFileEntry. Attachments do not define a hierarchy and are single entries associated with the ATSFileEntry. Attachments are not considered a dependency and are simply files associated with the ATSFileEntry.
#include <IATSProvider.h>
Public Member Functions |
|
ATSExport | ATSFileEntry () |
Constructor. |
|
virtual ATSExport | ~ATSFileEntry () |
Destructor. |
|
virtual ATSExport const MCHAR * | GetFile () |
Get file name. |
|
virtual ATSExport void | SetFile (const MCHAR *szFile) |
Set file name. |
|
virtual ATSExport ATSStatus | GetFlagsIn () |
Get the In Flags for this file. |
|
virtual ATSExport void | SetFlagsIn (ATSStatus dwFlagsIn) |
Set the In Flags for this file. |
|
virtual ATSExport ATSClientPtr | GetClientPtr () |
Get the client pointer associated with this
file. |
|
virtual ATSExport void | SetClientPtr (ATSClientPtr pClientPtr) |
Set the client pointer associated with this
file. |
|
virtual ATSExport ATSStatus | GetFlagsOut () |
Get the Out Flags for this file. |
|
virtual ATSExport void | SetFlagsOut (ATSStatus dwFlagsOut) |
Set the Out Flags for this file. |
|
virtual ATSExport UINT | AddChild (ATSFileEntry *pEntry) |
Add child. |
|
virtual ATSExport UINT | NumChildren () |
Number of children. |
|
virtual ATSExport ATSFileEntry * | GetChild (UINT iIndex) |
Get child. |
|
virtual ATSExport bool | RemoveChild (UINT iIndex) |
Remove child. |
|
virtual ATSExport bool | RemoveAllChildren () |
Remove all child. |
|
virtual ATSExport UINT | AddAttachment (const MCHAR *szFile, ATSFileEntry *pEntryParent=NULL, ATSStatus dwFlagsIn=ATS::kATSStatusActive, ATSClientPtr pClientPtr=NULL) |
Add attachment. |
|
virtual ATSExport UINT | AddAttachment (ATSFileEntry *pEntry) |
Add attachment. |
|
virtual ATSExport UINT | NumAttachments () |
Number of attachments. |
|
virtual ATSExport ATSFileEntry * | GetAttachment (UINT iIndex) |
Get attachment. |
|
virtual ATSExport bool | RemoveAttachment (UINT iIndex) |
Remove attachment. |
|
virtual ATSExport bool | RemoveAllAttachments () |
Remove all attachments. |
|
virtual ATSExport void | SetParent (ATSFileEntry *pParent) |
Set parent. |
|
virtual ATSExport ATSFileEntry * | GetParent () |
Get parent. |
|
Protected Attributes |
|
ATSString | mFile |
ATSStatus | mFlagsIn |
ATSStatus | mFlagsOut |
ATSClientPtr | mClientPtr |
std::vector< ATSFileEntry * > | mChildren |
ATSFileEntry * | mpParent |
std::vector< ATSFileEntry * > | mAttachments |
ATSExport ATSFileEntry | ( | ) |
Constructor.
virtual ATSExport ~ATSFileEntry | ( | ) | [virtual] |
Destructor.
virtual ATSExport const MCHAR* GetFile | ( | ) | [virtual] |
virtual ATSExport void SetFile | ( | const MCHAR * | szFile | ) | [virtual] |
virtual ATSExport ATSStatus GetFlagsIn | ( | ) | [virtual] |
Get the In Flags for this file.
The In flags are typically used to select, activate, exclude, etc. an ATSFileEntry within a ATSFileList.
virtual ATSExport void SetFlagsIn | ( | ATSStatus | dwFlagsIn | ) | [virtual] |
Set the In Flags for this file.
The In flags are typically used to select, activate, exclude, etc. an ATSFileEntry within a ATSFileList.
[in] | dwFlagsIn | In flags |
virtual ATSExport ATSClientPtr GetClientPtr | ( | ) | [virtual] |
Get the client pointer associated with this file.
Client pointer specified for this file
virtual ATSExport void SetClientPtr | ( | ATSClientPtr | pClientPtr | ) | [virtual] |
Set the client pointer associated with this file.
[in] | pClientPtr | client pointer |
virtual ATSExport ATSStatus GetFlagsOut | ( | ) | [virtual] |
Get the Out Flags for this file.
The Out flags are typically set by an ATS Provider to specify the version control status of this file.
virtual ATSExport void SetFlagsOut | ( | ATSStatus | dwFlagsOut | ) | [virtual] |
Set the Out Flags for this file.
The Out flags are typically set by an ATS Provider to specify the version control status of this file.
[in] | dwFlagsOut | Out flags (ATSStatus) |
virtual ATSExport UINT AddChild | ( | ATSFileEntry * | pEntry | ) | [virtual] |
Add child.
[in] | pEntry | Pointer to ATSFileEntry object to add as child |
virtual ATSExport UINT NumChildren | ( | ) | [virtual] |
virtual ATSExport ATSFileEntry* GetChild | ( | UINT | iIndex | ) | [virtual] |
virtual ATSExport bool RemoveChild | ( | UINT | iIndex | ) | [virtual] |
Remove child.
[in] | iIndex | 0-based index of child |
virtual ATSExport bool RemoveAllChildren | ( | ) | [virtual] |
virtual ATSExport UINT AddAttachment | ( | const MCHAR * | szFile, |
ATSFileEntry * | pEntryParent =
NULL , |
||
ATSStatus | dwFlagsIn = ATS::kATSStatusActive , |
||
ATSClientPtr | pClientPtr =
NULL |
||
) | [virtual] |
Add attachment.
[in] | szFile | string that contains file name |
[in] | pEntryParent | default is NULL. Pointer to parent ATSFileEntry object |
[in] | dwFlagsIn | default is kATSStatusActive. ATSStatus value that specified initial In flags. |
[in] | pClientPtr | default is NULL. Client defined pointer. |
virtual ATSExport UINT AddAttachment | ( | ATSFileEntry * | pEntry | ) | [virtual] |
Add attachment.
[in] | pEntry | Pointer to ATSFileEntry object to add as an attachment. ATSFileEntry object will be copied. |
virtual ATSExport UINT NumAttachments | ( | ) | [virtual] |
virtual ATSExport ATSFileEntry* GetAttachment | ( | UINT | iIndex | ) | [virtual] |
Get attachment.
[in] | iIndex | 0-based index of attachment |
virtual ATSExport bool RemoveAttachment | ( | UINT | iIndex | ) | [virtual] |
Remove attachment.
[in] | iIndex | 0-based index of attachment |
virtual ATSExport bool RemoveAllAttachments | ( | ) | [virtual] |
virtual ATSExport void SetParent | ( | ATSFileEntry * | pParent | ) | [virtual] |
Set parent.
[in] | pParent | Pointer to ATSFileEntry object to set as parent |
virtual ATSExport ATSFileEntry* GetParent | ( | ) | [virtual] |
ATSString mFile
[protected] |
ATSStatus mFlagsIn
[protected] |
ATSStatus mFlagsOut
[protected] |
ATSClientPtr mClientPtr
[protected] |
std::vector< ATSFileEntry* > mChildren
[protected] |
ATSFileEntry* mpParent
[protected] |
std::vector< ATSFileEntry* > mAttachments
[protected] |