/**This is a simple example of a header to demonstrate Cheader-parsing.*/
#ifndef __example_h   //this construct will be expected by Cheader.zbnf
#define __example_h

/**Example of a struct type. The comment should be written above, like javadoc. */
typedef struct MyStruct_t
{ /**Also a comment to each element should be written above/before.*/
  int a;
  /**Comment and type for both variables: */
  long b,c;

  /**Two arrays. */
  int x[10], y[10];

  float f;  //the comment after a element will also be detected as comment.
} MyStruct;


/**A C routine prototype.
*/
float doWhat(int x);


/**Example of a C++ class. 
 * This description to the class uses the convertWikistyle-Feature:
 * * It is a list bullet,
 * * second list item
 * *+Second paragraph in the same item.
 * Now some informations are present in a little table:
 * {|!!table-row      !! second row     !! third row    
 * |-||table entry    || second cell    || third cell   
 * |-||table entry-2  || second cell-2  || third cell-2 
 * |}
 * And some things more. It may be able to read also in ASCII,
 */
class MyStruct2
{ /**The variable x. */
  private: int x;

  /**A virtual method.
   * @param x The argument.
   * @return anything.
   */
  public: virtual int doSomething(float x)=0;

  /**A implemented  method.
   * @param x The argument.
   * @return anything.
   */
  protected: int execute(float x)
  { int a=5;
    return (int)(a*x);
  }
};


#endif __example.h