#include <UrlBase.h>
Public Member Functions | |
| ViewOption () | |
| Create instance with default combination of view options. | |
| ViewOption & | operator= (const ViewOption &o) |
Assign specified option combination o to the current object. | |
| bool | has (const ViewOption &o) const |
Check if specified option o is set in the current object. | |
Private Member Functions | |
| ViewOption (int option) | |
Private Attributes | |
| int | opt |
Friends | |
| ViewOption | operator+ (const ViewOption &l, const ViewOption &r) |
Adds l and r to a new option combination. | |
| ViewOption | operator- (const ViewOption &l, const ViewOption &r) |
Substract r from l to a new option combination. | |
A instance of this class represents a bit-wise combination of view option constants.
It provides ViewOption::operator+() and ViewOption::operator-() to modify a view option combination and a ViewOption::has() method, to check if a specified option is enabled or not.
Definition at line 39 of file UrlBase.h.
| zypp::url::ViewOption::ViewOption | ( | ) |
| zypp::url::ViewOption::ViewOption | ( | int | option | ) | [private] |
Definition at line 93 of file UrlBase.cc.
| ViewOption& zypp::url::ViewOption::operator= | ( | const ViewOption & | o | ) | [inline] |
| bool zypp::url::ViewOption::has | ( | const ViewOption & | o | ) | const [inline] |
Check if specified option o is set in the current object.
| o | A view option constant. |
o is set/enabled in the instance. Definition at line 228 of file UrlBase.h.
References opt.
Referenced by zypp::url::UrlBase::asString().
| ViewOption operator+ | ( | const ViewOption & | l, | |
| const ViewOption & | r | |||
| ) | [friend] |
| ViewOption operator- | ( | const ViewOption & | l, | |
| const ViewOption & | r | |||
| ) | [friend] |
const ViewOption zypp::url::ViewOption::WITH_SCHEME [static] |
Option to include scheme name in the URL string.
Disabling this option causes, that the URL string contains the path, query and fragment components only, for example just "/foo/bar.txt".
This option is enabled by default.
Definition at line 51 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_USERNAME [static] |
Option to include username in the URL string.
This option depends on a enabled WITH_SCHEME and WITH_HOST options and is enabled by default.
Definition at line 58 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PASSWORD [static] |
Option to include password in the URL string.
This option depends on a enabled WITH_SCHEME, WITH_HOST and WITH_USERNAME options and is disabled by default, causing to hide the password in the URL authority.
Definition at line 67 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_HOST [static] |
Option to include hostname in the URL string.
This option depends on a enabled WITH_SCHEME option and is enabled by default.
Definition at line 74 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PORT [static] |
Option to include port number in the URL string.
This option depends on a enabled WITH_SCHEME and WITH_HOST options and is enabled by default.
Definition at line 81 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PATH_NAME [static] |
Option to include path name in the URL string.
This option is enabled by default.
Definition at line 87 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PATH_PARAMS [static] |
Option to include path parameters in the URL string.
This option depends on a enabled WITH_PATH_NAME option and is disabled by default, causing to hide the path parameters.
Definition at line 95 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_QUERY_STR [static] |
Option to include query string in the URL string.
This option is enabled by default.
Definition at line 101 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_FRAGMENT [static] |
Option to include fragment string in the URL string.
This option is enabled by default.
Definition at line 107 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_AUTHORITY [static] |
Explicitely include the URL authority separator "//".
It causes, that the URL string includes an empty URL authority, for example: "file:///foo.txt" instead of just "file:/foo.txt".
This option depends on a enabled WITH_SCHEME view option and is enabled by default.
Definition at line 121 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_PATH_NAME [static] |
Explicitely include the "/" path character.
It causes, that a "/" is added to the Url if the path name is empty, for example:
"http://localhost/" instead of just "http://localhost".
This option depends on a enabled WITH_PATH_NAME view option and is enabled by default.
Definition at line 133 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_PATH_PARAMS [static] |
Explicitely include the path parameters separator ";".
It causes, that the URL allways contains the ";" path parameters separator.
This option depends on a enabled EMPTY_PATH_NAME view option and is disabled by default.
Definition at line 143 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_QUERY_STR [static] |
Explicitely include the query string separator "?".
It causes, that if the query string is requested using the WITH_QUERY_STR option, the URL allways contains the "?" query string separator, even if the query string is empty. This option depends on a enabled WITH_QUERY_STR view option and is disabled by default.
Definition at line 154 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_FRAGMENT [static] |
Explicitely include the fragment string separator "#".
It causes, that if the fragment string is requested using the WITH_FRAGMENT option, the URL allways contains the "#" fragment string separator, even if the fragment string is empty. This option depends on a enabled WITH_FRAGMENT view option and is disabled by default.
Definition at line 165 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::DEFAULTS [static] |
int zypp::url::ViewOption::opt [private] |
const ViewOption zypp::url::ViewOption::WITH_SCHEME [static] |
Option to include scheme name in the URL string.
Disabling this option causes, that the URL string contains the path, query and fragment components only, for example just "/foo/bar.txt".
This option is enabled by default.
Definition at line 51 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_USERNAME [static] |
Option to include username in the URL string.
This option depends on a enabled WITH_SCHEME and WITH_HOST options and is enabled by default.
Definition at line 58 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PASSWORD [static] |
Option to include password in the URL string.
This option depends on a enabled WITH_SCHEME, WITH_HOST and WITH_USERNAME options and is disabled by default, causing to hide the password in the URL authority.
Definition at line 67 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_HOST [static] |
Option to include hostname in the URL string.
This option depends on a enabled WITH_SCHEME option and is enabled by default.
Definition at line 74 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PORT [static] |
Option to include port number in the URL string.
This option depends on a enabled WITH_SCHEME and WITH_HOST options and is enabled by default.
Definition at line 81 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PATH_NAME [static] |
Option to include path name in the URL string.
This option is enabled by default.
Definition at line 87 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_PATH_PARAMS [static] |
Option to include path parameters in the URL string.
This option depends on a enabled WITH_PATH_NAME option and is disabled by default, causing to hide the path parameters.
Definition at line 95 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_QUERY_STR [static] |
Option to include query string in the URL string.
This option is enabled by default.
Definition at line 101 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::WITH_FRAGMENT [static] |
Option to include fragment string in the URL string.
This option is enabled by default.
Definition at line 107 of file UrlBase.h.
Referenced by zypp::Url::asCompleteString(), and zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_AUTHORITY [static] |
Explicitely include the URL authority separator "//".
It causes, that the URL string includes an empty URL authority, for example: "file:///foo.txt" instead of just "file:/foo.txt".
This option depends on a enabled WITH_SCHEME view option and is enabled by default.
Definition at line 121 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_PATH_NAME [static] |
Explicitely include the "/" path character.
It causes, that a "/" is added to the Url if the path name is empty, for example:
"http://localhost/" instead of just "http://localhost".
This option depends on a enabled WITH_PATH_NAME view option and is enabled by default.
Definition at line 133 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_PATH_PARAMS [static] |
Explicitely include the path parameters separator ";".
It causes, that the URL allways contains the ";" path parameters separator.
This option depends on a enabled EMPTY_PATH_NAME view option and is disabled by default.
Definition at line 143 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_QUERY_STR [static] |
Explicitely include the query string separator "?".
It causes, that if the query string is requested using the WITH_QUERY_STR option, the URL allways contains the "?" query string separator, even if the query string is empty. This option depends on a enabled WITH_QUERY_STR view option and is disabled by default.
Definition at line 154 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::EMPTY_FRAGMENT [static] |
Explicitely include the fragment string separator "#".
It causes, that if the fragment string is requested using the WITH_FRAGMENT option, the URL allways contains the "#" fragment string separator, even if the fragment string is empty. This option depends on a enabled WITH_FRAGMENT view option and is disabled by default.
Definition at line 165 of file UrlBase.h.
Referenced by zypp::url::UrlBase::asString().
const ViewOption zypp::url::ViewOption::DEFAULTS [static] |
1.5.0