Jump to content
  • Advertisement
Sign in to follow this  

YAML (and some yaml-cpp)

This topic is 3161 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, is this a proper YAML document?
maxChannels: 37
 - name: Loitering
   stuff: blabla
 - name: Walk
   stuff: lalala

When parsing this with yaml-cpp I don't get an error. But if I'm starting to iterate through the nodes I stumble upon one uninitialized node (somewhere after "animations") which causes a crash. A little bit scary that yaml-cpp doesn't warn me. When I iterate through nodes, how do I read the node's "name"? I seem to be unable to find that info... Thanks for any advice!

Share this post

Link to post
Share on other sites
Turns out that I was accidentally indexing a Node* instead of using the overloaded operator[]. After correcting that error things became somewhat clearer. :)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!