Panda3D

Loading...
Searching...
No Matches
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 {
27PUBLISHED:
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
basicSkel.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BasicSkel::get_value
int get_value()
Retreives a value that was previously stored.
Definition basicSkel.I:40
BasicSkel::get_value_alt
int get_value_alt()
Retreives a value that was previously stored.
Definition basicSkel.cxx:30
BasicSkel::set_value_alt
void set_value_alt(int n)
Stores an integer value.
Definition basicSkel.cxx:21
BasicSkel::set_value
void set_value(int n)
Stores an integer value.
Definition basicSkel.I:32
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.