I'm developing a Python 2.6 package in which I would like to fetch a list of all classes in a certain directory (within the package) in order to then perform introspection on the class objects.
Specifically, if the directory containing the currently executing module has a sub-dir called 'foobar' and 'foobar' contains .py files specifyin...
Hi all! I have this problem....
in my viewcontroller.h I defined my class like this:
myClass* iR;
and after:
@property (nonatomic,retain) IBOutlet myClass* iR;
into myClass.h I added this:
@protocol myClassDelegate <NSObject>
-(void) didLogon:(bool)isLogged;
@end
and after:
@property (nonatomic, assign) id<myClassDelegate> dele...
I've seen it in the context of classes. I suspect it means that the class could use being broken down into logical subunits, but I can't find a good definition. Could you give some examples?
Thanks for the help.
Edit: I love the smart replies, but I'm obviously referring to "monolithic" within a software context. I know about monoliths...
Could someone tell me what exactly NSCFTimer is? I get it when I ask NSTimer for a timer.
My problem is that I'm trying to check if an object (supposedly an NSTimer, note the word "supposedly" which is why I'm checking) is an object of class NSTimer, it doesn't seem to work. Does this "NSCFTimer" in any way... hinder the process?
...
Ruby has this very interesting functionality in which when you create a class with 'Class.new' and assign it to a constant (uppercase), the language "magically" sets up the name of the class so it matches the constant.
# This is ruby code
MyRubyClass = Class.new(SuperClass)
puts MyRubyClass.name # "MyRubyClass"
It seems ruby "captures...
Hi all,
I am trying to figure out if it is correct to put in the fields of the particular class a reference to an object/collection that this class is related with.
Let's say I have a class University that aggregates many instances of Student class. When I put on my diagram both classes, I add the relationship of aggregation between th...
I have decided to start doing small coding projects on my own that focus on code quality instead of code quantity and have a question about the use of abstract classes.
Now I know the differences between abstract classes and interfaces with the biggest one (I think) being that interface allow you to only define methods that need to be i...
#include <iostream>
class B;
class A{
int a;
public:
friend void B::frndA();
};
class B{
int b;
public:
void frndA();
};
void B::frndA(){
A obj;
std::cout << "A.a = " << obj.a << std::endl;
}
int main() {
return 0;
}
When I am trying to compile this code some error occurred. Can anyone explain what are the problems in this ...
Having problems with a custom logging system I've made. I am declaring an ofstream within my main file so that it is accessible by static functions within my class. This works for my static function (ilra_log_enabled). However, this does not work on my overloaded function for the class. I receive a undefined reference to "logfile" error....
Is it possible to use std::next_permutation() to permutate the elements of a vector of a class i created?
How does the comparison parameter in next_permutation() work?
...
I have a two jobs in Quartz which will run perfetly well but I find I have to use code like:
jd = new JobDetail(sj.getJobName(), scheduler.DEFAULT_GROUP, PollJob.class);
ct = new CronTrigger(sj.getJobTrigger(), scheduler.DEFAULT_GROUP, "0 20 * * * ?");
scheduler.scheduleJob(jd, ct);
I have to hardcode PollJob.class to run the ...
Hello. I've been reading questions on Stack Overflow for a few weeks now... this'll be my first question.
So recently I've looked into making C access/manipulate a C++ class. I understand that ideally one shouldn't compile components in C and C++ separately under normal circumstances, but this isn't an option at the moment.
I looked in...
I wish to know what type of objects I've got in my environment.
I can show who is there like this:
ls()
But running something like
sapply(ls(), class)
Would (obviously) not tell us what type (class) of objects we are having (function, numeric, factor and so on...)
using
ls.str()
Will tell me what class my objects are, but I w...
Hi,
Warning: This is most likely a very silly question.
I have an object that resides in its own header file and is created in main, I would like to update the said object using a function that is declared in a separate file. If I'm not clear please let me know and I will try and explain my self better.
//main
#include"Object.h"
int m...
In VBScript, some built in objects use an unnamed property. Some Examples:
Set Dict = Server.CreateObject("Scripting.Dictionary")
Set RS = GetEmloyeesRecordSet()
Dict("Beer") = "Tasty" ' Same as Dict.Item("Beer") = "Tasty"
Dict("Crude Oil") = "Gross" ' Same as Dict.Item("Crude Oil") = "Gross"
Response.Write "The First Employee Is: "...
Im looking at namespaces and i dont really see a difference between these and classes.
im teaching myself c++ ive gotten several books online, so i know im not learning the
most effectively. anyways can someone tell me the difference between the two and what would be the best time to use a namepace over a class. also i dont see much ab...
Class Engine has "start(c:Component)" method. So do we need to draw an association between Engine and Component Class IF there is no "new Component()" inside Engine class. Thanks & regards
...
I have a function in my class that creates a thread and gives it arguments to call a function which is part of that class but since thread procs must be static, I can't access any of the class's members. How can this be done without using a bunch of static members in the cpp file to temporarily give the data to be manipulated, this seems...
I know that Attr gets the exact class of an element. Is there a way to get the element exact class as defined in CSS?
For example an element may have class "title" but be defined in CSS as a descendant selector, something like: .other-list .title {}
I need something to get that exact class value. You can see here the full example:
http:/...
I would like to pass the reference of a variable into a class, use it and then get it out later.
Something like this:
// Create the comment Screen
string newCommentText = "";
commentsScreen = new CommentEntry(this, ref newCommentText);
commentScreen.ShowDialog();
...
_dataLayer.SaveOffComment(newCommentText);
And then in the comme...