COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
covise::PortItem Class Reference

#include <Items.h>

Inheritance diagram for covise::PortItem:
Inheritance graph
[legend]
Collaboration diagram for covise::PortItem:
Collaboration graph
[legend]

Public Member Functions

 PortItem ()
 
 PortItem (const string &name, const string &type, const string &desc, const bool &ifChoice)
 
virtual ~PortItem ()
 
string getName ()
 
string getType ()
 
string getDesc ()
 
coOutputPortgetPortPtr () const
 
void setPortPtr (coOutputPort *ptr)
 
coChoiceParamgetChoicePtr ()
 
void setChoicePtr (coChoiceParam *ptr)
 
void fillChoice (const string &it)
 
virtual void fillChoice (vector< string > &it, bool do_update=false)
 
virtual void updateChoice (vector< string > &it)
 
int getChoice ()
 
void cleanChoice ()
 
bool hasChoice ()
 
bool empty ()
 

Private Member Functions

void syncChoice (bool do_update)
 

Private Attributes

string name_
 
string type_
 
string desc_
 
bool empty_
 
coChoiceParamchoicePtr_
 
coOutputPortportPtr_
 
bool ifChoice_
 
int maxChoiceVal_
 
vector< stringchoiceLabels_
 

Constructor & Destructor Documentation

PortItem::PortItem ( )
PortItem::PortItem ( const string name,
const string type,
const string desc,
const bool &  ifChoice 
)
virtual covise::PortItem::~PortItem ( )
inlinevirtual

Member Function Documentation

void PortItem::cleanChoice ( )
bool PortItem::empty ( )
void PortItem::fillChoice ( const string it)
void PortItem::fillChoice ( vector< string > &  it,
bool  do_update = false 
)
virtual

Reimplemented in covise::CompVecPortItem.

int PortItem::getChoice ( )
coChoiceParam* covise::PortItem::getChoicePtr ( )
inline
string covise::PortItem::getDesc ( )
inline
string covise::PortItem::getName ( )
inline
coOutputPort * PortItem::getPortPtr ( ) const
string covise::PortItem::getType ( )
inline
bool covise::PortItem::hasChoice ( )
inline
void covise::PortItem::setChoicePtr ( coChoiceParam ptr)
inline
void PortItem::setPortPtr ( coOutputPort ptr)
void PortItem::syncChoice ( bool  do_update)
private
virtual void covise::PortItem::updateChoice ( vector< string > &  it)
inlinevirtual

Reimplemented in covise::CompVecPortItem.

Member Data Documentation

vector<string> covise::PortItem::choiceLabels_
private
coChoiceParam* covise::PortItem::choicePtr_
private
string covise::PortItem::desc_
private
bool covise::PortItem::empty_
private
bool covise::PortItem::ifChoice_
private
int covise::PortItem::maxChoiceVal_
private
string covise::PortItem::name_
private
coOutputPort* covise::PortItem::portPtr_
private
string covise::PortItem::type_
private

The documentation for this class was generated from the following files: