29 #ifndef __X3DURLOBJECT_H__
30 #define __X3DURLOBJECT_H__
85 if( loadStatus() == LOADED )
return 1;
101 url_base = _url_base;
110 string resolveURLAsFile(
const string &url,
111 bool *is_tmp_file = NULL );
114 string resolveURLAsString(
const string &url );
119 bool removeTmpFile(
const string &file );
122 H3DUniquePtr< MFString >
url;
125 string resolveURL (
const string& _url,
bool return_contents,
bool *is_tmp_file = NULL );
128 void addInlinePrefix(
const string &s );
132 int getInlinedContentOffset(
const std::string& url );
Contains different templates to modify field behaviour.
Contains the MFString field class.
This abstract interface is inherited by all nodes that contain data located on the World Wide Web,...
Definition: X3DUrlObject.h:51
list< string > supported_inline_prefixes
A list of inline prefixes that are supported by this url object.
Definition: X3DUrlObject.h:146
void setURLUsed(const string &_url_used)
Set the url that is currently loaded.
Definition: X3DUrlObject.h:90
LoadStatus
The load status of the given url.
Definition: X3DUrlObject.h:60
@ FAILED
The loading of the url failed.
Definition: X3DUrlObject.h:68
@ INIT
The url has not been tried to load yet.
Definition: X3DUrlObject.h:62
@ LOADED
The url has been successfully loaded.
Definition: X3DUrlObject.h:64
@ LOADING
The url is currently loading.
Definition: X3DUrlObject.h:66
virtual H3DFloat loadProgress()
The loadProgress() functions returns a value between 0 and 1 indicating how much of the current url h...
Definition: X3DUrlObject.h:84
void setURLBase(const string &_url_base)
Set the url base address.
Definition: X3DUrlObject.h:100
string url_base
The base URL for urls in this url object.
Definition: X3DUrlObject.h:142
virtual LoadStatus loadStatus()
The loadStatus function returns the status of the loading of the current urls in order to be used wit...
Definition: X3DUrlObject.h:74
const string & getURLUsed()
Get the url that is currently loaded.
Definition: X3DUrlObject.h:95
string url_used
If loadStatus() returns LOADED this string should contain the url that is loaded.
Definition: X3DUrlObject.h:137
H3DUniquePtr< MFString > url
The urls in decreasing order of preference.
Definition: X3DUrlObject.h:122
const string & getURLBase()
Get the current url base address.
Definition: X3DUrlObject.h:105
H3D API namespace.
Definition: Anchor.h:38