2023-03-16 23:09:19 -07:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-17 15:12:20 -07:00
|
|
|
#include "Bloat.hpp"
|
2023-03-16 23:09:19 -07:00
|
|
|
|
|
|
|
|
|
|
|
namespace IO
|
|
|
|
{
|
|
|
|
ct uw Path_Size_Largest = zpl_kilobytes(1);
|
|
|
|
|
|
|
|
// Preps the IO by loading all the files and checking to see what the largest size is.
|
|
|
|
// The file with the largest size is used to determine the size of the persistent memory.
|
|
|
|
void prepare();
|
|
|
|
|
|
|
|
// Frees the persistent and transient memory arenas.
|
|
|
|
void cleanup();
|
|
|
|
|
|
|
|
// Provides the content of the specification.
|
|
|
|
Array_Line get_specification();
|
|
|
|
|
|
|
|
// Provides the content of the next source, broken up as a series of lines.
|
2023-03-17 15:12:20 -07:00
|
|
|
char* get_next_source();
|
2023-03-16 23:09:19 -07:00
|
|
|
|
|
|
|
// Writes the refactored content ot the current corresponding destination.
|
|
|
|
void write( zpl_string refactored );
|
|
|
|
}
|