#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:
Private | |
void * | GetPrivate (void) const |
Constructor/Destructor | |
SDKBrowserURL () | |
SDKBrowserURL (const SDKBrowserURL &src) | |
SDKBrowserURL (const Filename &src) | |
SDKBrowserURL (const maxon::String &src) | |
~SDKBrowserURL (void) | |
Operator | |
const SDKBrowserURL & | operator= (const SDKBrowserURL &cs) |
const SDKBrowserURL | operator+ (const String &str2) const |
const SDKBrowserURL & | operator+= (const String &str) |
Bool | operator== (const SDKBrowserURL &url) const |
Bool | operator!= (const SDKBrowserURL &url) const |
Information | |
Bool | IsPopulated () const |
SDKBrowserURL | GetDirectory (void) const |
String | GetFileString (void) const |
Bool | IsFilename (void) const |
Bool | CheckSuffix (const String &s) const |
String | GetSuffix (void) const |
Set/Get Filename/String | |
void | SetFilename (const Filename &f) |
void | SetString (const String &s) |
Bool | GetFilename (Filename &f) const |
Filename | GetFilename (void) const |
void | GetString (String &s) const |
String | GetString (void) const |
SDKBrowserURL | ( | ) |
Default constructor. Constructs a SDKBrowserURL.
SDKBrowserURL | ( | const SDKBrowserURL & | src | ) |
Copy constructor. Constructs a SDKBrowserURL with the content of the source URL in src.
[in] | src | A source URL. |
SDKBrowserURL | ( | const Filename & | src | ) |
Constructs a SDKBrowserURL with a file name.
[in] | src | A file name. |
SDKBrowserURL | ( | const maxon::String & | src | ) |
Constructs a SDKBrowserURL with a string.
[in] | src | A URL string, e.g. "file://localhost/image.jpg". |
~SDKBrowserURL | ( | void | ) |
Destructor.
void* GetPrivate | ( | void | ) | const |
Private.
const SDKBrowserURL& operator= | ( | const SDKBrowserURL & | cs | ) |
Assignment operator.
[in] | cs | The right-hand URL to assign. |
const SDKBrowserURL operator+ | ( | const String & | str2 | ) | const |
Concatenates a string to the path of the URL and return the result.
[in] | str2 | The string to add. |
const SDKBrowserURL& operator+= | ( | const String & | str | ) |
Concatenates a string to the path of the URL and keep the result in the URL.
[in] | str | The string to add. |
Bool operator== | ( | const SDKBrowserURL & | url | ) | const |
Equality operator. Compares the URL with another URL.
[in] | url | The right-hand URL to compare with. |
Bool operator!= | ( | const SDKBrowserURL & | url | ) | const |
Inequality operator. Compares the URL with another URL.
[in] | url | The right-hand URL to compare with. |
Bool IsPopulated | ( | ) | const |
Checks if the URL is empty.
SDKBrowserURL GetDirectory | ( | void | ) | const |
Retrieves the URL of the parent directory.
String GetFileString | ( | void | ) | const |
Retrieves the local file name only (without the path).
Bool IsFilename | ( | void | ) | const |
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". |
String GetSuffix | ( | void | ) | const |
Retrieves the suffix of the URL (always in lower case).
void SetFilename | ( | const Filename & | f | ) |
Assigns a file name to the URL.
[in] | f | The file name to assign. |
void SetString | ( | const String & | s | ) |
Assigns a string to the URL.
[in] | s | The string to assign. |
Retrieves a Filename from the URL.
[out] | f | Assigned the file name if method is successful. |
Filename GetFilename | ( | void | ) | const |
void GetString | ( | String & | s | ) | const |
Retrieves the URL string content.
[out] | s | Assigned the URL string. |
String GetString | ( | void | ) | const |
Retrieves the URL string content.