CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CBuild::Task Class Referenceabstract

Task, can be runned from shell or code. More...

#include <Task.hpp>

Inheritance diagram for CBuild::Task:
CBuild::CmdList CBuild::GeneratorList CBuild::Help CBuild::Init CBuild::TaskList CBuild::ToolchainList CBuild::Version

Public Member Functions

 Task (std::string name, std::vector< std::string > required)
 Construct a new Task object.
 
virtual void call (std::vector< std::string > args)=0
 Executed on task call.
 
std::string self_name ()
 Return task name.
 
std::vector< std::string > self_required ()
 Return required tasks.
 

Private Attributes

std::string name
 
std::vector< std::string > required
 

Detailed Description

Task, can be runned from shell or code.

Definition at line 32 of file Task.hpp.

Constructor & Destructor Documentation

◆ Task()

CBuild::Task::Task ( std::string name,
std::vector< std::string > required )

Construct a new Task object.

Parameters
nameTask name
requiredReguired tasks

Definition at line 23 of file Task.cpp.

References name, and required.

Member Function Documentation

◆ call()

virtual void CBuild::Task::call ( std::vector< std::string > args)
pure virtual

Executed on task call.

Parameters
args=>std::vector<std::string> -> used internally

Implemented in CBuild::Help, CBuild::Init, CBuild::Version, CBuild::TaskList, CBuild::ToolchainList, CBuild::GeneratorList, and CBuild::CmdList.

◆ self_name()

std::string CBuild::Task::self_name ( )

Return task name.

Returns
std::string -> Task name

Definition at line 28 of file Task.cpp.

Referenced by CBuild::Registry::RegisterKeyword(), and CBuild::Registry::RegisterTask().

◆ self_required()

std::vector< std::string > CBuild::Task::self_required ( )

Return required tasks.

Returns
std::vector<std::string> -> Required tasks's id list

Definition at line 32 of file Task.cpp.

Member Data Documentation

◆ name

std::string CBuild::Task::name
private

Definition at line 34 of file Task.hpp.

Referenced by Task().

◆ required

std::vector<std::string> CBuild::Task::required
private

Definition at line 35 of file Task.hpp.

Referenced by Task().


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