#include <mrprjContent.h>
Collaboration diagram for mrprj::Task:
Public Member Functions | |
Task (krmuo::LoggingUnit &pLoggingUnit, const string &spTaskId, const string &pTaskTitle="???", const string &pTaskDescription="???", const string &pTaskStartDate="19700101T000000", const string &pTaskEndDate="21001231T240000", const int pFullFilledPercent=0, const bool pIsEmptyTopTask=false) | |
< class-constructor | |
~Task () | |
class-destructor | |
const string & | getTaskId () const |
returns the task-id as long-value | |
const string & | getTaskTitle () const |
returns the task-title (name) as string | |
const string & | getTaskDescription () const |
returns the task-description (note) as string | |
const string | getTaskDescriptionAsOneLine () const |
returns the task-description (note) as string without any lf,cr,tabs etc. | |
const string | getPredecessorString () const |
makes comma seperated string of all predecessor ids | |
const string | getTaskDescriptionAsFormattedString (const string &pIndent, const int pLineLength) const |
returns the task-description (note) as formatted string | |
const string | getClearTaskDescriptionAsOneLine () const |
returns the task-description (note) as online formatted without ", | |
const string & | getStartDate () const |
returns the iso-8601 encoded start-date | |
const string & | getEndDate () const |
returns the iso-8601 encoded end-date | |
const int | getFullFilledPercent () const |
returns degree of fullfillness | |
const bool | isEmptyTopTask () const |
const bool | isActive () const |
returns the state of the task after an extraction | |
const bool | isAllocated () const |
returns true if any resource handles this task | |
const bool | isAnyDaughterIsActive () const |
returns true if any daughter is active | |
const long | numberOfDaughters () const |
returns the number of daughters | |
const bool | isLeafNode () const |
returns true if the number of daughters is zero | |
const bool | isOpenTask () const |
returns true if any part of the task still must be done | |
const string | getDoneDescription () const |
returns clear-text version of the done-State | |
void | setPassive () |
sets the task onto the state ignorable | |
void | setActive () |
sets the task onto the state un-ignorable | |
void | setAllocated () |
notes that any resource handles this task | |
void | setAnyDaughterIsActive () |
notes that any resource handles this task | |
void | setPassiveIfAllDaughtersPassive () |
sets the task onto the state ignorable if all daughters can be ignored | |
void | setStartDate (const string &pStartDate) |
updates the start-date of the task | |
void | setEndDate (const string &pEndDate) |
updates the end-date of the task | |
bool | fillTaskSubStructureByMrPrjXmlTaskNodes (xmlDocPtr xmlDoc, const xmlNodePtr pFirstTaskSubnode, map< string, Task * > &mGlobalTaskMap) |
for (recursively) transposing a task-xmlNode into the internal representation | |
bool | limitToTimeSlot (const string &pTimeSlotStart, const string &pTimeSlotEnd) |
for making a task ignorable if it doesn't belong to the given timeslot | |
bool | limitToOpenTasks () |
for recursively making a task ignorable if it is already fullfiled | |
int | insertXYposition (const int pEmbeddedLevel, int &pMaxEmbeddedLevel) |
for recursively determining the array position of the task | |
bool | printTaskAsMrPrjXmlFileMember (int pBlankIndents) const |
for rewriting the internal representation as mrproject-xml-file-member | |
bool | printTaskAsLeafMemoListMember (const string &pTaskPrefix, const string &pLevelOrderString, const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList, const bool iso8601) const |
for rewriting the internal representation as leaf-memo-list-member | |
bool | printTaskAsTreeMemoMember (const string &pLevelOrderString, int pTreeDepth, const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList, const bool iso8601) const |
for rewriting the internal representation as tree-memo-member | |
bool | printTaskAsLeafVTodoMember (const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList, const string &pConnectedProjectName) const |
for rewriting the internal representation as leaf-vtodo-member | |
bool | printTaskAsTreeVTodoMember (const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList, const string &pConnectedProjectName) const |
for rewriting the internal representation as tree-vtodo-member | |
bool | printTaskAsPilotLeafTodoMember (const string &pLevelOrderString, const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList) const |
for rewriting the internal representation as leaf-todo-member | |
bool | printTaskAsPilotTreeTodoMember (const string &pLevelOrderString, const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList) const |
for rewriting the internal representation as tree-todo-member | |
bool | printTaskAsLeafYankTodoMember (const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList) const |
for rewriting the internal representation as leaf-yank-todo-member | |
bool | printTaskAsTreeYankTodoMember (const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList, const int pBlankIndents) const |
for rewriting the internal representation as tree-yank-todo-member | |
bool | printTaskAsLeafCslTodoMember (const string &pLevelOrderString, const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList) const |
for rewriting the internal representation as leaf-cls-todo-member | |
bool | printTaskAsTreeCslTodoMember (const string &pLevelOrderString, const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList) const |
for rewriting the internal representation as tree-csl-todo-member | |
bool | printTaskAsHtmlSurveyMember (const map< string, Resource * > &pResourceMap, const list< Allocation * > &pAllocationList, const int maxPathLength, const string &pSurveyReferenceDayString) |
for rewriting the internal representation as set of html-table-rows |
instances of the class Task have the task to hold and change the content of those entries of the mrProject-Xml-File, by which the tasks of the project are described
Note:
(1) each task is represented as a tree consting of the task itself and a (possibly empty) list of its subtasks.
(2) the main / top task is a virtual task containing the id -1 and is not(!!!) a member of the original mrproject-xml-file
(3) each subtask will be created by the new-operator and must therefore explicitely be deleted the destructor of the (mother) task
Definition at line 1036 of file mrprjContent.h.
|
< class-constructor
Definition at line 577 of file mrprjContent.cc. References HM, and krmuo::LoggingUnit::makeEntry(). |
|
class-destructor class-destructor which destroys all subtask too Definition at line 615 of file mrprjContent.cc. References HM, and krmuo::LoggingUnit::makeEntry(). |
|
for (recursively) transposing a task-xmlNode into the internal representation
Definition at line 694 of file mrprjContent.cc. References mrprj::XmlNodeReader::getIntProperty(), mrprj::XmlNodeReader::getStringProperty(), and mTaskId. Referenced by mrprj::TaskField::fillTaskFieldByMrPrjXmlFileContent(). |
|
returns the task-description (note) as formatted string
Definition at line 2057 of file mrprjContent.cc. |
|
for recursively determining the array position of the task
Definition at line 826 of file mrprjContent.cc. Referenced by mrprj::TaskField::printTaskHtmlSurvey(). |
|
Definition at line 1143 of file mrprjContent.h. Referenced by limitToOpenTasks(), and printTaskAsMrPrjXmlFileMember(). |
|
for recursively making a task ignorable if it is already fullfiled
Definition at line 795 of file mrprjContent.cc. References getFullFilledPercent(), isEmptyTopTask(), and setPassive(). Referenced by mrprj::TaskField::limitToOpenTasks(). |
|
for making a task ignorable if it doesn't belong to the given timeslot
Definition at line 756 of file mrprjContent.cc. Referenced by mrprj::TaskField::limitToTimeSlot(). |
|
for rewriting the internal representation as set of html-table-rows while recursively traversing the task tree this method prints each (active) task as member of a yank-todo-file
Definition at line 1762 of file mrprjContent.cc. References krmuo::Converter::encode(), and mrprj::DateStringConverter::formGermanDateString(). Referenced by mrprj::TaskField::printTaskHtmlSurvey(). |
|
for rewriting the internal representation as leaf-cls-todo-member while recursively traversing the task tree this method prints leaf-task as member of a comma-seperated-todo-file
Definition at line 1615 of file mrprjContent.cc. References mrprj::DateStringConverter::formGermanDateString(). Referenced by mrprj::TaskField::printTaskFieldAsLeafCslTodo(). |
|
for rewriting the internal representation as leaf-memo-list-member while recursively traversing the task tree this methode collects all names / titles of those tasks which have subtasks and prints those which haven't any subtask while showing their mother-tasks as a prefix-string
Definition at line 987 of file mrprjContent.cc. References mrprj::DateStringConverter::formGermanDateString(). Referenced by mrprj::TaskField::printTaskFieldAsLeafListMemo(). |
|
for rewriting the internal representation as leaf-vtodo-member while recursively traversing the task tree this method prints one line for each (active) leaf-task (usable for pilot install-todos)
Definition at line 1182 of file mrprjContent.cc. Referenced by mrprj::TaskField::printTaskFieldAsLeafVTodo(). |
|
for rewriting the internal representation as leaf-yank-todo-member while recursively traversing the task tree this method prints leaf-task as member of a yank-todo-file
Definition at line 1466 of file mrprjContent.cc. References krmuo::Converter::encode(), and mrprj::DateStringConverter::formYankDateString(). Referenced by mrprj::TaskField::printTaskFieldAsLeafYankTodo(). |
|
for rewriting the internal representation as mrproject-xml-file-member prints recursively the task and its subtasks to stdout
Definition at line 893 of file mrprjContent.cc. References krmuo::Converter::encode(), getEndDate(), getFullFilledPercent(), getStartDate(), getTaskDescription(), getTaskId(), getTaskTitle(), and isEmptyTopTask(). Referenced by mrprj::TaskField::printTaskFieldAsMrPrjXmlFile(). |
|
for rewriting the internal representation as leaf-todo-member while recursively traversing the task tree this method prints one line for each (active) task (usable for pilot install-todos)
Definition at line 1399 of file mrprjContent.cc. Referenced by mrprj::TaskField::printTaskFieldAsPilotLeafTodo(). |
|
for rewriting the internal representation as tree-todo-member while recursively traversing the task tree this method prints one line for each (active) task (usable for pilot install-todos)
Definition at line 1331 of file mrprjContent.cc. Referenced by mrprj::TaskField::printTaskFieldAsPilotTreeTodo(). |
|
for rewriting the internal representation as tree-csl-todo-member while recursively traversing the task tree this method prints each (active) task as member of a comma-seperated-todo-file
Definition at line 1688 of file mrprjContent.cc. References mrprj::DateStringConverter::formGermanDateString(). Referenced by mrprj::TaskField::printTaskFieldAsTreeCslTodo(). |
|
for rewriting the internal representation as tree-memo-member while recursively traversing the task tree this method prints one line for each (active) task
Definition at line 1089 of file mrprjContent.cc. References mrprj::DateStringConverter::formGermanDateString(). Referenced by mrprj::TaskField::printTaskFieldAsTreeMemo(). |
|
for rewriting the internal representation as tree-vtodo-member while recursively traversing the task tree this method prints one line for each (active) task (usable for pilot install-todos)
Definition at line 1256 of file mrprjContent.cc. Referenced by mrprj::TaskField::printTaskFieldAsTreeVTodo(). |
|
for rewriting the internal representation as tree-yank-todo-member while recursively traversing the task tree this method prints each (active) task as member of a yank-todo-file
Definition at line 1535 of file mrprjContent.cc. References krmuo::Converter::encode(), and mrprj::DateStringConverter::formYankDateString(). Referenced by mrprj::TaskField::printTaskFieldAsTreeYankTodo(). |
|
updates the end-date of the task
Definition at line 1239 of file mrprjContent.h. |
|
sets the task onto the state ignorable if all daughters can be ignored (1) tries to set each daughter onto passive if all of their daughters are passive (2) tests wether any daughter is still active after that action (3) makes this task passive if all daughter tasks are passive
Definition at line 651 of file mrprjContent.cc. References setAnyDaughterIsActive(), and setPassive(). Referenced by mrprj::TaskField::limitToThoseWithActiveDaughters(). |
|
updates the start-date of the task
Definition at line 1231 of file mrprjContent.h. |