File: Descriptable.h

package info (click to toggle)
dyssol 1.5.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,204 kB
  • sloc: cpp: 53,870; sh: 85; python: 59; makefile: 11
file content (16 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */

#pragma once
#include <string>

class CDescriptable
{
	std::string m_sDescription;	// User provided description.

public:
	// Returns property's description
	std::string GetDescription() const { return m_sDescription; }
	// Sets new property's description
	void SetDescription(const std::string& _sText) { m_sDescription = _sText; }
};