~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/gameengine/Expressions/Expression.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Expression.h: interface for the CExpression class.
3
 
 * $Id: Expression.h 29259 2010-06-06 01:15:44Z campbellbarton $
4
3
 * Copyright (c) 1996-2000 Erwin Coumans <coockie@acm.org>
5
4
 *
6
5
 * Permission to use, copy, modify, distribute and sell this software
13
12
 *
14
13
 */
15
14
 
16
 
#if !defined _EXPRESSION_H
17
 
#define _EXPRESSION_H
 
15
/** \file Expression.h
 
16
 *  \ingroup expressions
 
17
 */
 
18
 
 
19
#ifndef __EXPRESSION_H__
 
20
#define __EXPRESSION_H__
18
21
 
19
22
#include "Value.h"
20
23
 
21
24
//extern int gRefCountExpr; // only for debugging purposes (detect mem.leaks)
22
25
 
23
26
 
24
 
#define PLUGIN_DECLARE_SERIAL_EXPRESSION(class_name,base_class_name)                                                                    \
25
 
public:                                                                                                                                                                         \
26
 
        virtual base_class_name *       Copy()                                          { return new class_name; }              \
27
 
        virtual bool EdSerialize(CompressorArchive& arch,class CFactoryManager* facmgr,bool bIsStoring);    \
28
 
        virtual bool EdIdSerialize(CompressorArchive& arch,class CFactoryManager* facmgr,bool bIsStoring)  \
29
 
{                               \
30
 
        if (bIsStoring)                 \
31
 
        {                                                       \
32
 
                unsigned char exprID = GetExpressionID(); \
33
 
                arch << exprID;                                 \
34
 
        }                                               \
35
 
        return true; \
36
 
}                               \
 
27
#define PLUGIN_DECLARE_SERIAL_EXPRESSION(class_name, base_class_name)          \
 
28
public:                                                                        \
 
29
        virtual base_class_name * Copy() {                                         \
 
30
                return new class_name;                                                 \
 
31
        }                                                                          \
 
32
        virtual bool EdSerialize(CompressorArchive& arch,                          \
 
33
                                 class CFactoryManager* facmgr,                    \
 
34
                                 bool bIsStoring);                                 \
 
35
        virtual bool EdIdSerialize(CompressorArchive& arch,                        \
 
36
                                   class CFactoryManager* facmgr,                  \
 
37
                                   bool bIsStoring)                                \
 
38
        {                                                                          \
 
39
                if (bIsStoring)                                                        \
 
40
                {                                                                      \
 
41
                        unsigned char exprID = GetExpressionID();                          \
 
42
                        arch << exprID;                                                    \
 
43
                }                                                                      \
 
44
                return true;                                                           \
 
45
        }                                                                          \
37
46
 
38
47
 
39
48
 
141
150
#endif
142
151
};
143
152
 
144
 
#endif // !defined _EXPRESSION_H
 
153
#endif // !defined __EXPRESSION_H__
145
154