当前位置: 首页>>代码示例>>C++>>正文


C++ setID函数代码示例

本文整理汇总了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());
}
开发者ID:151706061,项目名称:Voreen,代码行数:9,代码来源:openclmoduleqt.cpp

示例2: setID

CPlayerList::CPlayerList(CJogador *Jogador)
{
	setID(-1);
	_first = new SPlayerElemento();
	_first->valor = Jogador;
	_first->next = NULL;
	_first->prev = NULL;
	_size = 1;
}
开发者ID:phabh,项目名称:warbugs,代码行数:9,代码来源:CPlayerList.cpp

示例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);
  }
}
开发者ID:xbackupx,项目名称:showeqx,代码行数:9,代码来源:player.cpp

示例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);
}
开发者ID:FlorentUguet,项目名称:TulpaDiary,代码行数:9,代码来源:session.cpp

示例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);
 }
开发者ID:Avnerus,项目名称:ichigo,代码行数:9,代码来源:CocosTile.cpp

示例6: setID

CBuffList::CBuffList(CBuff *Buff)
{
	setID(-1);
	_first = new SBuffElemento();
	_first->valor = Buff;
	_first->next = NULL;
	_first->prev = NULL;
	_size = 1;
}
开发者ID:phabh,项目名称:warbugs,代码行数:9,代码来源:CBuffList.cpp

示例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();
}
开发者ID:Sheridan,项目名称:HAcc,代码行数:9,代码来源:wicon.cpp

示例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());

}
开发者ID:AReim1982,项目名称:scummvm,代码行数:9,代码来源:ai_defenseunit.cpp

示例9: setID

CCenarioList::CCenarioList(CCenario *Cenario)
{
	setID(-1);
	_first = new SCenarioElemento();
	_first->valor = Cenario;
	_first->next = NULL;
	_first->prev = NULL;
	_size = 1;
}
开发者ID:phabh,项目名称:warbugs,代码行数:9,代码来源:CCenarioList.cpp

示例10: setName

/******************************************************************************
 * Student()
 * 	This default constructor will create a Student object
 *****************************************************************************/
Student::Student()
{
	setName("");
	setID(0);
	setPhoneNumber(0);
	setAge(0);
	setClassStanding("");
	setGPA(0.0);
}
开发者ID:trucnguyen76,项目名称:CS1C,代码行数:13,代码来源:Student.cpp

示例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);
}
开发者ID:J05huaUCR,项目名称:sMHDL,代码行数:15,代码来源:Page.cpp

示例12: VoreenModuleQt

StereoscopyModuleQt::StereoscopyModuleQt(const std::string& modulePath)
    : VoreenModuleQt(modulePath)
{
    setID("Stereoscopy (Qt)");
    setGuiName("Stereoscopy (Qt)");

    addShaderPath(getModulePath("glsl/qt"));

    registerProcessorWidgetFactory(new StereoscopyProcessorWidgetFactory());
}
开发者ID:151706061,项目名称:Voreen,代码行数:10,代码来源:stereoscopymoduleqt.cpp

示例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();
}
开发者ID:Idhrendur,项目名称:paradoxGameConverters,代码行数:10,代码来源:State.cpp

示例14: setID

void
daeIDRef::resolveID()
{
	if (state == id_empty) {
		if (element != NULL)
			setID(element->getID());
		else
			state = id_failed_invalid_reference;
	}
}
开发者ID:Belxjander,项目名称:Asuna,代码行数:10,代码来源:daeIDRef.cpp

示例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");
    }
}
开发者ID:Institute-Web-Science-and-Technologies,项目名称:GazeTheWeb,代码行数:14,代码来源:Login.cpp


注:本文中的setID函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。