|
BFLibCPP 0.1
CPP Library
|
#include <file.hpp>


Public Member Functions | |
| File (const char *path, int *err) | |
| virtual | ~File () |
| const char * | name () |
| const char * | fullname () |
| const char * | extension () |
| const char * | directory () |
Public Member Functions inherited from BF::Object | |
| Object () | |
| Object (Object &obj) | |
| virtual | ~Object () |
Protected Attributes | |
| FILE * | _fileHandler |
Additional Inherited Members | |
Static Public Member Functions inherited from BF::Object | |
| static void | retain (Object *obj) |
| static void | release (Object *obj) |
| static int | retainCount (Object *obj) |
| static int | retainCount (Object &obj) |
Protected Member Functions inherited from BF::Path | |
| Path (const char *path) | |
| virtual | ~Path () |
| const char * | path () |
| const char * | abspath () |
| File::File | ( | const char * | path, |
| int * | err ) |
If path is null, an error will be returned

|
virtual |
| const char * File::directory | ( | ) |
Returns our parent directory
Recommended to copy the result once received

| const char * File::extension | ( | ) |
Returns the file extension of the path
an empty string will be returned if path is null
Recommended to copy the result once received

| const char * File::fullname | ( | ) |
returns name with base name and extension
Recommended to copy the result once received

| const char * File::name | ( | ) |
Returns base name of the file
If path is null, an empty string will always be returned
Recommended to copy the result once received

|
protected |
Serves as a dedicated FILE object for us.
Whenever a file is open, it is the responsibility of the creator to close the file