top | up | prev | next

SourceFile Class

Definition at line 14 of SourceFile.hpp

Constructors

SourceFile(const std::u32string& name_, const std::string& path_)

Member Functions

void Apply(Patch* patch)
bool InMemory() const
const std::u32string& Name() const
const std::string& Path() const
void Read()
void Write()

Member Variables

bool inMemory
std::unordered_map<int, std::list<std::u32string>> lineIteratorMap
std::list<std::u32string> lines
std::u32string name
std::string path

Constructor Details

SourceFile Constructor

cpp2cm::SourceFile::SourceFile(const std::u32string& name_, const std::string& path_)

Definition at line 16 of SourceFile.cpp
Declaration at line 17 of SourceFile.hpp


Member Function Details

Apply Member Function

void cpp2cm::SourceFile::Apply(Patch * patch)

Definition at line 82 of SourceFile.cpp
Declaration at line 21 of SourceFile.hpp

Calls: cpp2cm::InsertPatch::Text , cpp2cm::ModifyPatch::NewText , cpp2cm::ModifyPatch::OldText , cpp2cm::Patch::GetKind , cpp2cm::Patch::LineNumber

Called by: cpp2cm::SourceFiles::Apply


InMemory Member Function

bool cpp2cm::SourceFile::InMemory() const

Definition at line 18 of SourceFile.hpp

Called by: cpp2cm::SourceFiles::Apply


Name Member Function

const std::u32string& cpp2cm::SourceFile::Name() const

Definition at line 22 of SourceFile.hpp

Called by: cpp2cm::SourceFiles::Add


Path Member Function

const std::string& cpp2cm::SourceFile::Path() const

Definition at line 23 of SourceFile.hpp


Read Member Function

void cpp2cm::SourceFile::Read()

Definition at line 20 of SourceFile.cpp
Declaration at line 19 of SourceFile.hpp

Called by: cpp2cm::SourceFiles::Apply


Write Member Function

void cpp2cm::SourceFile::Write()

Definition at line 71 of SourceFile.cpp
Declaration at line 20 of SourceFile.hpp


top | up | prev | next