SILICON
Loading...
Searching...
No Matches
Document Class Reference

#include <projectDocument.hpp>

Public Member Functions

 Document (std::string path, std::string contents)
const std::string & getPath () const noexcept
const std::string & getContents () const noexcept
DocumentType getType () const noexcept
void setContents (std::string contents)

Private Attributes

std::string path
std::string contents

Detailed Description

A document always has a valid, immutable project-relative path. Its type is derived from that path. Contents are the only persisted representation.

Definition at line 109 of file projectDocument.hpp.

Constructor & Destructor Documentation

◆ Document()

Document ( std::string path,
std::string contents )

Definition at line 202 of file projectDocument.cpp.

Member Function Documentation

◆ getContents()

const std::string & getContents ( ) const
nodiscardnoexcept

Definition at line 215 of file projectDocument.cpp.

◆ getPath()

const std::string & getPath ( ) const
nodiscardnoexcept

Definition at line 210 of file projectDocument.cpp.

◆ getType()

DocumentType getType ( ) const
nodiscardnoexcept

Definition at line 220 of file projectDocument.cpp.

◆ setContents()

void setContents ( std::string contents)

Definition at line 225 of file projectDocument.cpp.

Member Data Documentation

◆ contents

std::string contents
private

Definition at line 121 of file projectDocument.hpp.

◆ path

std::string path
private

Definition at line 120 of file projectDocument.hpp.


The documentation for this class was generated from the following files: