Stéphane Cachat
/
Smoothie
smoothie port to mbed online compiler (smoothieware.org)
Embed:
(wiki syntax)
Show/hide line numbers
ConfigSource.h
00001 /* 00002 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl). 00003 Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 00004 Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00005 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. 00006 */ 00007 00008 #ifndef CONFIGSOURCE_H 00009 #define CONFIGSOURCE_H 00010 00011 using namespace std; 00012 #include <vector> 00013 #include <string> 00014 #include "ConfigValue.h" 00015 #include "ConfigCache.h" 00016 00017 class ConfigValue; 00018 00019 class ConfigSource { 00020 public: 00021 ConfigSource(){} 00022 00023 // Read each value, and append it as a ConfigValue to the config_cache we were passed 00024 virtual void transfer_values_to_cache( ConfigCache* ){} 00025 virtual bool is_named( uint16_t check_sum ){return false;} 00026 virtual void write( string setting, string value ){} 00027 virtual string read( vector<uint16_t> check_sums ){return "";} 00028 00029 uint16_t name_checksum; 00030 }; 00031 00032 00033 00034 #endif
Generated on Tue Jul 12 2022 14:14:40 by 1.7.2