MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / Init

Method Init

src/GCodes/GCodeFileInfo.cpp:10–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "GCodeFileInfo.h"
9
10void GCodeFileInfo::Init() noexcept
11{
12 isValid = false;
13 incomplete = true;
14 objectHeight = 0.0;
15 layerHeight = 0.0;
16 numLayers = 0;
17 printTime = simulatedTime = 0;
18 numFilaments = 0;
19 lastModifiedTime = 0;
20 generatedBy.Clear();
21 fileSize = 0;
22 headerSize = 0;
23 for (float& f : filamentNeeded)
24 {
25 f = 0.0;
26 }
27 for (ThumbnailInfo& th : thumbnails)
28 {
29 th.Invalidate();
30 }
31}
32
33// End

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
InvalidateMethod · 0.45

Tested by

no test coverage detected