Skip to content

Commit

Permalink
libcore: Variable is Deletable
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 22, 2016
1 parent 42b1a69 commit 171d3bf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions doomsday/sdk/libcore/include/de/data/variable.h
Expand Up @@ -14,7 +14,7 @@
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details. You should have received a copy of
* the GNU Lesser General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
* http://www.gnu.org/licenses</small>
*/

#ifndef LIBDENG2_VARIABLE_H
Expand All @@ -23,6 +23,7 @@
#include "../ISerializable"
#include "../String"
#include "../Audience"
#include "../Deletable"

#include <QFlags>

Expand All @@ -31,14 +32,14 @@ namespace de {
class Value;
class ArrayValue;
class Record;

/**
* Stores a value and name identifier. Variables are typically stored in a Record.
* A variable's behavior is defined by its mode flags.
*
* @ingroup data
*/
class DENG2_PUBLIC Variable : public ISerializable
class DENG2_PUBLIC Variable : public Deletable, public ISerializable
{
public:
/// There was an attempt to change the value of a read-only variable. @ingroup errors
Expand Down Expand Up @@ -200,14 +201,14 @@ class DENG2_PUBLIC Variable : public ISerializable
Record const &valueAsRecord() const;

Record &valueAsRecord();

/**
* Returns the value of the variable as an ArrayValue.
*/
ArrayValue const &array() const;

ArrayValue &array();

operator Record & ();

operator Record const & () const;
Expand Down

0 comments on commit 171d3bf

Please sign in to comment.