I am parsing a txt file in c++ and after parsing I have data in tree form like:

Movie1
Actor
N1
N2
N3
Movie2
Actor
N1
N2

Problem is how to store and pass this data to caller ?