Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tools/Filament.h')
-rw-r--r--src/Tools/Filament.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Tools/Filament.h b/src/Tools/Filament.h
index 58ebd1a7..282b8161 100644
--- a/src/Tools/Filament.h
+++ b/src/Tools/Filament.h
@@ -16,23 +16,23 @@ const size_t FilamentNameLength = 32;
class Filament
{
public:
- Filament(int extr);
+ Filament(int extr) noexcept;
- int GetExtruder() const { return extruder; } // Returns the assigned extruder drive
- const char *GetName() const { return name; } // Returns the name of the currently loaded filament
+ int GetExtruder() const noexcept { return extruder; } // Returns the assigned extruder drive
+ const char *GetName() const noexcept { return name; } // Returns the name of the currently loaded filament
// TODO: Add support for filament counters, tool restrictions etc.
// These should be stored in a dedicate file per filament directory like /filaments/<material>/filament.json
- bool IsLoaded() const { return (name[0] != 0); } // Returns true if a valid filament is assigned to this instance
- void Load(const char *filamentName); // Loads filament parameters from the SD card
- void Unload(); // Unloads the current filament
+ bool IsLoaded() const noexcept { return (name[0] != 0); } // Returns true if a valid filament is assigned to this instance
+ void Load(const char *filamentName) noexcept; // Loads filament parameters from the SD card
+ void Unload() noexcept; // Unloads the current filament
- void LoadAssignment(); // Read the assigned material for the given extruder from the SD card
+ void LoadAssignment() noexcept; // Read the assigned material for the given extruder from the SD card
- static void SaveAssignments(); // Rewrite the CSV file containing the extruder <-> filament assignments
- static bool IsInUse(const char *filamentName); // Check if this material is already assigned to an extruder
- static Filament *GetFilamentByExtruder(const int extruder); // Retrieve the Filament instance assigned to the given extruder drive
+ static void SaveAssignments() noexcept; // Rewrite the CSV file containing the extruder <-> filament assignments
+ static bool IsInUse(const char *filamentName) noexcept; // Check if this material is already assigned to an extruder
+ static Filament *GetFilamentByExtruder(const int extruder) noexcept; // Retrieve the Filament instance assigned to the given extruder drive
private:
static const char * const FilamentAssignmentFile; // In which file the extruder <-> filament assignments are stored