SILICON
Loading...
Searching...
No Matches
projectFile.hpp File Reference
#include <filesystem>
#include <string>
#include <string_view>
#include <vector>
#include <core/projectDocument.hpp>
Include dependency graph for projectFile.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

 Metadata stored in metadata.json. More...
struct  ProjectInfo
 Project-level data stored in project.json. More...
struct  ProjectFile
 In-memory representation of a .sil project archive. More...

Namespaces

namespace  SILICON
namespace  SILICON::project

Functions

ProjectFile readProjectFile (const std::filesystem::path &path)
 Reads and validates a Silicon .sil project archive.
void writeProjectFile (const std::filesystem::path &path, const ProjectFile &projectFile)
 Writes a Silicon .sil project archive.
std::string currentUtcTimestamp ()
 Returns the current UTC timestamp formatted as YYYY-MM-DDTHH\:MM\:SSZ.
ProjectMetadata metadataForNewFile ()
 Creates default metadata for a new project file.

Variables

constexpr std::string_view MIME_TYPE = "application/vnd.silicon.project+zip"
 MIME marker stored in Silicon project archives.
constexpr int FORMAT_VERSION = 1
 Current version of the Silicon project archive schema.
const std::string DEFAULT_CIRCUIT_PATH
 Default path of the initial circuit JSON file.