fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
WsjcppPrintTree Class Reference

#include <wsjcpp_print_tree.h>

Collaboration diagram for WsjcppPrintTree:
Collaboration graph
[legend]

Public Member Functions

 WsjcppPrintTree (const std::string &sTitle)
 
WsjcppPrintNodegetRootNode ()
 
WsjcppPrintNodegetCurrentNode ()
 
WsjcppPrintTreeswitchToLatestChild ()
 
WsjcppPrintTreeaddChild (const std::string &sTitle)
 
WsjcppPrintTreeswitchToParent ()
 
std::string printTree ()
 

Private Member Functions

std::string printRecoursive (const std::string &sPrefix, WsjcppPrintNode *pParentNode)
 

Private Attributes

std::string TAG
 
WsjcppPrintNodem_pRootNode
 
WsjcppPrintNodem_pCurrentNode
 

Constructor & Destructor Documentation

◆ WsjcppPrintTree()

WsjcppPrintTree::WsjcppPrintTree ( const std::string &  sTitle)

Member Function Documentation

◆ addChild()

WsjcppPrintTree & WsjcppPrintTree::addChild ( const std::string &  sTitle)

◆ getCurrentNode()

WsjcppPrintNode * WsjcppPrintTree::getCurrentNode ( )

◆ getRootNode()

WsjcppPrintNode * WsjcppPrintTree::getRootNode ( )

◆ printRecoursive()

std::string WsjcppPrintTree::printRecoursive ( const std::string &  sPrefix,
WsjcppPrintNode pParentNode 
)
private

◆ printTree()

std::string WsjcppPrintTree::printTree ( )

◆ switchToLatestChild()

WsjcppPrintTree & WsjcppPrintTree::switchToLatestChild ( )

◆ switchToParent()

WsjcppPrintTree & WsjcppPrintTree::switchToParent ( )

Member Data Documentation

◆ m_pCurrentNode

WsjcppPrintNode* WsjcppPrintTree::m_pCurrentNode
private

◆ m_pRootNode

WsjcppPrintNode* WsjcppPrintTree::m_pRootNode
private

◆ TAG

std::string WsjcppPrintTree::TAG
private

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