NREB::IO::File Class Reference

Represent a file entry. More...

#include <NREB_File.hpp>

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

Public Member Functions

 File (std::string const &n, Entry *p=nullptr)
 
 ~File ()=default
 
bool isFile () const override
 
bool isFolder () const override
 
std::string getObjectName () const
 
std::string getObjectPath () const
 
- Public Member Functions inherited from NREB::IO::Entry
 Entry (std::string const &n, Entry *p=nullptr)
 
virtual ~Entry ()=default
 
std::string getPath () const
 
std::string const & getName () const
 
const EntrygetParent () const
 

Additional Inherited Members

- Static Public Attributes inherited from NREB::IO::Entry
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 file entry.

Constructor & Destructor Documentation

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

Construct an entry

Parameters
nthe entry's name
pthe entry's parent
NREB::IO::File::~File ( )
default

Entry deconstructor

Member Function Documentation

std::string NREB::IO::File::getObjectName ( ) const
Returns
the object's file name
std::string NREB::IO::File::getObjectPath ( ) const
Returns
the object's file path
bool NREB::IO::File::isFile ( ) const
overridevirtual
Returns
if the entry is a file

Implements NREB::IO::Entry.

bool NREB::IO::File::isFolder ( ) const
overridevirtual
Returns
if the folder is a folder

Implements NREB::IO::Entry.


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