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
moFile Class Reference

#include <moFileManager.h>

Inheritance diagram for moFile:
moAbstract

Public Member Functions

 moFile ()
 
 moFile (moText p_CompletePath)
 
virtual ~moFile ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
MOboolean Exists ()
 
moFileType GetType ()
 
MOboolean IsRemote ()
 
void SetType (moFileType p_filetype)
 
void SetCompletePath (moText p_completepath)
 
moText GetFileName ()
 
moText GetFullName ()
 Retreive full file name: return "myFileName" for "myFileName.txt". More...
 
moText GetPath ()
 Retreive full file name: return "myFileName.txt", extension is included. More...
 
moText GetFolderName ()
 Get path of file: return "XX/YY/PP" for "XX/YY/PP/myFileName.txt". More...
 
moText GetCompletePath ()
 Get inmediate folder name: return "PP" for "PP/myFileName.txt". More...
 
moText GetAbsolutePath ()
 Get relative path and filename "PP/myFileName.txt". More...
 
moText GetExtension ()
 Get absolute path and filename "/D/PP/myFileName.txt". More...
 
moText GetProtocol ()
 Get extension ".txt". More...
 
moFileDate GetDate ()
 Return http:// | ftp:// | https:// | file:///. More...
 
moFileSize GetSize ()
 
moFileStatus GetStatus ()
 
MOubyteGetData ()
 
void Update ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

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

clase para el manejo de un archivo

Definition at line 93 of file moFileManager.h.

Constructor & Destructor Documentation

moFile::moFile ( )

Definition at line 391 of file moFile.cpp.

moFile::moFile ( moText  p_CompletePath)

Definition at line 404 of file moFile.cpp.

moFile::~moFile ( )
virtual

Definition at line 409 of file moFile.cpp.

Member Function Documentation

MOboolean moFile::Exists ( )

Definition at line 436 of file moFile.cpp.

MOboolean moFile::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

Reimplemented from moAbstract.

Definition at line 427 of file moFile.cpp.

moText moFile::GetAbsolutePath ( )

Get relative path and filename "PP/myFileName.txt".

Definition at line 788 of file moFileManager.cpp.

moText moFile::GetCompletePath ( )

Get inmediate folder name: return "PP" for "PP/myFileName.txt".

Definition at line 538 of file moFile.cpp.

MOubyte * moFile::GetData ( )

Definition at line 463 of file moFile.cpp.

moFileDate moFile::GetDate ( )

Return http:// | ftp:// | https:// | file:///.

Definition at line 657 of file moFileManager.cpp.

moText moFile::GetExtension ( )

Get absolute path and filename "/D/PP/myFileName.txt".

Definition at line 543 of file moFile.cpp.

moText moFile::GetFileName ( )

Definition at line 477 of file moFile.cpp.

moText moFile::GetFolderName ( )

Get path of file: return "XX/YY/PP" for "XX/YY/PP/myFileName.txt".

Definition at line 820 of file moFileManager.cpp.

moText moFile::GetFullName ( )

Retreive full file name: return "myFileName" for "myFileName.txt".

Definition at line 685 of file moFileManager.cpp.

moText moFile::GetPath ( )

Retreive full file name: return "myFileName.txt", extension is included.

Definition at line 533 of file moFile.cpp.

moText moFile::GetProtocol ( )

Get extension ".txt".

Definition at line 447 of file moFile.cpp.

moFileSize moFile::GetSize ( )

Definition at line 661 of file moFileManager.cpp.

moFileStatus moFile::GetStatus ( )

Definition at line 453 of file moFile.cpp.

moFileType moFile::GetType ( )

Definition at line 442 of file moFile.cpp.

MOboolean moFile::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 414 of file moFile.cpp.

MOboolean moFile::IsRemote ( )

Definition at line 458 of file moFile.cpp.

void moFile::SetCompletePath ( moText  p_completepath)

Definition at line 482 of file moFile.cpp.

void moFile::SetType ( moFileType  p_filetype)

Definition at line 471 of file moFile.cpp.

void moFile::Update ( )

Definition at line 548 of file moFile.cpp.


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