Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
File.h
1 /*
2  * File class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2005-12, IRIT UPS.
6  *
7  * OTAWA is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * OTAWA is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OTAWA; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef ELM_SYS_FILE_H
22 #define ELM_SYS_FILE_H
23 
24 #include <elm/sys/FileItem.h>
25 
26 namespace elm { namespace sys {
27 
28 // File class
29 class File: public FileItem {
30  friend class FileItem;
31  File(Path path, ino_t inode);
32 public:
33 
34  // Accessors
35  int size(void);
36 
37  // Overload
38  virtual File *toFile(void);
39 };
40 
41 } } // elm::sys
42 
43 #endif // ELM_SYS_FILE_H
44 
Definition: FileItem.h:35
Definition: Path.h:31
Path & path(void)
Definition: system_FileItem.cpp:198
Definition: File.h:29
virtual File * toFile(void)
Definition: system_File.cpp:61
int size(void)
Definition: system_File.cpp:51