// @topic W15-8-120 hard drive items
// @brief class implementation

#include "items.h"

Item::Item( std::string owner, time_t timestamp )
    // constructor initializer list
    :
    owner(owner), timestamp(timestamp)
{
}

Folder::Folder(
    std::string owner,
    std::string path,
    time_t timestamp
    )
    :
    Item( owner, timestamp ), path( path )
{
}

void Item::print()
{
    std::cout
        << "Item: "
        << owner
        << " - "
        << timestamp
        << "\n"
        ;
}