Project Repository

Summary

A Command-Line Interface (CLI) application written in C++ for managing a collection of generic Media, CDs, and DVDs. This project was developed as a practical assignment for the Object-Oriented Programming (POO) course at the Federal University of Ceará (UFC). The program features an interactive menu to handle creating, listing, removing, and querying media files, heavily focusing on utilizing the Standard Template Library (STL) for data manipulation and algorithms.

Lessons Learned

Building this application reinforced core Object-Oriented Programming concepts, particularly the use of inheritance and polymorphism through a base Midia class and its derived CD and DVD classes. The assignment requirements also emphasized the architectural necessity of selecting the most appropriate STL containers for the context and applying them to their full extent. Furthermore, the project provided hands-on experience with persistent file handling (I/O), ensuring data is automatically loaded from and saved to local .txt files.

Features and Queries

The application implements standard CRUD operations (create, show, remove) with persistent storage that seamlessly saves the state to a Resources/ directory upon exiting. Additionally, it features a sub-menu for advanced queries and sorting required by the assignment specification:

  • Artist Filtering: Retrieve CDs, DVDs, or all media authored by a specific artist, chronologically ordered by release date.
  • Year & Genre Searches: Query all media released in a specific year or separated by a specific genre, sorted alphabetically.
  • Keyword Extraction: Dynamically extract and list all unique keywords found across the entire media collection without repetition.