Exemplo n.º 1
0
double PerformanceCounter::NextDouble() {
  PDH_FMT_COUNTERVALUE value;
  auto status = NextValue(PDH_FMT_DOUBLE, &value);
  if (status != ERROR_SUCCESS)
    return NAN;

  return ToDouble(value);
}
Exemplo n.º 2
0
LONG PerformanceCounter::NextLong() {
  PDH_FMT_COUNTERVALUE value;
  auto status = NextValue(PDH_FMT_LONG, &value);
  if (status != ERROR_SUCCESS)
    return LONG_MIN;

  return ToLong(value);
}
Exemplo n.º 3
0
GxxValuePtr GxxValueMap::ValueForKey( CGxxKey& _key )
{
	for (TyMap::iterator it = FirstValue(); !IsLastValue(it); NextValue(it))
	{
		Pair *p = *it;
		if (p->key.compare(_key) == 0)
			return p->value;
	}
	return GxxValuePtr();
}
Exemplo n.º 4
0
void GxxValueMap::objectReleased()
{
	for (TyMap::iterator it = FirstValue(); !IsLastValue(it); NextValue(it))
	{
		Pair* pair = (*it);
		if (pair)
		{
			delete pair;
		}
	}
	__pMap->clear();
	delete __pMap;
}
Exemplo n.º 5
0
PageFaultsDataSource::PageFaultsDataSource()
	:
	fPreviousFaults(0),
	fPreviousTime(0)
{
	SystemInfo info;
	NextValue(info);

	fMinimum = 0;
	fMaximum = 1000000000LL;

	fColor = (rgb_color){200, 0, 150, 0};
}
Exemplo n.º 6
0
NetworkUsageDataSource::NetworkUsageDataSource(bool in)
	:
	fIn(in),
	fPreviousBytes(0),
	fPreviousTime(0)
{
	SystemInfo info;
	NextValue(info);

	fMinimum = 0;
	fMaximum = 1000000000LL;

	fColor = fIn ? (rgb_color){200, 150, 0} : (rgb_color){200, 220, 0};
}
Exemplo n.º 7
0
    HRESULT EnumerateNext(LPITEMIDLIST* ppidl)
    {
        if (!m_values)
        {
            HRESULT hr = NextKey(ppidl);
            if (hr != S_FALSE)
                return hr;

            // switch to values.
            m_values = TRUE;
            m_idx = 0;
        }

        return NextValue(ppidl);
    }
Exemplo n.º 8
0
void GxxValueMap::PutValue( CGxxKey& _key, GxxValuePtr& _value )
{
	for (TyMap::iterator it = FirstValue(); !IsLastValue(it); NextValue(it))
	{
		Pair *p = *it;
		if (p->key.compare(_key) == 0)
		{
			p->value = _value;
			return;
		}
	}
	Pair *p = new Pair;
	p->key = _key;
	p->value = _value;
	__pMap->push_back(p);
}
Exemplo n.º 9
0
void Mcoloring(int k) {
	int i;
	
	do
	{
		NextValue(k);	//przypisz wierzcholkowi kolor
		if(X[k] == 0) {
			return;		//brak kolorow
		}
		
		
		if(k == n-1) {			
			for(i=0; i < n; i++) {
				my_array[i][i] = X[i];
			}
			wyswietl_info();
		}
		else {
			Mcoloring(k+1);
		}
		
		} while(!0);
}
Exemplo n.º 10
0
void UKUIScrollSelectWidget::OnRightButtonClick( UKUISimpleClickWidget* cmButton, const FVector2D& v2ClickOffset )
{
	NextValue();
}
Exemplo n.º 11
0
void __fastcall TStreamingDeviceFrame::Timer1Timer(TObject * Sender)
{
  NextValue();
  DoChanged();
}