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/ModMiMicSetting.cpp@7:2b33a8d84eb3, 2013-04-09 (annotated)
- Committer:
- nyatla
- Date:
- Tue Apr 09 09:32:25 2013 +0000
- Revision:
- 7:2b33a8d84eb3
- Parent:
- 3:0a94993be1f6
- Child:
- 14:4618692ec239
add local filesysytem module.; change path rule of module initialization.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nyatla | 3:0a94993be1f6 | 1 | #include "ModMiMicSetting.h" |
| nyatla | 3:0a94993be1f6 | 2 | #include "HttpdConnection.h" |
| nyatla | 3:0a94993be1f6 | 3 | |
| nyatla | 3:0a94993be1f6 | 4 | namespace MiMic |
| nyatla | 3:0a94993be1f6 | 5 | { |
| nyatla | 7:2b33a8d84eb3 | 6 | ModMiMicSetting::ModMiMicSetting(const char* i_path):ModBaseClass(i_path) |
| nyatla | 3:0a94993be1f6 | 7 | { |
| nyatla | 3:0a94993be1f6 | 8 | } |
| nyatla | 7:2b33a8d84eb3 | 9 | ModMiMicSetting::ModMiMicSetting():ModBaseClass() |
| nyatla | 3:0a94993be1f6 | 10 | { |
| nyatla | 3:0a94993be1f6 | 11 | } |
| nyatla | 3:0a94993be1f6 | 12 | ModMiMicSetting::~ModMiMicSetting() |
| nyatla | 3:0a94993be1f6 | 13 | { |
| nyatla | 3:0a94993be1f6 | 14 | } |
| nyatla | 3:0a94993be1f6 | 15 | void ModMiMicSetting::setParam(const char* i_path) |
| nyatla | 3:0a94993be1f6 | 16 | { |
| nyatla | 7:2b33a8d84eb3 | 17 | ModBaseClass::setParam(i_path); |
| nyatla | 3:0a94993be1f6 | 18 | } |
| nyatla | 3:0a94993be1f6 | 19 | bool ModMiMicSetting::execute(HttpdConnection& i_connection) |
| nyatla | 3:0a94993be1f6 | 20 | { |
| nyatla | 3:0a94993be1f6 | 21 | NyLPC_TcModMiMicSetting_t mod; |
| nyatla | 3:0a94993be1f6 | 22 | |
| nyatla | 3:0a94993be1f6 | 23 | //check parametor |
| nyatla | 3:0a94993be1f6 | 24 | if(this->_path==NULL){ |
| nyatla | 3:0a94993be1f6 | 25 | return false; |
| nyatla | 3:0a94993be1f6 | 26 | } |
| nyatla | 3:0a94993be1f6 | 27 | NyLPC_cModMiMicSetting_initialize(&mod,this->_path); |
| nyatla | 3:0a94993be1f6 | 28 | if(NyLPC_cModMiMicSetting_canHandle(&mod,i_connection._ref_inst)){ |
| nyatla | 3:0a94993be1f6 | 29 | NyLPC_cModMiMicSetting_execute(&mod,i_connection._ref_inst); |
| nyatla | 3:0a94993be1f6 | 30 | NyLPC_cModMiMicSetting_finalize(&mod); |
| nyatla | 3:0a94993be1f6 | 31 | return true; |
| nyatla | 3:0a94993be1f6 | 32 | } |
| nyatla | 3:0a94993be1f6 | 33 | NyLPC_cModMiMicSetting_finalize(&mod); |
| nyatla | 3:0a94993be1f6 | 34 | return false; |
| nyatla | 3:0a94993be1f6 | 35 | } |
| nyatla | 3:0a94993be1f6 | 36 | |
| nyatla | 3:0a94993be1f6 | 37 | } |
