Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtXmlPatterns.QSourceLocation Class Reference

The QSourceLocation class identifies a location in a resource by URI, line, and column. More...

Inheritance diagram for QtXmlPatterns.QSourceLocation:
Collaboration diagram for QtXmlPatterns.QSourceLocation:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QSourceLocation ()
 
 
 QSourceLocation (QSourceLocation other)
 
 
 QSourceLocation (QUrl uri, int line=-1, int column=-1)
 
 
virtual void CreateProxy ()
 
new bool IsNull ()
 
 
new void Dispose ()
 

Static Public Member Functions

static bool operator!= (QSourceLocation arg1, QSourceLocation arg2)
 
 
static bool operator== (QSourceLocation arg1, QSourceLocation arg2)
 
 

Protected Member Functions

 QSourceLocation (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

new long Column [get, set]
 
 
new long Line [get, set]
 
 
new QUrl Uri [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QSourceLocation class identifies a location in a resource by URI, line, and column.

QSourceLocation is a simple value based class that has three properties, uri(), line(), and column(), that, taken together, identify a certain point in a resource, e.g., a file or an in-memory document.

line() and column() refer to character counts (not byte counts), and they both start from 1, as opposed to 0.

Constructor & Destructor Documentation

QtXmlPatterns.QSourceLocation.QSourceLocation ( System.Type  dummy)
protected
QtXmlPatterns.QSourceLocation.QSourceLocation ( )

Construct a QSourceLocation that doesn't identify anything at all.

For a default constructed QSourceLocation(), isNull() returns true.

QtXmlPatterns.QSourceLocation.QSourceLocation ( QSourceLocation  other)

Constructs a QSourceLocation that is a copy of other.

QtXmlPatterns.QSourceLocation.QSourceLocation ( QUrl  uri,
int  line = -1,
int  column = -1 
)

Construct a QSourceLocation that doesn't identify anything at all.

For a default constructed QSourceLocation(), isNull() returns true.

Member Function Documentation

virtual void QtXmlPatterns.QSourceLocation.CreateProxy ( )
virtual
new void QtXmlPatterns.QSourceLocation.Dispose ( )
override bool QtXmlPatterns.QSourceLocation.Equals ( object  o)
override int QtXmlPatterns.QSourceLocation.GetHashCode ( )
new bool QtXmlPatterns.QSourceLocation.IsNull ( )

Returns true if this QSourceLocation doesn't identify anything.

For a default constructed QSourceLocation, this function returns true. The same applies for any other QSourceLocation whose uri() is invalid.

static bool QtXmlPatterns.QSourceLocation.operator!= ( QSourceLocation  arg1,
QSourceLocation  arg2 
)
static

Returns the opposite of applying operator==() for this QXmlName and other.

static bool QtXmlPatterns.QSourceLocation.operator== ( QSourceLocation  arg1,
QSourceLocation  arg2 
)
static

Returns true if this QSourceLocation is identical to other.

Two QSourceLocation instances are equal if their uri(), line() and column() are equal.

QSourceLocation instances for which isNull() returns true are considered equal.

Member Data Documentation

SmokeInvocation QtXmlPatterns.QSourceLocation.interceptor
protected

Property Documentation

new long QtXmlPatterns.QSourceLocation.Column
getset

Returns the current column number. The column number refers to the count of characters, not bytes. The first column is column 1, not 0. The default value is -1, indicating the column number is unknown.

Sets the column number to newColumn. 0 is an invalid column number. The first column number is 1.

new long QtXmlPatterns.QSourceLocation.Line
getset

Returns the current line number. The first line number is 1, not 0. The default value is -1, indicating the line number is unknown.

Sets the line number to newLine. 0 is an invalid line number. The first line number is 1.

virtual System.IntPtr QtXmlPatterns.QSourceLocation.SmokeObject
getset
new QUrl QtXmlPatterns.QSourceLocation.Uri
getset

Returns the resource that this QSourceLocation refers to. For example, the resource could be a file in the local file system, if the URI scheme is file.

Sets the URI to newUri.