Panda3D
basicSkel.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file basicSkel.h
10  * @author jyelon
11  * @date 2007-01-31
12  */
13 
14 #ifndef BASICSKEL_H
15 #define BASICSKEL_H
16 
17 #include "pandabase.h"
18 
19 /**
20  * This is the most basic of the skeleton classes. It stores an integer, and
21  * will return it on request.
22  *
23  * The skeleton classes are intended to help you learn how to add C++ classes
24  * to panda. See also the manual, "Adding C++ Classes to Panda."
25  */
26 class EXPCL_PANDASKEL BasicSkel {
27 PUBLISHED:
28  INLINE BasicSkel();
29  INLINE ~BasicSkel();
30 
31  // These inline functions allow you to get and set _value.
32  INLINE void set_value(int n);
33  INLINE int get_value();
34 
35  // These do the same thing as the functions above.
36  void set_value_alt(int n);
37  int get_value_alt();
38 
39 private:
40  int _value;
41 };
42 
43 #include "basicSkel.I"
44 
45 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the most basic of the skeleton classes.
Definition: basicSkel.h:26
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.