當前位置: 首頁>>代碼示例>>C++>>正文


C++ Configuration函數代碼示例

本文整理匯總了C++中Configuration函數的典型用法代碼示例。如果您正苦於以下問題:C++ Configuration函數的具體用法?C++ Configuration怎麽用?C++ Configuration使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了Configuration函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: fileInfo

void DirectoryMangaVolume::readImages(const QString & path) {
    QFileInfo fileInfo(path);
    if (fileInfo.isDir()) {
        QDir dir(path);
        QStringList fileList = dir.entryList(
                    QDir::AllEntries | QDir::NoDotAndDotDot
                    | QDir::NoSymLinks | QDir::Hidden, QDir::Name
                    | QDir::IgnoreCase);
        for (int i = 0; i < fileList.count(); ++i) {
            readImages(path + tr("/")+fileList.at(i));
        }
    } else {
        QString extension = path.split(".").last();
        auto formats = Configuration().getSupportedImageFormats();
        if (Configuration().isSupportedImageFormat(fileInfo.suffix())) {
            m_page_names.push_back(fileInfo.canonicalFilePath());
            /*
            MangaPage img(path);
            if (!img.isNull()) {
                m_pages.push_back(img);
            }*/
        } else {
            qDebug() << "Skipping file with unknown extension " << path;
        }
    }
}
開發者ID:mtao,項目名稱:MultiscreenManga,代碼行數:26,代碼來源:mangavolume.cpp

示例2: Configuration

StraightPathSegment::StraightPathSegment(Segment& segment, bool dir) {
    double angle = segment.getOrientation();
    if (dir) {
        start = Configuration(segment.getA(), angle);
        end = Configuration(segment.getB(), angle);
    } else {
        start = Configuration(segment.getA(), wrapAngle(angle + M_PI));
        end = Configuration(segment.getB(), wrapAngle(angle + M_PI));
    }
    this->dir = dir;
    length = Point::distance(start.position, end.position);
}
開發者ID:akosnagy2,項目名稱:Diploma,代碼行數:12,代碼來源:StraightPathSegment.cpp

示例3: if

 //__________________________________________________
 Qt::Alignment Configuration::titleAlignment( QString value, bool translated )
 {
     if (value == titleAlignmentName( Qt::AlignLeft, translated ) ) return Qt::AlignLeft;
     else if (value == titleAlignmentName( Qt::AlignHCenter, translated, false ) || value == titleAlignmentName( Qt::AlignHCenter, translated, true ) ) return Qt::AlignHCenter;
     else if (value == titleAlignmentName( Qt::AlignRight, translated ) ) return Qt::AlignRight;
     else return Configuration().titleAlignment();
 }
開發者ID:netrunner-debian-kde-extras,項目名稱:oxygen-transparent,代碼行數:8,代碼來源:oxygenconfiguration.cpp

示例4: mRing

ReducerNoDedup<Q>::ReducerNoDedup(const PolyRing& ring):
  mRing(ring),
  mLeadTermKnown(false),
  mQueue(Configuration(ring))
{
  mLeadTerm.mono = mRing.monoid().alloc().release();
}
開發者ID:Macaulay2,項目名稱:mathicgb,代碼行數:7,代碼來源:ReducerNoDedup.cpp

示例5: setCapacitance

status_ setCapacitance()
{
    char query1[20];
    snprintf(query1,sizeof(query1),"CONF:CAP\n");
    return Configuration(query1);

}
開發者ID:Lilito,項目名稱:Pruebas-Driver-Multimetro,代碼行數:7,代碼來源:Configure.c

示例6: QTimer

User::User(QObject *parent)
{
    timer = new QTimer(this);
    actions = new QQueue<QStringList *>();

    Configuration();
}
開發者ID:Temp5433,項目名稱:Temp5433,代碼行數:7,代碼來源:user.cpp

示例7: file

Configuration ConfigurationFile::Read(const Provider& provider)
{
	std::ifstream file(m_filename.c_str());
	if (!file.good())
		return Configuration();

	std::map<int, std::string> channelMap;

	std::string line;
	while (std::getline(file, line))
	{
		std::vector<std::string> split;
		boost::split(split, line, boost::is_any_of("="));

		if (is_number(split[0]))
			channelMap[boost::lexical_cast<int>(split[0])] = split[1];
	}

	::Channels channels;
	::Channels allChannels = provider.GetChannels();
	
	for (::Channels::iterator it = allChannels.begin(); it != allChannels.end(); ++it)
	{
		if (channelMap.find(it->Id()) != channelMap.end())
		{
			it->Name(channelMap[it->Id()]);
			channels.push_back(*it);
		}
	}

	m_configuration.Channels(channels);
	m_configuration.Valid(true);

	return m_configuration;
}
開發者ID:jdierkse,項目名稱:fast_tv_grab_nl,代碼行數:35,代碼來源:config.cpp

