NREB::IO::Entry Class Referenceabstract

Represent a system entry. More...

#include <NREB_Entry.hpp>

Inheritance diagram for NREB::IO::Entry:
NREB::IO::File NREB::IO::Folder

Public Member Functions

 Entry (std::string const &n, Entry *p=nullptr)
 
virtual ~Entry ()=default
 
std::string getPath () const
 
std::string const & getName () const
 
const EntrygetParent () const
 
virtual bool isFile () const =0
 
virtual bool isFolder () const =0
 

Static Public Attributes

static const std::string MARKER_HEADER = ".hpp"
 
static const std::string MARKER_COMPILER = "CXX"
 
static const std::string MARKER_LINKER = "LD"
 
static const std::string MARKER_CFLAGS = "CFLAGS"
 
static const std::string MARKER_LDFLAGS = "LDFLAGS"
 
static const std::string MARKER_INC = "INC"
 
static const std::string MARKER_BIN = "BIN"
 
static const std::string MARKER_LIB = "LIB"
 
static const std::string MARKER_LIBDIR = "LIBDIR"
 
static const std::string MARKER_CHILDS = "childs"
 
static const std::string MARKER_OUT = "out"
 
static const std::string MARKER_TARGET = "all"
 
static const std::string MARKER_OBJ = "OBJ"
 
static const std::string MARKER_SOURCE = ".cpp"
 
static const std::string MARKER_SOURCE_C = ".c"
 
static const std::string MARKER_HEADER_C = ".h"
 
static const std::string MARKER_O = ".o"
 
static const std::string MARKER_OBJDIR = "OBJDIR"
 
static const std::string START_CALL = "$("
 
static const std::string END_CALL = ")"
 
static const std::string CALL_COMPILER = START_CALL + MARKER_COMPILER + END_CALL
 
static const std::string CALL_CFLAGS = START_CALL + MARKER_CFLAGS + END_CALL
 
static const std::string CALL_INC = START_CALL + MARKER_INC + END_CALL
 
static const std::string CALL_OBJDIR = START_CALL + MARKER_OBJDIR + END_CALL
 
static const std::string CALL_OBJ = START_CALL + MARKER_OBJ + END_CALL
 
static const std::string MAKEFILE = "Makefile"
 
static const std::string ARCHIVER = "archive.sh"
 

Detailed Description

Represent a system entry.

Constructor & Destructor Documentation

NREB::IO::Entry::Entry ( std::string const &  n,
Entry p = nullptr 
)

Construct an entry

Parameters
nthe entry's name
pthe entry's parent
virtual NREB::IO::Entry::~Entry ( )
virtualdefault

Entry deconstructor

Member Function Documentation

std::string const & NREB::IO::Entry::getName ( ) const
Returns
the entry's name
const Entry * NREB::IO::Entry::getParent ( ) const
Returns
the entry's parent
std::string NREB::IO::Entry::getPath ( ) const

Get the entry's path

Returns
the computed path
virtual bool NREB::IO::Entry::isFile ( ) const
pure virtual
Returns
if the entry is a file

Implemented in NREB::IO::Folder, and NREB::IO::File.

virtual bool NREB::IO::Entry::isFolder ( ) const
pure virtual
Returns
if the folder is a folder

Implemented in NREB::IO::Folder, and NREB::IO::File.


The documentation for this class was generated from the following files:
  • /mnt/c/Users/abell/Documents/GitHub/NRE-Builder/src/IO/NREB_Entry.hpp
  • /mnt/c/Users/abell/Documents/GitHub/NRE-Builder/src/IO/NREB_Entry.cpp