Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Member Functions

vl::DiskDirectory Class Reference

A VirtualDirectory that operates on reguar disk directories. More...

#include <DiskDirectory.hpp>

Inheritance diagram for vl::DiskDirectory:
vl::VirtualDirectory vl::Object

List of all members.

Public Member Functions

 DiskDirectory ()
 DiskDirectory (const String &path)
void listFilesRecursive (std::vector< String > &file_list) const
 Use carefully this function, since this search the whole given file system tree.
void listFiles (std::vector< String > &file_list, bool append=false) const
void listFiles (std::vector< ref< DiskFile > > &file_list, bool append=false) const
void listSubDirs (std::vector< String > &dirs, bool append=false) const
ref< DiskDirectorydiskSubDir (const String &subdir_name) const
ref< VirtualDirectorysubDir (const String &subdir_name) const
virtual ref< VirtualFilefile (const String &name) const
 Returns the VirtualFile with the given name if any, NULL otherwise.
virtual ref< DiskFilediskFile (const String &name) const
bool exists () const

Protected Member Functions

void listFilesRecursive_internal (std::vector< String > &file_list) const

Detailed Description

A VirtualDirectory that operates on reguar disk directories.

See also:

Definition at line 55 of file DiskDirectory.hpp.


Constructor & Destructor Documentation

DiskDirectory::DiskDirectory (  )

Definition at line 55 of file DiskDirectory.cpp.

Referenced by diskSubDir().

DiskDirectory::DiskDirectory ( const String path )

Definition at line 50 of file DiskDirectory.cpp.

References vl::VirtualDirectory::setPath().


Member Function Documentation

void DiskDirectory::listFilesRecursive ( std::vector< String > &  file_list ) const [virtual]

Use carefully this function, since this search the whole given file system tree.

Implements vl::VirtualDirectory.

Definition at line 59 of file DiskDirectory.cpp.

References listFilesRecursive_internal().

void DiskDirectory::listFiles ( std::vector< String > &  file_list,
bool  append = false 
) const [virtual]
void DiskDirectory::listFiles ( std::vector< ref< DiskFile > > &  file_list,
bool  append = false 
) const

Definition at line 201 of file DiskDirectory.cpp.

References file(), and listFiles().

void DiskDirectory::listSubDirs ( std::vector< String > &  dirs,
bool  append = false 
) const [virtual]
ref< DiskDirectory > DiskDirectory::diskSubDir ( const String subdir_name ) const
ref<VirtualDirectory> vl::DiskDirectory::subDir ( const String subdir_name ) const [inline, virtual]

Implements vl::VirtualDirectory.

Definition at line 75 of file DiskDirectory.hpp.

virtual ref<VirtualFile> vl::DiskDirectory::file ( const String name ) const [virtual]

Returns the VirtualFile with the given name if any, NULL otherwise.

Implements vl::VirtualDirectory.

Referenced by listFiles().

virtual ref<DiskFile> vl::DiskDirectory::diskFile ( const String name ) const [virtual]
bool DiskDirectory::exists (  ) const
void vl::DiskDirectory::listFilesRecursive_internal ( std::vector< String > &  file_list ) const [protected]

Referenced by listFilesRecursive().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:06.
Permission is granted to use this page to write and publish articles regarding Visualization Library.