Information object that can be used to obtain information about a file/directory. More...
#include <vtkPVFileInformation.h>
Public Types | |
enum | FileTypes { INVALID = 0, SINGLE_FILE, SINGLE_FILE_LINK, DIRECTORY, DIRECTORY_LINK, FILE_GROUP, DRIVE, NETWORK_ROOT, NETWORK_DOMAIN, NETWORK_SERVER, NETWORK_SHARE, DIRECTORY_GROUP } |
typedef vtkPVInformation | Superclass |
Public Types inherited from vtkPVInformation | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | CopyFromObject (vtkObject *object) override |
Transfer information about a single object into this object. More... | |
void | Initialize () |
Initializes the information object. More... | |
void | FetchDirectoryListing () |
Fetch the directory listing to be able to use GetSize or GetContents with directories. More... | |
void | CopyToStream (vtkClientServerStream *) override |
Manage a serialized version of the information. More... | |
void | CopyFromStream (const vtkClientServerStream *) override |
Manage a serialized version of the information. More... | |
virtual char * | GetName () |
Get the name of the file/directory whose information is represented by this object. More... | |
virtual char * | GetFullPath () |
Get the full path of the file/directory whose information is represented by this object. More... | |
virtual int | GetType () |
Get the type of this file object. More... | |
virtual bool | GetHidden () |
Get the state of the hidden flag for the file/directory. More... | |
virtual bool | GetGroupFileSequences () |
Groups file sequences when found. More... | |
virtual void | SetGroupFileSequences (bool) |
Groups file sequences when found. More... | |
virtual void | GroupFileSequencesOn () |
Groups file sequences when found. More... | |
virtual void | GroupFileSequencesOff () |
Groups file sequences when found. More... | |
virtual vtkCollection * | GetContents () |
Get the Contents for this directory. More... | |
virtual char * | GetExtension () |
Get the Contents for this directory. More... | |
virtual long long | GetSize () |
Get the Contents for this directory. More... | |
virtual time_t | GetModificationTime () |
Get the Contents for this directory. More... | |
Public Member Functions inherited from vtkPVInformation | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | AddInformation (vtkPVInformation *) |
Merge another information object. More... | |
virtual void | CopyParametersToStream (vtkMultiProcessStream &) |
Serialize/Deserialize the parameters that control how/what information is gathered. More... | |
virtual void | CopyParametersFromStream (vtkMultiProcessStream &) |
Serialize/Deserialize the parameters that control how/what information is gathered. More... | |
virtual int | GetRootOnly () |
Set/get whether to gather information only from the root. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkPVFileInformation * | New () |
static int | IsTypeOf (const char *type) |
static vtkPVFileInformation * | SafeDownCast (vtkObject *o) |
static std::string | GetParaViewSharedResourcesDirectory () |
Returns the path to the base data directory path holding various files packaged with ParaView. More... | |
static std::string | GetParaViewExampleFilesDirectory () |
Return the path of the example data packaged with ParaView. More... | |
static std::string | GetParaViewDocDirectory () |
Return the path of the documents packaged with ParaView. More... | |
static std::string | GetParaViewTranslationsDirectory () |
Return the path of the translations packaged with ParaView. More... | |
Static Public Member Functions inherited from vtkPVInformation | |
static int | IsTypeOf (const char *type) |
static vtkPVInformation * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Attributes | |
vtkCollection * | Contents |
vtkFileSequenceParser * | SequenceParser |
char * | Name |
char * | FullPath |
int | Type |
bool | Hidden |
char * | Extension |
long long | Size |
time_t | ModificationTime |
int | FastFileTypeDetection |
bool | ReadDetailedFileInformation |
bool | GroupFileSequences |
bool | IncludeExamples |
Protected Attributes inherited from vtkPVInformation | |
int | RootOnly |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
static bool | IsDirectory (int t) |
Helper that returns whether a FileType is a directory (DIRECTORY, DRIVE, NETWORK_ROOT, etc...) Or in other words, a type that we can do a DirectoryListing on. More... | |
bool | IsDirectory () const |
Helper that returns whether a FileType is a directory (DIRECTORY, DRIVE, NETWORK_ROOT, etc...) Or in other words, a type that we can do a DirectoryListing on. More... | |
static bool | IsGroup (int type) |
Helper that returns true if file-type is a network related file i.e. More... | |
bool | IsGroup () const |
Helper that returns true if file-type is a network related file i.e. More... | |
Information object that can be used to obtain information about a file/directory.
vtkPVFileInformation can be used to collect information about file or directory. vtkPVFileInformation can collect information from a vtkPVFileInformationHelper object alone.
Definition at line 27 of file vtkPVFileInformation.h.
Definition at line 31 of file vtkPVFileInformation.h.
Enumerator | |
---|---|
INVALID | |
SINGLE_FILE | |
SINGLE_FILE_LINK | |
DIRECTORY | |
DIRECTORY_LINK | |
FILE_GROUP | |
DRIVE | |
NETWORK_ROOT | |
NETWORK_DOMAIN | |
NETWORK_SERVER | |
NETWORK_SHARE | |
DIRECTORY_GROUP |
Definition at line 48 of file vtkPVFileInformation.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkPVInformation.
Reimplemented from vtkPVInformation.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
|
overridevirtual |
Transfer information about a single object into this object.
The object must be a vtkPVFileInformationHelper.
Reimplemented from vtkPVInformation.
|
overridevirtual |
Manage a serialized version of the information.
Implements vtkPVInformation.
|
overridevirtual |
Manage a serialized version of the information.
Reimplemented from vtkPVInformation.
|
static |
Helper that returns whether a FileType is a directory (DIRECTORY, DRIVE, NETWORK_ROOT, etc...) Or in other words, a type that we can do a DirectoryListing on.
|
inline |
Helper that returns whether a FileType is a directory (DIRECTORY, DRIVE, NETWORK_ROOT, etc...) Or in other words, a type that we can do a DirectoryListing on.
Definition at line 71 of file vtkPVFileInformation.h.
|
inlinestatic |
Helper that returns true if file-type is a network related file i.e.
either a FILE_GROUP or a DIRECTORY_GROUP.
Definition at line 79 of file vtkPVFileInformation.h.
|
inline |
Helper that returns true if file-type is a network related file i.e.
either a FILE_GROUP or a DIRECTORY_GROUP.
Definition at line 90 of file vtkPVFileInformation.h.
void vtkPVFileInformation::Initialize | ( | ) |
Initializes the information object.
|
virtual |
Get the name of the file/directory whose information is represented by this object.
|
virtual |
Get the full path of the file/directory whose information is represented by this object.
|
virtual |
Get the type of this file object.
|
virtual |
Get the state of the hidden flag for the file/directory.
|
virtual |
Groups file sequences when found.
A file sequence could be [foo1.png, foo2.png, foo6.png]. When turned on, the series of files is grouped and our sequence example is named foo..png and original files are discarded from the listing. By default, this flag is set to true.
|
virtual |
Groups file sequences when found.
A file sequence could be [foo1.png, foo2.png, foo6.png]. When turned on, the series of files is grouped and our sequence example is named foo..png and original files are discarded from the listing. By default, this flag is set to true.
|
virtual |
Groups file sequences when found.
A file sequence could be [foo1.png, foo2.png, foo6.png]. When turned on, the series of files is grouped and our sequence example is named foo..png and original files are discarded from the listing. By default, this flag is set to true.
|
virtual |
Groups file sequences when found.
A file sequence could be [foo1.png, foo2.png, foo6.png]. When turned on, the series of files is grouped and our sequence example is named foo..png and original files are discarded from the listing. By default, this flag is set to true.
|
virtual |
Get the Contents for this directory.
Returns a collection with vtkPVFileInformation objects for the contents of this directory if Type == DIRECTORY or the contents of this file group if Type == FILE_GROUP or the contents of this directory group if Type == DIRECTORY_GROUP.
|
virtual |
Get the Contents for this directory.
Returns a collection with vtkPVFileInformation objects for the contents of this directory if Type == DIRECTORY or the contents of this file group if Type == FILE_GROUP or the contents of this directory group if Type == DIRECTORY_GROUP.
|
virtual |
Get the Contents for this directory.
Returns a collection with vtkPVFileInformation objects for the contents of this directory if Type == DIRECTORY or the contents of this file group if Type == FILE_GROUP or the contents of this directory group if Type == DIRECTORY_GROUP.
|
virtual |
Get the Contents for this directory.
Returns a collection with vtkPVFileInformation objects for the contents of this directory if Type == DIRECTORY or the contents of this file group if Type == FILE_GROUP or the contents of this directory group if Type == DIRECTORY_GROUP.
void vtkPVFileInformation::FetchDirectoryListing | ( | ) |
Fetch the directory listing to be able to use GetSize or GetContents with directories.
|
static |
Returns the path to the base data directory path holding various files packaged with ParaView.
|
static |
Return the path of the example data packaged with ParaView.
|
static |
Return the path of the documents packaged with ParaView.
|
static |
Return the path of the translations packaged with ParaView.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 184 of file vtkPVFileInformation.h.
|
protected |
Definition at line 185 of file vtkPVFileInformation.h.
|
protected |
Definition at line 187 of file vtkPVFileInformation.h.
|
protected |
Definition at line 188 of file vtkPVFileInformation.h.
|
protected |
Definition at line 189 of file vtkPVFileInformation.h.
|
protected |
Definition at line 190 of file vtkPVFileInformation.h.
|
protected |
Definition at line 191 of file vtkPVFileInformation.h.
|
protected |
Definition at line 192 of file vtkPVFileInformation.h.
|
protected |
Definition at line 193 of file vtkPVFileInformation.h.
|
protected |
Definition at line 209 of file vtkPVFileInformation.h.
|
protected |
Definition at line 210 of file vtkPVFileInformation.h.
|
protected |
Definition at line 211 of file vtkPVFileInformation.h.
|
protected |
Definition at line 212 of file vtkPVFileInformation.h.