Ryo Iizuka / libMiMic

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

cpp/ModLocalFileSystem.h

Committer:
nyatla
Date:
2013-04-24
Revision:
14:4618692ec239
Parent:
8:b9ed86e156dd

File content as of revision 14:4618692ec239:

#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);
    };

}