COVISE Core
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() [1/2]

PortItem::PortItem ( )

◆ PortItem() [2/2]

PortItem::PortItem ( const string name,
const string type,
const string desc,
const bool &  ifChoice 
)

◆ ~PortItem()

virtual covise::PortItem::~PortItem ( )
inlinevirtual

Member Function Documentation

◆ cleanChoice()

void PortItem::cleanChoice ( )

◆ empty()

bool PortItem::empty ( )

◆ fillChoice() [1/2]

void PortItem::fillChoice ( const string it)

◆ fillChoice() [2/2]

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

Reimplemented in covise::CompVecPortItem.

◆ getChoice()

int PortItem::getChoice ( )

◆ getChoicePtr()

coChoiceParam * covise::PortItem::getChoicePtr ( )
inline

◆ getDesc()

string covise::PortItem::getDesc ( )
inline

◆ getName()

string covise::PortItem::getName ( )
inline

◆ getPortPtr()

coOutputPort * PortItem::getPortPtr ( ) const

◆ getType()

string covise::PortItem::getType ( )
inline

◆ hasChoice()

bool covise::PortItem::hasChoice ( )
inline

◆ setChoicePtr()

void covise::PortItem::setChoicePtr ( coChoiceParam ptr)
inline

◆ setPortPtr()

void PortItem::setPortPtr ( coOutputPort ptr)

◆ syncChoice()

void PortItem::syncChoice ( bool  do_update)
private

◆ updateChoice()

virtual void covise::PortItem::updateChoice ( vector< string > &  it)
inlinevirtual

Reimplemented in covise::CompVecPortItem.

Member Data Documentation

◆ choiceLabels_

vector<string> covise::PortItem::choiceLabels_
private

◆ choicePtr_

coChoiceParam* covise::PortItem::choicePtr_
private

◆ desc_

string covise::PortItem::desc_
private

◆ empty_

bool covise::PortItem::empty_
private

◆ ifChoice_

bool covise::PortItem::ifChoice_
private

◆ maxChoiceVal_

int covise::PortItem::maxChoiceVal_
private

◆ name_

string covise::PortItem::name_
private

◆ portPtr_

coOutputPort* covise::PortItem::portPtr_
private

◆ type_

string covise::PortItem::type_
private

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