Ryo Iizuka / libMiMic

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Revision:
43:a182f2b5ff41
Parent:
17:f29e1ca90e3d
Child:
48:00d211aac2ec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed/mod/ModLocalFileSystem.h	Tue Jul 09 12:07:17 2013 +0000
@@ -0,0 +1,37 @@
+#pragma once
+////////////////////////////////////////////////////////////////////////////////
+// ModRomFiles.h
+////////////////////////////////////////////////////////////////////////////////
+
+#include "NyLPC_net.h"
+#include "ModBaseClass.h"
+
+
+namespace MiMic
+{
+    class HttpdConnection;
+
+    /**
+     * This class is httpd module.
+     * The class provide files on mbed LocalFile System.
+     * The class provide 2 services.
+     * <ul>
+     * <li>lfile content provider.</li>
+     * This is response of local file path. for example "/local/file.txt". full content of file.
+     * <li>file list provider</li>
+     * This is array of json response. for example, "/local/"
+     * [{name:"name",size:"size",type:"type"}]
+     * </ul>
+     */
+    class ModLocalFileSystem:ModBaseClass
+    {
+    public:
+
+        ModLocalFileSystem(const char* i_path);
+        ModLocalFileSystem();
+        virtual ~ModLocalFileSystem();
+        void setParam(const char* i_path);
+        bool execute(HttpdConnection& i_connection);
+    };
+
+}
\ No newline at end of file