root/juggler/tags/1.0_alpha_02/Doc/ExampleClass.h

Revision 11, 1.3 kB (checked in by allenb, 11 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2 //-------------------------------------
3 //: This is an example class.
4 //
5 // It is an example of how the VR Juggler
6 // classes should be written
7 //---------------------------------------
8 class ExampleClass
9 {
10 public:
11    //  Example constructor
12    //
13    //! PRE: None
14    //! POST: Object is constructed
15    ExampleClass()
16    {
17       mIntVariable = 0;
18       mFloatVariable = 0.0f;
19    }
20
21 public:
22    //:  Brief header comment
23    //  More detailed header comment here.  This more detailed
24    // comment tells more information about what the function
25    // is doing and maybe how it does it.
26    //
27    //! PRE: No Header Precondition
28    //! POST: No Header Post conditions
29    //
30    //! ARGS: junkValue - This is a vlaue that passes in
31    //+                     some junk of some sort
32    //! ARGS: junkValue2 - This is some other value that
33    //+                     we really don't need to use.
34    //
35    //! RETURNS: 1 - Successfully did it's thing
36    //! RETURNS: 0 - Failed miserably
37    //
38    //! NOTE: This is a small notice of some exceptional
39    //+       thing this function does.
40    //
41    //! MODIFIES: mIntVariable will be modified
42    int doSomething(int junkValue, int junkValue2);
43
44 private:
45    int   mIntVariable;     // Example integer variable
46    float mFloatVariable;   // Example float variable
47 };
Note: See TracBrowser for help on using the browser.