title: typedef structs declared inside class or outside?
body: <p>I'm creating a class called ImageLoader that will be used to load various image formats.  For various image formats there are certain structs used.  For example with bmp files you have a BITMAPFILEHEADER struct and two others.</p>
  
  <p>What I want to know is, when I'm putting my class definition in the header file, do I make the struct typedefs part of the class definition, or should they be separate, outside the class definition?</p>
  
  <p>I'm not sure because if I was just declaring a struct variable, that would obviously happen in the class, but because I'm defining a type, I'm not sure if it's considered good design to define a type inside a class.</p>