Jakes," cakes in a jar, are a great solution for such situations. This product, whose idea was introduced on an American TV program, is currently seeking investors on KickStarter.
Jakes" is "Cake In a Jar" = cake in a jar. The lid is opened and the cake is eaten directly from the jar. When you have eaten as much as you like, you put the lid back on and put the cake in the refrigerator. The cakes can be refrigerated for up to 10 days or frozen for up to a month.
The cake comes in four flavors. Chocolate and Cheesecake, Red Velvet and Cheesecake, Sky (cream cheese and white chocolate), and Carrot Cake, all of which are "handmade." They are priced at $8 each.
If you really want to take a cake with you on your trip, "Jakes" will work for you. However, if you are flying, you need to be careful about bringing them on board, as they may be considered "liquid.