Home » Developing U++ » UppHub » More new functions
Re: More new functions [message #18840 is a reply to message #18804] |
Sun, 26 October 2008 10:19   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello captainc
Thats it. In some cases is more than grouping functions indeed.
For example in the "SysCPU" functions related with the CPU info, the program gets all the information in one time so, for String GetSpeed() it will get all information for just getting the speed. As this information does not change while the program is running (CPU make, number, speed, etc), the class would gather all the info one time so the function would be like this:
SysCPU::GetSpeed() {return speed;};
In "SysProcesses" functions it is a little different as the processes info is something changing so we could have at the same cost two focus:
- class SysProcesses //Current processes info.
bool Update(); // Gets processes info
bool GetFirst(int &processId, String &pName);
vool GetNext(int &processId, String &pName);
or
- bool GetProcessesList(Array<int>&pid, Array<String>&name);
Best regards
Koldo
(P.D. Class and function names are just a proposal that you could change)
Best regards
IƱaki
[Updated on: Sun, 26 October 2008 10:20] Report message to a moderator
|
|
|
 |
|
More new functions
By: koldo on Wed, 22 October 2008 23:25
|
 |
|
Re: More new functions
By: tojocky on Thu, 23 October 2008 07:35
|
 |
|
Re: More new functions
By: captainc on Fri, 24 October 2008 01:22
|
 |
|
Re: More new functions
By: koldo on Fri, 24 October 2008 08:11
|
 |
|
Re: More new functions
By: captainc on Fri, 24 October 2008 14:05
|
 |
|
Re: More new functions
By: mrjt on Fri, 24 October 2008 15:28
|
 |
|
Re: More new functions
By: koldo on Sun, 26 October 2008 01:19
|
 |
|
Re: More new functions
By: captainc on Sun, 26 October 2008 02:03
|
 |
|
Re: More new functions
By: koldo on Sun, 26 October 2008 10:19
|
 |
|
Re: More new functions
By: koldo on Thu, 30 October 2008 08:24
|
 |
|
Re: More new functions
By: mirek on Fri, 31 October 2008 13:34
|
 |
|
Re: More new functions
By: cocob on Fri, 31 October 2008 10:44
|
 |
|
Re: More new functions
By: koldo on Fri, 31 October 2008 13:25
|
 |
|
Re: More new functions
By: koldo on Fri, 31 October 2008 15:51
|
 |
|
Re: More new functions
|
 |
|
Re: More new functions
By: koldo on Thu, 13 November 2008 09:15
|
 |
|
Re: More new functions
By: koldo on Wed, 19 November 2008 08:09
|
 |
|
Re: More new functions
By: koldo on Wed, 19 November 2008 17:44
|
 |
|
Re: More new functions
By: tojocky on Thu, 20 November 2008 10:35
|
 |
|
Re: More new functions
By: koldo on Thu, 20 November 2008 14:18
|
 |
|
Re: More new functions
By: tojocky on Fri, 21 November 2008 07:40
|
 |
|
Re: More new functions
By: koldo on Fri, 21 November 2008 08:17
|
 |
|
Re: More new functions
By: tojocky on Fri, 21 November 2008 13:25
|
 |
|
Re: More new functions
By: koldo on Fri, 21 November 2008 16:13
|
 |
|
Re: More new functions
By: koldo on Fri, 21 November 2008 22:24
|
 |
|
Re: More new functions
By: tojocky on Sat, 22 November 2008 08:32
|
 |
|
Re: More new functions
By: koldo on Sat, 22 November 2008 23:24
|
 |
|
Re: More new functions
By: tojocky on Sun, 23 November 2008 07:58
|
 |
|
Re: More new functions
By: mirek on Sun, 23 November 2008 10:45
|
 |
|
Re: More new functions
By: koldo on Sun, 23 November 2008 16:20
|
 |
|
Re: More new functions
By: mirek on Sun, 23 November 2008 18:23
|
 |
|
Re: More new functions
By: koldo on Sun, 23 November 2008 20:08
|
 |
|
Re: More new functions
By: koldo on Mon, 24 November 2008 00:28
|
 |
|
Re: More new functions
By: koldo on Wed, 03 December 2008 09:30
|
 |
|
Re: More new functions
By: mirek on Mon, 15 December 2008 10:07
|
 |
|
Re: More new functions
By: koldo on Wed, 17 December 2008 08:33
|
 |
|
Re: More new functions
By: koldo on Sat, 17 January 2009 22:32
|
 |
|
Re: More new functions
|
 |
|
Re: More new functions
By: koldo on Sat, 25 December 2010 10:05
|
Goto Forum:
Current Time: Thu May 08 06:14:22 CEST 2025
Total time taken to generate the page: 0.02248 seconds
|