How do I tell Doxygen to document public sections after a private section in a (C++) class?
E.g.
class Brg {
public:
//! this function will be documented
void documentedFunction1()
private:
void irrelevantFunction()
public:
//! this function will _not_ be documented
void undocumentedFunction1()
};
Even w...
I have this code
public function getList()
{
$array = array();
$r = mysql_query( "SELECT * FROM hobby ORDER BY hobby_name ASC" );
while( $ro = mysql_fetch_object( $r ) )
{
array_push( $array , $ro );
}
if ( count( $array ) > 0 )
return $array;
else
return false;
}
And was wondering if there is an easier way of doing thi...
How do you load an XML using a constructor, I need to parse it into an array and I use a custom class Menu.
Here is my code:
class Menu {
// XML file's filename
private var xmlFile:String = "menu.xml";
private var menu:XML;
private var menuArray:Array;
private var mainmenu:Array;
function Menu() {
menu = new XML();
menu.igno...
Hello everyone,
I've created a class and created an array of objects under that class and filled it all up with data. Now i want to sort the entire array by a specific member of that class, how do I do this using the stable_sort() function?
Edit: Ok, i have this right now,
class sortContiner
{
public:
double position;
int ke...
Hi,
Can anyone tell me how to bind to specific child class at run time in the following code? I want mCar instance in the following example redirect to class Truck or Compact according to command line options?
class Car(object):
pass
class Truck(Car):
pass
class Compact(Car):
pass
and a instance of Car
mCar = Car()
...
I have a code similar to the following:
class News {
public:
virtual void get() = 0;
}
class Cnn : News {
void get () {...}
}
class Msnbc : News {
void get () {...}
}
class Bbc : News {
void get () {...}
}
main ()
{
News * news = new Cnn;
news->get ()
News * news = new Msnbc;
news->get ()
News * news = new Bbc;
news...
How to create a singleton class which inherit from MarkUpExtension class?
...
I know the class name, say "MyClass" and want to retrieve the Class object, ie. MyClass.class for future references. Is there a way to do that?
I've looked through the web but most of the things I found related to it were about the ClassLoader, which I presume are not suitable for my case. I do not want to initialize a class, but only g...
I would like to change my qestion to the following:
I have one HashMap object, and one int. I want to serialize the into the same file and get back. I know that I should do deserialization in the same order as I have done serialization.
Please provide me with a code which performes that action.
...
I'm looking for a standard way to communicate to another programmer that a class is a essentially just a data container.
Take this simple User class for example:
class User
{
public string userName { get; set; }
public string passPhrase { get; set; }
public Role role { get; set; }
}
"That component makes use of the User c...
I am planning to use PHP's autoload function to dynamicly load only class files that are needed. Now this could create a huge mess if every single function has a seperate file, So I am hoping and asking is there a way to have related classes remain in 1 class file and still be auto-loaded
function __autoload($class_name){
include('...
I'm currently creating a class to write and read arrays
Opening a file, closing a file all works well.
Also, I'm able to write an array towards a bin file.
But returning an array from the class is a bridge to far.
So far, ther're 2 issues where I'm not able to work around
1) in the public section
function ReadArrFromFile : ar...
This is pretty basic, but sort of a generic issue so I want to hear what people's thoughts are. I have a situation where I need to take an existing MSI file and update it with a few standard modifications and spit out a new MSI file (duplication of old file with changes).
I started writing this with a few public methods and a basic inpu...
Module M
Class C
end
end
What I need is something like:
M.was_defined_here?(M::C)
M.classes.include?(M::C)
Does this exists somehow?
I know I could parse M::C.name. But someebody could have the idea to change Module#name, to make it more astetic or something. I want a clean solution.
...
How to extract a name of the class from its object?
For example I have a @list object which I know is surely an instance of List class. But how do I extract that directly in code?
...
Hi Guys,
I've searched google now for nearly an hour to find a solution.
I'M pretty new to all this Iphone App stuff.
What I try to do is, I have an UITableView and when I click at one of the cells, a Detailview should show up with additional information to the first cell I've clicked on.
I've already figured out how to push the Deta...
I found this class to take a space delimited file and if there are multiple spaces, they will be treated as a single separator. How do I see the effects of this on a file?
class FH:
def __init__(self, fh):
self.fh = fh
def close(self):
self.fh.close()
def seek(self, arg):
self.fh.seek(arg)
de...
I have a string, containing an Class name. It is, for example, a string containing "Article". That string came up from the params[]. What should I do to work with this string as if it was a class name? For instance, I want to do:
Article.all
and so on.
Any idea?
...
I'm fairly new to classical inheritance as I mainly deal with ECMAScript and Python, though I do a fair bit of ( shudder ) PHP. I know it's heavily influenced by Java and other classical inheritance based languages.
Question:
I was taking a peek at a few classes in a framework and noticed that the 'new' keyword wasn't called ( directl...
Hello,
I am relatively new to JQuery and I would like to be able to show a menu on mouseover.
Here is the html
<td class ="comment_div"> <?php echo("$comment_data['comment']); ?> <br/>
<span class="comment_actions"> Approve | Delete | Spam | Edit</span>
</td>
Then the JQuery
$("comment_div").hover(
function()...