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
ModRomFiles.h
00001 #pragma once 00002 //////////////////////////////////////////////////////////////////////////////// 00003 // ModRomFiles.h 00004 //////////////////////////////////////////////////////////////////////////////// 00005 00006 #include "NyLPC_net.h" 00007 #include "ModBaseClass.h" 00008 00009 00010 namespace MiMic 00011 { 00012 class HttpdConnection; 00013 /** 00014 * This class is a module for Httpd. 00015 * The class sends file image which is stored on ROM. 00016 * The class is wrapper of NyLPC_tcModRomFiles class. 00017 */ 00018 class ModRomFiles:ModBaseClass 00019 { 00020 private: 00021 const NyLPC_TRomFileData* _ref_fsdata; 00022 unsigned short _num; 00023 public: 00024 /** 00025 * Constructor with parameter initialization. 00026 */ 00027 ModRomFiles(const char* i_path,const NyLPC_TRomFileData* i_ref_fsdata,unsigned short i_num); 00028 /** 00029 * Default constructor. 00030 * Must be call {@link setParam} function after constructed. 00031 */ 00032 ModRomFiles(); 00033 virtual ~ModRomFiles(); 00034 /** 00035 * @param i_path 00036 * target path 00037 * <pre> 00038 * ex.setParam("setup") 00039 * </pre> 00040 */ 00041 void setParam (const char* i_path,const NyLPC_TRomFileData* i_ref_fsdata,unsigned short i_num); 00042 /** 00043 * This function processes a request. 00044 * The function checks whether a connection has a target request. 00045 * If necessary, it will transmit a response. 00046 * @return 00047 * TRUE if request was processed. otherwise FALSE. 00048 */ 00049 bool execute(HttpdConnection& i_connection); 00050 }; 00051 00052 }
Generated on Tue Jul 12 2022 16:22:56 by
