GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsjcpp/wsjcpp-print-tree: Helper class for print tree like a for filesystems

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
src.wsjcpp
src.wsjcpp
 
 
src
src
 
 
unit-tests.wsjcpp
unit-tests.wsjcpp
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build_simple.sh
build_simple.sh
 
 
wsjcpp.yml
wsjcpp.yml
 
 

Repository files navigation

wsjcpp-print-tree

Build Status Github Stars Github Stars Github Forks Total alerts Language grade: C/C++

Helper class for print tree like a for filesystems

How to integrate to your project

First way:

wsjcpp install https://github.com/wsjcpp/wsjcpp-print-tree:master

Second way integrate files:

  • src.wsjcpp/wsjcpp_core/wsjcpp_core.h
  • src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp
  • wsjcpp_print_tree.h
  • wsjcpp_print_tree.cpp

Example of usage

WsjcppPrintTree tree("Example Of Tree");
tree
    .addChild("Hello1")
        .switchToLatestChild()
        .addChild("Hello2")
            .switchToLatestChild()
            .switchToParent()    
        .addChild("Hello2")
        .switchToParent()
    .addChild("Hello3")
        .switchToLatestChild()
        .switchToParent()
    .addChild("Hello4") // 
        .switchToLatestChild()
        .addChild("Hello123")
        .switchToParent()
;
std::cout << tree.printTree() << std::endl;

Result will be like this:

Example Of Tree
├─ Hello1
│  ├─ Hello2
│  └─ Hello2
├─ Hello3
└─ Hello4
   └─ Hello123

About

Helper class for print tree like a for filesystems

Topics

cppprint-treewsjcpp-package

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.