Questions tagged [class-reference]
25 questions
0
votes
2 answers
How to access to some project which is referred to from another project?
Project 1
-- Class X
Project 2
References Project 1
Project 3
* References Project 2
* Needs ClassX ?
I want to access ClassX from Project 3 - is there anyway to do that?

Thang Dinh
- 13
- 2
0
votes
2 answers
Symfony2 use of class
I have a file Orders.php and I want to use class "Test" functions in it. The problem is that the class file is in a project root folder, but I can't use it.
orders.php:

The50
- 1,096
- 2
- 23
- 47
0
votes
1 answer
How to get the class reference by a given string
I'm working on some kind of scheduler, who gets the name of a class out of the DB and then executes a method of that class.
The problem is, that I can't get the reference to the class.
What I basically want:
using MyNameSpace;
...
Type…

Dave
- 263
- 3
- 12
0
votes
1 answer
It is possible to send class reference as an argument to a function?
I stumbled across this piece of code when I researched for a good example for Observer Design pattern. In main, it gets error, taking address of temporary[-fpermissive] which I dont dont understand what it is frankly. Sending a class refference to…

BabaMara
- 29
- 2
- 7
0
votes
1 answer
Can I reference a class by String name?
I have a list of utilities that derive from:
abstract public class BaseUtil implements Callable{
public String name;
public StreamWrapper data;
public void setData(StreamWrapper stream){ this.data = stream; }
private static Class me…

MrDuk
- 16,578
- 18
- 74
- 133
0
votes
1 answer
[C++]Intellisense Reports Class Reference of Type
I have been trying to fix this problem for a few weeks now but nothing I have done has fixed it. This seems to be a problem with the Intellisense information not being updated in a .cpp file.
The problem is that class reference passes for specific…

Geowil
- 624
- 1
- 12
- 36
0
votes
2 answers
Are there metaclasses or class reference in D?
Are there any system of classe reference in D? To be more accurate I look for the equivalent of the Delphi
TMyClassRef = class of TMyClass;
This would be used for a factory (just like in the Object but without using the class name):
// ideally
void…

babu67
- 69
- 7
0
votes
2 answers
Determine Class Associations using Reflection
I am working on a solution that extracts all the class associations between each other. If we click a class in the object browser we can see the option Find All References. I want something similar that finds the associations a class has to other…

Afnan Bashir
- 7,319
- 20
- 76
- 138
-1
votes
1 answer
parse ruby file for class references
If I have a file model.rb:
require 'foo.rb'
require 'foo/bar.rb'
class Model
def self.foo
Foo.new
end
def bar
Foo::Bar.to_s
end
Foo::Bar::Baz.class_does_not_exist
end
How could I parse this file to return valid class…

stevenspiel
- 5,775
- 13
- 60
- 89
-2
votes
3 answers
Referencing a class programatically in PHP
I receive an object during some process and this object needs to figure out its coloring scheme.
For example, I have a coloring scheme that is stored like this:
class FirstScheme {
public static $COLORS = array('1' => 'green', '2' => 'red',…

dragoon
- 5,601
- 5
- 37
- 55