~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/gameengine/Expressions/StringValue.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
 * StringValue.h: interface for the CStringValue class.
3
 
 * $Id: StringValue.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
 
 
15
/** \file StringValue.h
 
16
 *  \ingroup expressions
 
17
 */
 
18
 
16
19
#ifndef __STRINGVALUE_H__
17
20
#define __STRINGVALUE_H__
18
21
 
28
31
        CStringValue();
29
32
        CStringValue (const char *txt, const char *name , AllocationTYPE alloctype = CValue::HEAPVALUE);
30
33
 
31
 
        virtual ~CStringValue() {
32
 
        };
 
34
        virtual ~CStringValue() {}
33
35
        /// CValue implementation
34
36
        virtual bool            IsEqual(const STR_String & other);
35
37
        virtual const STR_String &      GetText();
37
39
        
38
40
        virtual CValue*         Calc(VALUE_OPERATOR op, CValue *val);
39
41
        virtual CValue*         CalcFinal(VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val);
40
 
        virtual void            SetValue(CValue* newval) {      m_strString = newval->GetText(); SetModified(true);     };
 
42
        virtual void            SetValue(CValue* newval) {      m_strString = newval->GetText(); SetModified(true);     }
41
43
        virtual CValue*         GetReplica();
42
 
#ifndef DISABLE_PYTHON
 
44
#ifdef WITH_PYTHON
43
45
        virtual PyObject*       ConvertValueToPython() {
44
 
                return PyUnicode_FromString(m_strString.Ptr());
 
46
                return PyUnicode_From_STR_String(m_strString);
45
47
        }
46
 
#endif // DISABLE_PYTHON
 
48
#endif // WITH_PYTHON
47
49
 
48
50
private:
49
51
        // data member