Public Types | |
| typedef Gaia::DOS::Container | Container |
| typedef Gaia::DOS::ContainerManager | FileServer |
| typedef Gaia::DOS::LayoutManager::CtxtSeq | Context |
| typedef Gaia::DOS::LayoutManager::MountEntry | MountEntry |
| typedef Gaia::DOS::NotReachable | NotReachable |
| typedef Gaia::DOS::NotFound | NotFound |
| typedef Gaia::DOS::NotAvailable | NotAvailable |
| typedef Gaia::DOS::NotSupported | NotSupported |
| typedef Gaia::DOS::SecurityCheck | SecurityCheck |
| typedef Gaia::DOS::MemoryLimit | MemoryLimit |
| typedef Gaia::DOS::IllegalArgument | IllegalArgument |
| typedef Gaia::DOS::IOError | IOError |
| typedef Gaia::DOS::OutOfBounds | OutOfBounds |
| typedef Gaia::DOS::InUse | InUse |
Static Public Methods | |
| GaiaFS::Container * | open (const char *name, const char *kind, int mode, int index=0) |
| Create a new generic container so that it can passed to another object and adapted to a type. | |
| GaiaFS::Container * | duplicate (GaiaFS::Container *container) |
| Duplicate a container reference. | |
| int | access (const char *name, int mode) |
| Check the accessability of a file. | |
| GaiaES::Channel * | addListener (GaiaFS::Listener *listener) |
| Add a listener of file system changes. | |
| void | removeListener (GaiaFS::Listener *listener) |
| Remove a listener of file system changes. | |
| void | removeListener (GaiaES::Channel *channel) |
| Remove a listener of file system changes. | |
| void | mode (int mode) |
| Set the current mode (file or context mode). | |
| int | mode () |
| Get the current mode setting. | |
| void | refresh () |
| Refresh the mount table cache. | |
| int | mode (const char *path) |
| Try to infer the mode from the path structure. | |
| void | context (Context &context) |
| Set the current context. | |
| const char * | pwd () |
| Gets the present working directory for the current mode. | |
| char * | path (const char *path) |
| Return a clean version of the path. | |
| void | owner (const char *owner) |
| Set the current owner. | |
| const char * | owner () |
| Get the current owner. | |
| const char * | home () |
| Get the home directory. | |
| void | chdir (const char *dir) |
| Change current directory. | |
| const char * | host (GaiaFS::FileServer *server) |
| Get the host that this manager runs on. | |
| Lookup * | lookup (const char *name) |
| Lookup a path and get information to access it. | |
| const char * | user (const char *dir) |
| Get the user portion of the directory. | |
| const char * | user (unsigned short &last) |
| Get the next active user name. | |
| const char * | mount (unsigned short &last) |
| Get the next directory under this mount point. | |
| bool | ismount (const char *path) |
| Tell if path is a mount point. | |
| void | mount (MountEntry &entry) |
| Add a new mount to the space. | |
| void | unmount () |
| Remove all mounts of the current user. | |
| void | print () |
| Print what is in the mount table. | |
| const char * | localize (const char *name, int index) |
| Create a local version of the file. | |
Static Public Attributes | |
| unsigned long | Exist |
| Exist file mode. | |
| unsigned long | New |
| New file mode. | |
| unsigned long | Write |
| Write file mode. | |
| unsigned long | Read |
| Read file mode. | |
| unsigned long | Append |
| Append file mode. | |
| unsigned long | FileMode |
| File system is in file mode. | |
| unsigned long | CtxtMode |
| File system is in context mode. | |
| unsigned long | Dir |
| File is a directory. | |
| unsigned long | File |
| File is a file. | |
| unsigned long | DirLink |
| File is a directory link. | |
| unsigned long | FileLink |
| File is a file link. | |
| unsigned long | VirtDir |
| File is a virtual directory. | |
| unsigned long | CtxtDir |
| File is a context directory. | |
This class allows access to the Gaia file system. Files and directories can be accessed as particular types and the infrastructure will perform format conversions.
|
||||||||||||
|
Check the accessability of a file.
|
|
|
Add a listener of file system changes.
|
|
|
Change current directory.
|
|
|
Set the current context.
|
|
|
Duplicate a container reference.
|
|
|
Get the home directory.
|
|
|
Get the host that this manager runs on.
|
|
|
Tell if path is a mount point.
|
|
||||||||||||
|
Create a local version of the file. Use this if the file needs to be read by a native application. Modifying the file will only change the copy, not the original file.
|
|
|
Lookup a path and get information to access it. Mode will override the default mode if desired.
|
|
|
Try to infer the mode from the path structure.
|
|
|
Get the current mode setting.
|
|
|
Set the current mode (file or context mode).
|
|
|
Add a new mount to the space.
|
|
|
Get the next directory under this mount point.
|
|
||||||||||||||||||||
|
Create a new generic container so that it can passed to another object and adapted to a type.
|
|
|
Get the current owner.
|
|
|
Set the current owner.
|
|
|
Return a clean version of the path.
|
|
|
Print what is in the mount table.
|
|
|
Gets the present working directory for the current mode.
|
|
|
Refresh the mount table cache.
|
|
|
Remove a listener of file system changes.
|
|
|
Remove a listener of file system changes.
|
|
|
Remove all mounts of the current user.
|
|
|
Get the next active user name.
|
|
|
Get the user portion of the directory.
|
|
|
Append file mode. Puts file position point to end of file. |
|
|
File is a context directory.
|
|
|
File system is in context mode.
|
|
|
File is a directory.
|
|
|
File is a directory link.
|
|
|
Exist file mode. Checks if a file exits. |
|
|
File is a file.
|
|
|
File is a file link.
|
|
|
File system is in file mode.
|
|
|
New file mode.
|
|
|
Read file mode. Fails if non-existing. |
|
|
File is a virtual directory.
|
|
|
Write file mode. Truncates on open. |
1.2.16