libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moDirectory Class Reference

#include <moFileManager.h>

Inheritance diagram for moDirectory:
moAbstract

Public Member Functions

 moDirectory ()
 
 moDirectory (moText p_CompletePath, moFileManager *p_pFileManager=NULL)
 
virtual ~moDirectory ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Init (moFileManager *p_FileManager)
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
MOboolean Open (moText p_CompletePath, moText p_Search="/*.*")
 
MOboolean Exists ()
 
MOboolean IsRemote ()
 
MOboolean HasSubdirs ()
 
void SetType (moFileType p_filetype)
 
void SetCompletePath (moText p_completepath)
 
moFileType GetType ()
 
moFileStatus GetStatus ()
 
moText GetCompletePath ()
 
moText GetDirName ()
 
moText GetProtocol ()
 
moFileFindFirst ()
 
moFileFindNext ()
 
moFileFindLast ()
 
moFileFind (MOint index)
 
moFileFind (moText filename)
 
void Update ()
 
moFileArray & GetFiles ()
 
moDirectoryArray & GetSubDirs ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Protected Attributes

moFileType m_DirType
 
moFileStatus m_DirStatus
 
MOint m_FileIndex
 
moText m_DirName
 
moTextArray m_DirNameArray
 
moText m_CompletePath
 
moText m_Protocol
 
MOboolean m_bExists
 
MOboolean m_bRemote
 
moFileManagerm_pFileManager
 
moFileArray m_Files
 
moDirectoryArray m_SubDirs
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

Definition at line 164 of file moFileManager.h.

Constructor & Destructor Documentation

moDirectory::moDirectory ( )

Definition at line 54 of file moFileManager.cpp.

moDirectory::moDirectory ( moText  p_CompletePath,
moFileManager p_pFileManager = NULL 
)

Definition at line 56 of file moFile.cpp.

moDirectory::~moDirectory ( )
virtual

Definition at line 65 of file moFile.cpp.

Member Function Documentation

MOboolean moDirectory::Exists ( )

Definition at line 281 of file moFile.cpp.

moFile * moDirectory::Find ( MOint  index)

Definition at line 352 of file moFile.cpp.

moFile * moDirectory::Find ( moText  filename)

Definition at line 363 of file moFile.cpp.

moFile * moDirectory::FindFirst ( )

Definition at line 314 of file moFile.cpp.

moFile * moDirectory::FindLast ( )

Definition at line 341 of file moFile.cpp.

moFile * moDirectory::FindNext ( )

Definition at line 325 of file moFile.cpp.

MOboolean moDirectory::Finish ( )
virtual

Finaliza el objeto, libera recursos.

Función de finalización. Libera los recursos generados en la función de inicialización.

Returns
verdadero si fue exitosa o falso en otro caso

Empty subdirs array

Reimplemented from moAbstract.

Definition at line 267 of file moFile.cpp.

moText moDirectory::GetCompletePath ( )

Definition at line 292 of file moFile.cpp.

moText moDirectory::GetDirName ( )

Definition at line 406 of file moFileManager.cpp.

moFileArray & moDirectory::GetFiles ( )

Definition at line 381 of file moFile.cpp.

moText moDirectory::GetProtocol ( )

Definition at line 303 of file moFile.cpp.

moFileStatus moDirectory::GetStatus ( )

Definition at line 309 of file moFile.cpp.

moDirectoryArray & moDirectory::GetSubDirs ( )

Definition at line 570 of file moFileManager.cpp.

moFileType moDirectory::GetType ( )

Definition at line 298 of file moFile.cpp.

MOboolean moDirectory::HasSubdirs ( )

Definition at line 390 of file moFileManager.cpp.

MOboolean moDirectory::Init ( )
virtual

Inicializa el objeto.

Función de Inicialización. Todos los recursos manejados exclusivamente por este objeto son generados aquí.

Returns
verdadero si fue exitosa o falso en otro caso

Reimplemented from moAbstract.

Definition at line 255 of file moFile.cpp.

MOboolean moDirectory::Init ( moFileManager p_FileManager)
virtual

Definition at line 260 of file moFile.cpp.

MOboolean moDirectory::IsRemote ( )

Definition at line 287 of file moFile.cpp.

MOboolean moDirectory::Open ( moText  p_CompletePath,
moText  p_Search = "/*.*" 
)

Empty file array

Empty subdirs array

Set by default m_bExists on false

Check files

Sorted for linux

Definition at line 100 of file moFile.cpp.

void moDirectory::SetCompletePath ( moText  p_completepath)
void moDirectory::SetType ( moFileType  p_filetype)
void moDirectory::Update ( )

Check files

Definition at line 374 of file moFile.cpp.

Member Data Documentation

MOboolean moDirectory::m_bExists
protected

Definition at line 211 of file moFileManager.h.

MOboolean moDirectory::m_bRemote
protected

Definition at line 212 of file moFileManager.h.

moText moDirectory::m_CompletePath
protected

Definition at line 208 of file moFileManager.h.

moText moDirectory::m_DirName
protected

Definition at line 206 of file moFileManager.h.

moTextArray moDirectory::m_DirNameArray
protected

Definition at line 207 of file moFileManager.h.

moFileStatus moDirectory::m_DirStatus
protected

Definition at line 203 of file moFileManager.h.

moFileType moDirectory::m_DirType
protected

Definition at line 202 of file moFileManager.h.

MOint moDirectory::m_FileIndex
protected

Definition at line 204 of file moFileManager.h.

moFileArray moDirectory::m_Files
protected

Definition at line 216 of file moFileManager.h.

moFileManager* moDirectory::m_pFileManager
protected

Definition at line 214 of file moFileManager.h.

moText moDirectory::m_Protocol
protected

Definition at line 209 of file moFileManager.h.

moDirectoryArray moDirectory::m_SubDirs
protected

Definition at line 217 of file moFileManager.h.


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