Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
cpp/ModLocalFileSystem.h@14:4618692ec239, 2013-04-24 (annotated)
- Committer:
- nyatla
- Date:
- Wed Apr 24 08:02:16 2013 +0000
- Revision:
- 14:4618692ec239
- Parent:
- 8:b9ed86e156dd
backup
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nyatla | 7:2b33a8d84eb3 | 1 | #pragma once |
| nyatla | 7:2b33a8d84eb3 | 2 | //////////////////////////////////////////////////////////////////////////////// |
| nyatla | 7:2b33a8d84eb3 | 3 | // ModRomFiles.h |
| nyatla | 7:2b33a8d84eb3 | 4 | //////////////////////////////////////////////////////////////////////////////// |
| nyatla | 7:2b33a8d84eb3 | 5 | |
| nyatla | 7:2b33a8d84eb3 | 6 | #include "NyLPC_net.h" |
| nyatla | 7:2b33a8d84eb3 | 7 | #include "ModBaseClass.h" |
| nyatla | 7:2b33a8d84eb3 | 8 | |
| nyatla | 7:2b33a8d84eb3 | 9 | |
| nyatla | 7:2b33a8d84eb3 | 10 | namespace MiMic |
| nyatla | 7:2b33a8d84eb3 | 11 | { |
| nyatla | 7:2b33a8d84eb3 | 12 | class HttpdConnection; |
| nyatla | 7:2b33a8d84eb3 | 13 | |
| nyatla | 7:2b33a8d84eb3 | 14 | /** |
| nyatla | 7:2b33a8d84eb3 | 15 | * This class is httpd module. |
| nyatla | 7:2b33a8d84eb3 | 16 | * The class provide files on mbed LocalFile System. |
| nyatla | 14:4618692ec239 | 17 | * The class provide 2 services. |
| nyatla | 14:4618692ec239 | 18 | * <ul> |
| nyatla | 14:4618692ec239 | 19 | * <li>lfile content provider.</li> |
| nyatla | 14:4618692ec239 | 20 | * This is response of local file path. for example "/local/file.txt". full content of file. |
| nyatla | 14:4618692ec239 | 21 | * <li>file list provider</li> |
| nyatla | 14:4618692ec239 | 22 | * This is array of json response. for example, "/local/" |
| nyatla | 14:4618692ec239 | 23 | * [{name:"name",size:"size",type:"type"}] |
| nyatla | 14:4618692ec239 | 24 | * </ul> |
| nyatla | 7:2b33a8d84eb3 | 25 | */ |
| nyatla | 7:2b33a8d84eb3 | 26 | class ModLocalFileSystem:ModBaseClass |
| nyatla | 7:2b33a8d84eb3 | 27 | { |
| nyatla | 7:2b33a8d84eb3 | 28 | public: |
| nyatla | 7:2b33a8d84eb3 | 29 | |
| nyatla | 7:2b33a8d84eb3 | 30 | ModLocalFileSystem(const char* i_path); |
| nyatla | 7:2b33a8d84eb3 | 31 | ModLocalFileSystem(); |
| nyatla | 7:2b33a8d84eb3 | 32 | virtual ~ModLocalFileSystem(); |
| nyatla | 7:2b33a8d84eb3 | 33 | void setParam(const char* i_path); |
| nyatla | 7:2b33a8d84eb3 | 34 | bool execute(HttpdConnection& i_connection); |
| nyatla | 7:2b33a8d84eb3 | 35 | }; |
| nyatla | 7:2b33a8d84eb3 | 36 | |
| nyatla | 7:2b33a8d84eb3 | 37 | } |
