Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
bf027a50
Commit
bf027a50
authored
Feb 02, 2010
by
Sebastian Eichelbaum
Browse files
[CHANGE] - WPropertyVariable now uses WFlag instead of WProperty2
parent
cfdb60c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
139 deletions
+0
-139
src/common/WProperty2.cpp
src/common/WProperty2.cpp
+0
-50
src/common/WProperty2.h
src/common/WProperty2.h
+0
-89
No files found.
src/common/WProperty2.cpp
deleted
100644 → 0
View file @
cfdb60c5
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty 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 OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include <string>
#include "WProperty2.h"
WProperty2
::
WProperty2
(
std
::
string
name
,
std
::
string
description
)
:
m_name
(
name
),
m_description
(
description
)
{
// initialize members
}
WProperty2
::~
WProperty2
()
{
// clean up
}
std
::
string
WProperty2
::
getName
()
const
{
return
m_name
;
}
std
::
string
WProperty2
::
getDescription
()
const
{
return
m_description
;
}
src/common/WProperty2.h
deleted
100644 → 0
View file @
cfdb60c5
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty 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 OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#ifndef WPROPERTY2_H
#define WPROPERTY2_H
#include <string>
#include "WPropertyTypes.h"
/**
* Class managing a single named property.
*/
class
WProperty2
{
public:
/**
* Create an empty instance just containing a name.
*
* \param name the property name
* \param description the property description
*/
WProperty2
(
std
::
string
name
,
std
::
string
description
);
/**
* Destructor.
*/
virtual
~
WProperty2
();
/**
* Get the name of the property.
*
* \return the name.
*/
std
::
string
getName
()
const
;
/**
* Get the description of the property.
*
* \return the description.
*/
std
::
string
getDescription
()
const
;
/**
* Returns the actual type of the property. This is needed to identify all subclassed types.
*
* \return the type.
*/
virtual
PROPERTY_TYPE
getType
()
const
=
0
;
protected:
/**
* Name of the property.
*/
std
::
string
m_name
;
/**
* Description of the property.
*/
std
::
string
m_description
;
private:
};
#endif // WPROPERTY2_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment