-
首页
-
C4D R23.110 C++ SDK
SDKBrowserURL Class Reference
Library
»
Browser
#include <lib_browser.h>
详细描述
Represents a browser URL for locations in the file system (and virtual places somewhere in the browser).
For URL strings the following applies:
-
Set a file name as
"file://localhost/..."
.
-
Set a preset location as
"preset:// * /..."
where * is the catalog name.
-
Set a catalog location as
"catalog:// * /..."
where * is the catalog name.
-
另请参阅
-
SDKBrowserBase
for base paths constants.
构造函数 & 析构函数文档编制
◆
SDKBrowserURL()
[1/4]
Default constructor. Constructs a
SDKBrowserURL
.
◆
SDKBrowserURL()
[2/4]
Copy constructor. Constructs a
SDKBrowserURL
with the content of the source URL in
src
.
-
参数
-
◆
SDKBrowserURL()
[3/4]
Constructs a
SDKBrowserURL
with a file name.
-
参数
-
◆
SDKBrowserURL()
[4/4]
Constructs a
SDKBrowserURL
with a string.
-
参数
-
[in]
|
src
|
A URL string, e.g.
"file://localhost/image.jpg"
.
|
◆
~SDKBrowserURL()
Destructor.
成员函数文档编制
◆
GetPrivate()
void* GetPrivate
|
(
|
void
|
|
)
|
const
|
Private
.
◆
operator=()
Assignment operator.
-
参数
-
[in]
|
cs
|
The right-hand URL to assign.
|
-
返回
-
The assigned left-hand URL.
◆
operator+()
Concatenates a string to the path of the URL and return the result.
-
参数
-
[in]
|
str2
|
The string to add.
|
-
返回
-
The result of the addition.
◆
operator+=()
Concatenates a string to the path of the URL and keep the result in the URL.
-
参数
-
[in]
|
str
|
The string to add.
|
-
返回
-
The result of the addition.
◆
operator==()
Equality operator. Compares the URL with another URL.
-
参数
-
[in]
|
url
|
The right-hand URL to compare with.
|
-
返回
-
true
if the URLs are equal, otherwise
false
.
◆
operator!=()
Inequality operator. Compares the URL with another URL.
-
参数
-
[in]
|
url
|
The right-hand URL to compare with.
|
-
返回
-
true
if the URLs are not equal, otherwise
false
.
◆
IsPopulated()
Bool
IsPopulated
|
(
|
|
)
|
const
|
Checks if the URL is empty.
-
返回
-
true
if the URL has been set, otherwise
false
.
◆
GetDirectory()
Retrieves the URL of the parent directory.
-
返回
-
The directory for the URL.
◆
GetFileString()
String
GetFileString
|
(
|
void
|
|
)
|
const
|
Retrieves the local file name only (without the path).
-
返回
-
The file name string.
◆
IsFilename()
Bool
IsFilename
|
(
|
void
|
|
)
|
const
|
Checks if the URL can be represented as a
Filename
.
-
返回
-
true
if the URL can be represented as a
Filename
, otherwise
false
.
◆
CheckSuffix()
Checks if the suffix of the URL is the same as the string
s
.
-
参数
-
[in]
|
s
|
A suffix string without the dot, e.g.
"c4d"
.
|
-
返回
-
true
if the suffix matches, otherwise
false
.
◆
GetSuffix()
String
GetSuffix
|
(
|
void
|
|
)
|
const
|
Retrieves the suffix of the URL (always in lower case).
-
返回
-
The suffix string without the dot, e.g.
"c4d"
.
◆
SetFilename()
Assigns a file name to the URL.
-
参数
-
[in]
|
f
|
The file name to assign.
|
◆
SetString()
void SetString
|
(
|
const
String
&
|
s
|
)
|
|
Assigns a string to the URL.
-
Set a file name as
"file://localhost/..."
.
-
Set a preset location as
"preset:// * /..."
where * is the catalog name.
-
Set a catalog location as
"catalog:// * /..."
where * is the catalog name.
-
参数
-
[in]
|
s
|
The string to assign.
|
◆
GetFilename()
[1/2]
Retrieves a
Filename
from the URL.
-
参数
-
[out]
|
f
|
Assigned the file name if method is successful.
|
-
返回
-
true
if the URL contains a filename (or a
"file://"
string) and assign that name to
f
.
false
if the URL string is a catalog location or something else in the browser tree.
◆
GetFilename()
[2/2]
Retrieves a
Filename
from the URL.
-
返回
-
The URL as a file name if the URL contains a filename (or a
"file://"
string).
An empty
Filename
if the URL does not contain a file name.
◆
GetString()
[1/2]
void GetString
|
(
|
String
&
|
s
|
)
|
const
|
Retrieves the URL string content.
-
参数
-
[out]
|
s
|
Assigned the URL string.
|
◆
GetString()
[2/2]
String
GetString
|
(
|
void
|
|
)
|
const
|
Retrieves the URL string content.
-
返回
-
The URL string.