Mp3 list as output table
<p>i have a question because i want to output my Datastruct like a Table and it shoult be sortable.</p>

<p>It should look like this:</p>

<pre><code>|Title|Artist|Album|Genre|
|-----+------+-----+-----+
| xxx | xxxx + xxx + xxx |
|________________________|
</code></pre>

<p>My Class:</p>

<pre><code>class mp3{
public:
       mp3(std::string title,
           std::string artist,
           std::string album,
           std::string genre)
                            :mTitle(title),
                             mArtist(artist),
                             mAlbum(album),
                             mGenre(genre);
       ~mp3();
       std::string getArtist() const;
       std::string getTitle() const;

private:
std::string mTitle;
std::string mArtist;
std::string mAlbum;
std::string mGenre;
</code></pre>

<p>};</p>

<p>My first thought was,to put the variables into a map and return it to my function,which will draw the table.
My function would have a vector of map that i could sort it without a lot of work.</p>

<p>For example:</p>

<pre><code> myMap.insert(std::pair&lt;std::string,std::string&gt;("Artist","Jimmy Hendrix"));
 myMap.insert(std::pair&lt;std::string,std::string&gt;("Title","Foxy Lady"));
</code></pre>

<p>Is there a better solution?</p>
