SILICON
Loading...
Searching...
No Matches
projectDocument.hpp File Reference
#include <array>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <stdexcept>
#include <string>
#include <string_view>
#include <vector>
#include <core/callbackRegistry.hpp>
Include dependency graph for projectDocument.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DocumentTypeInfo
struct  DocumentChange
class  Document
class  DocumentStore

Namespaces

namespace  SILICON
namespace  SILICON::project

Enumerations

enum class  DocumentType { Circuit , Verilog , Sisl , RawBinary }
enum class  DocumentCategory { Diagram , Code , Architecture , Binary }
enum class  DocumentChangeKind { Added , Updated , Removed , Reset }

Functions

constexpr const DocumentTypeInfo & documentTypeInfo (const DocumentType type)
constexpr DocumentCategory categoryOf (const DocumentType type)
constexpr bool isCodeDocument (const DocumentType type)
std::optional< DocumentType > documentTypeForPath (const std::string_view path)
std::optional< std::string > documentSlugForPath (const std::string_view path)
bool isValidDocumentSlug (const std::string_view slug)
std::string documentPathForSlug (const DocumentType type, const std::string_view slug)
Document importDocument (const std::string_view sourcePath, std::string contents)
std::string documentFileName (const Document &document)
std::shared_ptr< const std::string > binaryContentsSnapshot (const DocumentStore &documents, const std::string_view slug)

Variables

constexpr std::array< DocumentTypeInfo, 4 > DOCUMENT_TYPE_INFO