Loading...
Searching...
No Matches
selectable.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: selectable.h,v 1.20 2005/12/23 17:01:41 amoll Exp $
//
#ifndef BALL_CONCEPT_SELECTABLE_H
#define BALL_CONCEPT_SELECTABLE_H
#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif
#ifndef BALL_CONCEPT_PERSISTENTOBJECT_H
# include <BALL/CONCEPT/persistentObject.h>
#endif
#define BALL_SELECTABLE_DEFAULT_SELECTION false
namespace BALL
{
class BALL_EXPORT Selectable
{
public:
Selectable()
;
Selectable(const Selectable& selectable, bool deep = true)
;
virtual ~Selectable()
;
virtual void clear()
;
void set(const Selectable& selectable, bool deep = true)
;
const Selectable& operator = (const Selectable& selectable)
;
void get(Selectable& selectable, bool deep = true) const
;
void swap(Selectable& selectable)
;
virtual void select()
;
virtual void deselect()
;
virtual void setSelected(bool selected)
{ selected_ = selected; }
bool isSelected() const
;
bool operator == (const Selectable& selectable) const
;
bool operator != (const Selectable& selectable) const
;
void write(PersistenceManager& pm) const
;
bool read(PersistenceManager& pm)
;
virtual void dump(::std::ostream& s = std::cout, Size depth = 0) const
;
protected:
bool selected_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/CONCEPT/selectable.iC>
# endif
} // namespace BALL
#endif // BALL_CONCEPT_SELECTABLE_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::PersistenceManager
Definition persistenceManager.h:73
BALL::Selectable::select
virtual void select()
BALL::Selectable::read
bool read(PersistenceManager &pm)
BALL::Selectable::setSelected
virtual void setSelected(bool selected)
Definition selectable.h:123
BALL::Selectable::deselect
virtual void deselect()
BALL::Selectable::write
void write(PersistenceManager &pm) const
BALL::Selectable::clear
virtual void clear()
BALL::Selectable::get
void get(Selectable &selectable, bool deep=true) const
BALL::Selectable::set
void set(const Selectable &selectable, bool deep=true)
BALL::Selectable::Selectable
Selectable(const Selectable &selectable, bool deep=true)
BALL::Selectable::dump
virtual void dump(::std::ostream &s=std::cout, Size depth=0) const
BALL::Selectable::swap
void swap(Selectable &selectable)
BALL::Selectable::isSelected
bool isSelected() const
BALL::Selectable::selected_
bool selected_
Definition selectable.h:184
BALL::Selectable::Selectable
Selectable()
BALL::Selectable::~Selectable
virtual ~Selectable()
common.h
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
persistentObject.h