How do I setup multiple weapon animations (idle, moving, attacking, etc)

I’m new to animations and setup an inventory system in C++ for learning purposes. After setting up equipping weapons, I would now like to learn how to put play specific animations based on what weapon type is equipped.