Blender V2.61 - r43446
Classes | Defines

Expression.h File Reference

#include "Value.h"

Go to the source code of this file.

Classes

class  CBrokenLinkInfo
class  CExpression

Defines

#define PLUGIN_DECLARE_SERIAL_EXPRESSION(class_name, base_class_name)

Detailed Description

Definition in file Expression.h.


Define Documentation

#define PLUGIN_DECLARE_SERIAL_EXPRESSION (   class_name,
  base_class_name 
)
Value:
public:                                                                        \
    virtual base_class_name * Copy() {                                         \
        return new class_name;                                                 \
    }                                                                          \
    virtual bool EdSerialize(CompressorArchive& arch,                          \
                             class CFactoryManager* facmgr,                    \
                             bool bIsStoring);                                 \
    virtual bool EdIdSerialize(CompressorArchive& arch,                        \
                               class CFactoryManager* facmgr,                  \
                               bool bIsStoring)                                \
    {                                                                          \
        if (bIsStoring)                                                        \
        {                                                                      \
            unsigned char exprID = GetExpressionID();                          \
            arch << exprID;                                                    \
        }                                                                      \
        return true;                                                           \
    }                                                                          \

Definition at line 27 of file Expression.h.