Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FileSystem Class Reference

#include <filesystem.h>

List of all members.

Public Types

enum  { SORT_ASCENDING, SORT_DESCENDING }
enum  { SORT_PATH, SORT_SIZE, SORT_DATE, SORT_EXTENSION }

Public Member Functions

 FileSystem ()
virtual ~FileSystem ()
int update (char *new_dir=0)
int change_dir (char *new_dir)
int set_current_dir (char *new_dir)
int move_up ()
char * get_current_dir ()
int set_filter (char *new_filter)
int set_show_all ()
int set_want_directory ()
int set_sort_order (int value)
int set_sort_field (int field)
int create_dir (char *new_dir_)
int complete_path (char *filename)
int is_dir (const char *new_dir_)
int extract_dir (char *out, const char *in)
int extract_name (char *out, const char *in, int test_dir=1)
int join_names (char *out, char *dir_in, char *name_in)
long get_date (char *filename)
int add_end_slash (char *new_dir)
int total_files ()
FileItemget_entry (int entry)
int parse_tildas (char *new_dir)
int parse_directories (char *new_dir)
int parse_dots (char *new_dir)
void alphabetize ()

Static Public Member Functions

static int64_t get_size (char *filename)

Public Attributes

ArrayList< FileItem * > dir_list

Private Member Functions

int dot_reverse_filename (char *out, const char *in)
int compare_items (ArrayList< FileItem * > *dir_list, int item1, int item2)
int sort_table (ArrayList< FileItem * > *dir_list)
int combine (ArrayList< FileItem * > *dir_list, ArrayList< FileItem * > *file_list)
int is_root_dir (char *path)
int test_filter (FileItem *file)
int reset_parameters ()
int delete_directory ()

Private Attributes

char filter [BCTEXTLEN]
int want_directory
int show_all_files
char current_dir [BCTEXTLEN]
char string [BCTEXTLEN]
char string2 [BCTEXTLEN]
int sort_order
int sort_field


Detailed Description

Definition at line 35 of file filesystem.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
SORT_ASCENDING 
SORT_DESCENDING 

Definition at line 88 of file filesystem.h.

anonymous enum
 

Enumerator:
SORT_PATH 
SORT_SIZE 
SORT_DATE 
SORT_EXTENSION 

Definition at line 95 of file filesystem.h.


Constructor & Destructor Documentation

FileSystem::FileSystem  ) 
 

Definition at line 80 of file filesystem.C.

FileSystem::~FileSystem  )  [virtual]
 

Definition at line 87 of file filesystem.C.


Member Function Documentation

int FileSystem::add_end_slash char *  new_dir  ) 
 

Definition at line 751 of file filesystem.C.

void FileSystem::alphabetize  ) 
 

Definition at line 240 of file filesystem.C.

int FileSystem::change_dir char *  new_dir  ) 
 

Definition at line 730 of file filesystem.C.

int FileSystem::combine ArrayList< FileItem * > *  dir_list,
ArrayList< FileItem * > *  file_list
[private]
 

Definition at line 221 of file filesystem.C.

int FileSystem::compare_items ArrayList< FileItem * > *  dir_list,
int  item1,
int  item2
[private]
 

Definition at line 149 of file filesystem.C.

int FileSystem::complete_path char *  filename  ) 
 

Definition at line 644 of file filesystem.C.

int FileSystem::create_dir char *  new_dir_  ) 
 

Definition at line 497 of file filesystem.C.

int FileSystem::delete_directory  )  [private]
 

Definition at line 103 of file filesystem.C.

int FileSystem::dot_reverse_filename char *  out,
const char *  in
[private]
 

Definition at line 127 of file filesystem.C.

int FileSystem::extract_dir char *  out,
const char *  in
 

Definition at line 659 of file filesystem.C.

int FileSystem::extract_name char *  out,
const char *  in,
int  test_dir = 1
 

Definition at line 678 of file filesystem.C.

char * FileSystem::get_current_dir  ) 
 

Definition at line 757 of file filesystem.C.

long FileSystem::get_date char *  filename  ) 
 

Definition at line 714 of file filesystem.C.

FileItem * FileSystem::get_entry int  entry  ) 
 

Definition at line 768 of file filesystem.C.

int64_t FileSystem::get_size char *  filename  )  [static]
 

Definition at line 722 of file filesystem.C.

int FileSystem::is_dir const char *  new_dir_  ) 
 

Definition at line 484 of file filesystem.C.

int FileSystem::is_root_dir char *  path  )  [private]
 

Definition at line 245 of file filesystem.C.

int FileSystem::join_names char *  out,
char *  dir_in,
char *  name_in
 

Definition at line 696 of file filesystem.C.

int FileSystem::move_up  ) 
 

int FileSystem::parse_directories char *  new_dir  ) 
 

Definition at line 559 of file filesystem.C.

int FileSystem::parse_dots char *  new_dir  ) 
 

Definition at line 593 of file filesystem.C.

int FileSystem::parse_tildas char *  new_dir  ) 
 

Definition at line 507 of file filesystem.C.

int FileSystem::reset_parameters  )  [private]
 

Definition at line 92 of file filesystem.C.

int FileSystem::set_current_dir char *  new_dir  ) 
 

Definition at line 745 of file filesystem.C.

int FileSystem::set_filter char *  new_filter  ) 
 

Definition at line 466 of file filesystem.C.

int FileSystem::set_show_all  ) 
 

Definition at line 472 of file filesystem.C.

int FileSystem::set_sort_field int  field  ) 
 

Definition at line 118 of file filesystem.C.

int FileSystem::set_sort_order int  value  ) 
 

Definition at line 113 of file filesystem.C.

int FileSystem::set_want_directory  ) 
 

Definition at line 478 of file filesystem.C.

int FileSystem::sort_table ArrayList< FileItem * > *  dir_list  )  [private]
 

Definition at line 196 of file filesystem.C.

int FileSystem::test_filter FileItem file  )  [private]
 

Definition at line 251 of file filesystem.C.

int FileSystem::total_files  ) 
 

Definition at line 762 of file filesystem.C.

int FileSystem::update char *  new_dir = 0  ) 
 

Definition at line 371 of file filesystem.C.


Member Data Documentation

char FileSystem::current_dir[BCTEXTLEN] [private]
 

Definition at line 120 of file filesystem.h.

ArrayList<FileItem*> FileSystem::dir_list
 

Definition at line 85 of file filesystem.h.

char FileSystem::filter[BCTEXTLEN] [private]
 

Definition at line 117 of file filesystem.h.

int FileSystem::show_all_files [private]
 

Definition at line 119 of file filesystem.h.

int FileSystem::sort_field [private]
 

Definition at line 123 of file filesystem.h.

int FileSystem::sort_order [private]
 

Definition at line 122 of file filesystem.h.

char FileSystem::string[BCTEXTLEN] [private]
 

Definition at line 121 of file filesystem.h.

char FileSystem::string2[BCTEXTLEN] [private]
 

Definition at line 121 of file filesystem.h.

int FileSystem::want_directory [private]
 

Definition at line 118 of file filesystem.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:38 2006 for Guicast-svn by  doxygen 1.4.4