Questions tagged [qualified-name]

A name that includes the full path of the containing class, eg java.util.ArrayList

Analogous the an absolute path in a filesystem, the name includes the full path of the containing/enclosing class.

62 questions
1
vote
1 answer

What is the "form" attribute in XML schemas actually good for?

I have been brushing up on my XML schema skills the past few days and during a whole day I was busy trying to understand the intricacies of namespaces with respect to schemas. What struck me most was the seemingly uselessness of the…
pancake
  • 1,923
  • 2
  • 21
  • 42
0
votes
2 answers

In c++ Why and how classname::member syntax can be used for an instance member?

class Human { public: Human(string name); string getName() { return Human::name; } void setName(string name) { Human::name = name ; } private: string name; }; Human::name in getName and setName…
0
votes
1 answer

std::fstream is a class but references std::fstream::trunc using namespace syntax?

I was getting some help on creating files with fstream, but came across this method where you pass std::fstream::trunc to the constructor. I was curious as to how fstream is a class, but referencing the trunc member is like fstream is a namespace…
Rammy Aly
  • 29
  • 2
0
votes
1 answer

Declaring in one namespace and Defining in other namespace in c++

Just like we can declare in namespace and define in Global namespace, like this: namespace B{ void func(); } void B::func(){ std::cout<<"abcdef\n"; } int main(){ B::func(); } And we have to call it using B:: because its declared in B…
Eurus_
  • 41
  • 4
0
votes
1 answer

How to fully qualified names from VBA project to object?

If I have many macro workbooks open at the same time... Some names such as UserForm, Module, etc. overlap. How to fully qualified names from VBA project? for…
excel222
  • 9
  • 3
0
votes
1 answer

Using decltype in a nested-name-specifier

Consider the following demonstrative program. #include namespace N { struct A { static int n; }; A A; } int N::A::n = 10; int main() { std::cout << N::A::n << '\n'; std::cout << N::decltype( N::A…
Vlad from Moscow
  • 301,070
  • 26
  • 186
  • 335
0
votes
1 answer

Android: How can I guess the correct qualified app name to start some program?

I think the best way to ask this question is via example, so I will use a specific app. The WebKey app for Android has a option to start on boot that I prefer to keep disabled. But I would like to manually start this program via remote SSH…
Sopalajo de Arrierez
  • 3,543
  • 4
  • 34
  • 52
0
votes
1 answer

Is it safe to call a virtual method in the constructor when using a scope resolution operator?

I have a class hierarchy where every class has a method compute that will trigger some (re-) computation. This method is a virtual method (and it's pure virtual in the base class). In some cases I would like to call this method from the constructor…
0
votes
1 answer

How to resolve field in qualifed name expression

Here is my 'Types' Xtext grammar: grammar sample.types.Types with org.eclipse.xtext.common.Terminals generate types "http://www.types.sample/Types" Model: structs += Struct* data += Data* assignments +=…
Aubin
  • 14,617
  • 9
  • 61
  • 84
0
votes
1 answer

TypeError message uses name instead of qualname

I find the following behavior: >>> def f(): ... def g(a,b): ... return a+b ... return g >>> f().__name__ ... 'g' >>> f().__qualname__ ... 'f..g' >>> f()(2) Traceback (most recent call last): File "", line 1, in…
Thomasillo
  • 43
  • 4
0
votes
1 answer

Import unqualified name in Node.js

In Python I can import the names in my module as qualified import myModule or unqualified from myModule import * In Node.js, I can import as qualified var myModule = require('myModule') Is there a way to import names unqualified?
twinlakes
  • 9,438
  • 6
  • 31
  • 42
0
votes
1 answer

Qualified naming

I'm currently doing some maintenance on an application and I've come across a big issue regarding the qualified name in tsql. I wondering if someone could clear my confusion up for me. From my understanding you want to use USE [DatabaseName] to…
MisterIsaak
  • 3,882
  • 6
  • 32
  • 55
0
votes
1 answer

How to Qualify Entities in EF 6

My problem is with my website using WebPages, Entity Framework 6.1.3, c#, and a SQL CE database. One of my "database-first "generated entity types is named exactly the same as the system.TimeZone class, but intellisense and the IDE are not…
RRRSR
  • 293
  • 1
  • 3
  • 12
0
votes
1 answer

Qualified-ids, are they lvalues or prvalues?

I was trying to validate this statement (my emphasis) in paragraph §5.1.1/8 (page 87) of the C++11 Standard A nested-name-specifier that denotes a class, optionally followed by the keyword template (14.2), and then followed by the name of a…
Wake up Brazil
  • 3,421
  • 12
  • 19
0
votes
2 answers

Get qualified name of an XML element and it's child nodes with C#

Edited: I'm trying to accomplish three things here: get XmlNode Query, get the XmlNode QueryId and get the value of a:schemaLocation but the after parsing they end up as null. If I remove the qualified name from the XML, the C# bit works fine. How…
tomtomssi
  • 1,017
  • 5
  • 20
  • 33