Giter Club home page Giter Club logo

file-manager-emulator's People

Contributors

tntultra avatar

Watchers

 avatar

file-manager-emulator's Issues

create class hierachy for node types.

why? remove code duplication and uglyness of calling NodeIndex[id]->DataBlock->Refs.do_something
everytime.

for example (pseudocode):
tFileBase {
INode* node;
virtual unsigned get_id () const;
virtual unsigned get_ref() const;
virtual unsigned get_parent() const;
virtual tFileBase* clone();
etc
}

tDir, tFile, tSoftLink : public tFileBase {
#implement actual functions
}

make different datablock instead of generic one for each class
(why? for_example, its a waste to store whole unordered_map just for one node in softlink)

issue: to get rid of slicing std::list should contain shared_ptrs of nodes.
clone function needed. weak_ptrs needed in NodeIndex in that case

deleting links

batch' syntax for proper link deletion should be like this
DEL C:\Dir1\Edir4\dlink[C:\Dir1\Dir2\Dir3]
that's not currently parsed correctly: returns only the path inside brackets.
also soft link should be stored with full path name instead of actual name, so
dlink[Dir3] should be changed to dlink[{somepath}\Dir3]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.