本文整理汇总了C++中setID函数的典型用法代码示例。如果您正苦于以下问题:C++ setID函数的具体用法?C++ setID怎么用?C++ setID使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setID函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VoreenModuleQt
OpenCLModuleQt::OpenCLModuleQt(const std::string& modulePath)
: VoreenModuleQt(modulePath)
{
setID("OpenCL (Qt)");
setGuiName("OpenCL (Qt)");
registerPropertyWidgetFactory(new OpenCLPropertyWidgetFactory());
registerProcessorWidgetFactory(new OpenCLProcessorWidgetFactory());
}
示例2: setID
CPlayerList::CPlayerList(CJogador *Jogador)
{
setID(-1);
_first = new SPlayerElemento();
_first->valor = Jogador;
_first->next = NULL;
_first->prev = NULL;
_size = 1;
}
示例3: printf
void EQPlayer::setPlayerID(uint16_t playerID)
{
if (m_playerID != playerID)
{
printf("Your player's id is %i\n", playerID);
m_playerID = playerID;
emit setID(m_playerID);
}
}
示例4: setID
Session::Session(unsigned int id, std::string tulpa_name, int session_type_id, std::string description, int duration, std::string date)
{
setID(id);
setTypeID(session_type_id);
setTulpaName(tulpa_name);
setDescription(description);
setDuration(duration);
setDate(date);
}
示例5: setID
CocosTile::CocosTile(std::string name, std::string tileID, std::string extension)
:Tile(name, tileID, extension)
{
_sprite = NULL;
_tileName = name;
_tileExt = extension;
setID(tileID);
}
示例6: setID
CBuffList::CBuffList(CBuff *Buff)
{
setID(-1);
_first = new SBuffElemento();
_first->valor = Buff;
_first->next = NULL;
_first->prev = NULL;
_size = 1;
}
示例7: setID
void WIcon::setIcon(const hacc::TDBID &iconID)
{
setID(iconID);
if (!m_connected)
{
m_connected = connect(HACC_DB_ICONS, SIGNAL(updated(hacc::TDBID)), this, SLOT(updated(hacc::TDBID)));
}
refreshIdIcon();
}
示例8: DefenseUnit
AntiAirUnit::AntiAirUnit(DefenseUnit *inUnit, AI *ai) : DefenseUnit(inUnit, ai) {
setID(inUnit->getID());
setPos(inUnit->getPosX(), inUnit->getPosY());
setDistanceTo(inUnit->getDistanceTo());
setState(inUnit->getState());
setRadius(inUnit->getRadius());
setArmor(inUnit->getArmor());
}
示例9: setID
CCenarioList::CCenarioList(CCenario *Cenario)
{
setID(-1);
_first = new SCenarioElemento();
_first->valor = Cenario;
_first->next = NULL;
_first->prev = NULL;
_size = 1;
}
示例10: setName
/******************************************************************************
* Student()
* This default constructor will create a Student object
*****************************************************************************/
Student::Student()
{
setName("");
setID(0);
setPhoneNumber(0);
setAge(0);
setClassStanding("");
setGPA(0.0);
}
示例11: setID
/* ==========================================================================
DESC
@param null nothing
@return null nothing
========================================================================== */
void Page::init() {
setID(DEFAULT_PAGE_NAME);
PageSubstrate = NULL;
MarginTop = 0.0;
MarginBottom = 0.0;
MarginLeft = 0.0;
MarginRight = 0.0;
setUnits(in);
}
示例12: VoreenModuleQt
StereoscopyModuleQt::StereoscopyModuleQt(const std::string& modulePath)
: VoreenModuleQt(modulePath)
{
setID("Stereoscopy (Qt)");
setGuiName("Stereoscopy (Qt)");
addShaderPath(getModulePath("glsl/qt"));
registerProcessorWidgetFactory(new StereoscopyProcessorWidgetFactory());
}
示例13: setID
Vic2::State::State(std::set<std::pair<int, Vic2::Province*>> theProvinces)
{
for (auto province: theProvinces)
{
provinceNums.insert(province.first);
provinces.insert(province.second);
}
setID();
determineIfPartialState();
}
示例14: setID
void
daeIDRef::resolveID()
{
if (state == id_empty) {
if (element != NULL)
setID(element->getID());
else
state = id_failed_invalid_reference;
}
}
示例15: setPassword
/**
* enterInformation function
* Sets ID and password and invokes checkMatchIDPassword function. If the function returns false, "Wrong Username or Password" message appears on the screen
*/
void Login::enterInformation()
{
setPassword();
if(checkMatchIDPassword() == true){
setID();
}
else {
eyegui::setContentOfTextBlock(pLayout, "textblock", "Wrong Username or Password");
}
}