示例8: setFrequency

status_ setFrequency()
{
    char query1[20];
    snprintf(query1,sizeof(query1),"CONF:FREQ\n");
    return Configuration(query1);

}
開發者ID:Lilito,項目名稱:Pruebas-Driver-Multimetro,代碼行數:7,代碼來源:Configure.c

示例9: setPeriod

status_ setPeriod()
{
    char query1[20];
    snprintf(query1,sizeof(query1),"CONF:PER\n");
    return Configuration(query1);

}
開發者ID:Lilito,項目名稱:Pruebas-Driver-Multimetro,代碼行數:7,代碼來源:Configure.c

示例10: setFresistance_range

status_ setFresistance_range(float range_)
{
   char query1[50];
   snprintf(query1,sizeof(query1),"CONF:FRES %f\n",range_);
   return Configuration(query1);
   
}
開發者ID:Lilito,項目名稱:Pruebas-Driver-Multimetro,代碼行數:7,代碼來源:Configure.c

示例11: Configuration

/**
 * \brief	This will save input settings according to how the user did map the buttons,
 * 			axes or keys to the commands.
 */
void CInput::saveControlconfig()
{
	CConfiguration Configuration(CONFIGFILENAME);
	Configuration.Parse();

	std::string section;
	for(size_t i=0 ; i<NUM_INPUTS ; i++)
	{
		section = "input" + itoa(i);

		Configuration.WriteString(section, "Left", getEventName(IC_LEFT, i));
		Configuration.WriteString(section, "Up", getEventName(IC_UP, i));
		Configuration.WriteString(section, "Right", getEventName(IC_RIGHT, i));
		Configuration.WriteString(section, "Down", getEventName(IC_DOWN, i));
		Configuration.WriteString(section, "Upper-Left", getEventName(IC_UPPERLEFT, i));
		Configuration.WriteString(section, "Upper-Right", getEventName(IC_UPPERRIGHT, i));
		Configuration.WriteString(section, "Lower-Left", getEventName(IC_LOWERLEFT, i));
		Configuration.WriteString(section, "Lower-Right", getEventName(IC_LOWERRIGHT, i));
		Configuration.WriteString(section, "Jump", getEventName(IC_JUMP, i));
		Configuration.WriteString(section, "Pogo", getEventName(IC_POGO, i));
		Configuration.WriteString(section, "Fire", getEventName(IC_FIRE, i));
		Configuration.WriteString(section, "Status", getEventName(IC_STATUS, i));
		Configuration.WriteString(section, "Help", getEventName(IC_HELP, i));
		Configuration.WriteString(section, "Quit", getEventName(IC_QUIT, i));
		Configuration.SetKeyword(section, "TwoButtonFiring", TwoButtonFiring[i]);
	}
	Configuration.saveCfgFile();
}
開發者ID:Shayster,項目名稱:Commander-Genius,代碼行數:32,代碼來源:CInput.cpp

示例12: qDebug

MathematicsManager::MathematicsManager(QObject *parent)
{
    qDebug()<<"Create"<<metaObject()->className();
    queAsk = new QQueue<EmptyModel *>();
    queAnswer = new QQueue<EmptyModel *>();
    timer = new QTimer(this);
    Configuration();
}
開發者ID:Temp5433,項目名稱:Temp5433,代碼行數:8,代碼來源:mathematicsmanager.cpp

示例13: Configuration

//---------------------------------------------------------------------------
void File_Cmml::Data_Parse()
{
    //Parsing
    if (Status[IsAccepted])
        Configuration();
    else
        Identification();
}
開發者ID:thespooler,項目名稱:mediainfo-code,代碼行數:9,代碼來源:File_Cmml.cpp

示例14: ReducerPack

 ReducerPack(const PolyRing& ring):
   mRing(ring),
   mLeadTermKnown(false),
   mQueue(Configuration(ring)),
   mPool(sizeof(MultipleWithPos))
 {
   mLeadTerm.mono = mRing.monoid().alloc().release();
 }
開發者ID:Macaulay2,項目名稱:mathicgb,代碼行數:8,代碼來源:ReducerPack.cpp

示例15: mRing

MATHICGB_NAMESPACE_BEGIN

TournamentReducer::TournamentReducer(const PolyRing& ring):
  mRing(ring),
  mLeadTerm(0, mRing.allocMonomial()),
  mLeadTermKnown(false),
  mQueue(Configuration(ring)),
  mPool(sizeof(MultipleWithPos))
{
}
開發者ID:ederc,項目名稱:mathicgb,代碼行數:10,代碼來源:TournamentReducer.cpp


注:本文中的Configuration函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。