    

 ## On this page

  

 

 # ansys::Project::URL Class Reference

 Last update: 16.07.2025 

The address of a local or remote file, using the URI format. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#details)

`#include "URL.hpp"`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="a8890e4a55032db962f7534d89d6c8d25" name="a8890e4a55032db962f7534d89d6c8d25"></a> **URL** () Default constructor.   
  [URL](classansys_1_1_project_1_1_u_r_l.xhtml#a6da60a7ea6909813c3ef709f40c3e105) (const std::string &amp;pStr) Constructor from string. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a6da60a7ea6909813c3ef709f40c3e105)  
  [URL](classansys_1_1_project_1_1_u_r_l.xhtml#a940c44d6fe20e9c90c51d27ac1af208a) (const std::string &amp;pType, const std::string &amp;pStr) Constructor from type and path/filename. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a940c44d6fe20e9c90c51d27ac1af208a)  
  [URL](classansys_1_1_project_1_1_u_r_l.xhtml#a458227b58a30cc5465e458d7510c9763) (const char \*pStr) Constructor from char\*. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a458227b58a30cc5465e458d7510c9763)  
 <a id="a951183196b45dcc2897a74b232021d2f" name="a951183196b45dcc2897a74b232021d2f"></a> **~URL** () Destructor.   
 std::string [getFilename](classansys_1_1_project_1_1_u_r_l.xhtml#a7fa872a791c333b1460f4f818151dee9) () const Returns the file component of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format."), path removed. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a7fa872a791c333b1460f4f818151dee9)  
 std::string [getItemName](classansys_1_1_project_1_1_u_r_l.xhtml#ac7c76f112c4f37854c30675fb4f4b40e) () const Returns the last name (directory or file) from the path. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#ac7c76f112c4f37854c30675fb4f4b40e)  
 std::string [getFilenameRoot](classansys_1_1_project_1_1_u_r_l.xhtml#ac1ced383f9b4e25d43c8b927a93423cf) () const Returns root (suffix removed) from the filename. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#ac1ced383f9b4e25d43c8b927a93423cf)  
 std::string [getFilenamePath](classansys_1_1_project_1_1_u_r_l.xhtml#a95a5b43b27aace93fd61e4e3a4aea6d0) () const Returns the path from a filename. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a95a5b43b27aace93fd61e4e3a4aea6d0)  
 std::string [getURLString](classansys_1_1_project_1_1_u_r_l.xhtml#ad17fc0b52d20b464999e20ded43710bb) () const Returns the full type://path/filename for a [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format."). [More...](classansys_1_1_project_1_1_u_r_l.xhtml#ad17fc0b52d20b464999e20ded43710bb)  
 [URL](classansys_1_1_project_1_1_u_r_l.xhtml) [getURLSubset](classansys_1_1_project_1_1_u_r_l.xhtml#a67cbbd45a04c1dba8cc56b449b3c474f) (int pComponentStart, int pEnd=-1) const Return a subset of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") components. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a67cbbd45a04c1dba8cc56b449b3c474f)  
 bool [isValid](classansys_1_1_project_1_1_u_r_l.xhtml#a5e708d0c6bdc68ec2f58a55e4746a64a) () const Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is defined. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a5e708d0c6bdc68ec2f58a55e4746a64a)  
 bool [isNull](classansys_1_1_project_1_1_u_r_l.xhtml#a841f43183ed1745e48c68573be7d783a) () const Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is non null. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a841f43183ed1745e48c68573be7d783a)  
 bool [isLocalPath](classansys_1_1_project_1_1_u_r_l.xhtml#a6100f020e2802b541799ef6abe27bba0) () const Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is a ./ path. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a6100f020e2802b541799ef6abe27bba0)  
 bool [isRelativePath](classansys_1_1_project_1_1_u_r_l.xhtml#a1e5423f5e62d85c414746e42fb27ee99) () const Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is a relative path. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a1e5423f5e62d85c414746e42fb27ee99)  
 bool [isGlobalPath](classansys_1_1_project_1_1_u_r_l.xhtml#abd0cafeb009a49398e0e66f000af0748) () const Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is a global path. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#abd0cafeb009a49398e0e66f000af0748)  
 bool [isInside](classansys_1_1_project_1_1_u_r_l.xhtml#aaa5cc3f1f5280cb9a6e0eeca0663422e) (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;pURL) const Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is inside the specified folder [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format."). [More...](classansys_1_1_project_1_1_u_r_l.xhtml#aaa5cc3f1f5280cb9a6e0eeca0663422e)  
 URLType [getType](classansys_1_1_project_1_1_u_r_l.xhtml#afca6d0bfdbd341416abe058a22dd7928) () const Return the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") type. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#afca6d0bfdbd341416abe058a22dd7928)  
 const std::string &amp; [str](classansys_1_1_project_1_1_u_r_l.xhtml#adfa904dbbd5f478035b455c19361a0f9) () const Returns the path/file component of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format."). [More...](classansys_1_1_project_1_1_u_r_l.xhtml#adfa904dbbd5f478035b455c19361a0f9)  
 void [toGlobal](classansys_1_1_project_1_1_u_r_l.xhtml#a07b8c80c3a34a8973d7210d40a94cc01) (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;pRootPath) Convert [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") to global path. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a07b8c80c3a34a8973d7210d40a94cc01)  
 void [toRelative](classansys_1_1_project_1_1_u_r_l.xhtml#ad95c60ea798859bd647d53f5a17293c4) (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;pRefDir) Convert [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") to relative path. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#ad95c60ea798859bd647d53f5a17293c4)  
 void [simplifyURL](classansys_1_1_project_1_1_u_r_l.xhtml#a3d2acb9a63d3725b6e56a981efca159d) () Simplify [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") by removing internal relative paths. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a3d2acb9a63d3725b6e56a981efca159d)  
 bool [operator!=](classansys_1_1_project_1_1_u_r_l.xhtml#af288000689d17f17b7b5752b6e73118d) (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;pURL) const Unequal operator. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#af288000689d17f17b7b5752b6e73118d)  
 bool [operator==](classansys_1_1_project_1_1_u_r_l.xhtml#a35c9cec29e715559279ef1b37279959c) (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;pURL) const Equal operator. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a35c9cec29e715559279ef1b37279959c)  
 bool [operator==](classansys_1_1_project_1_1_u_r_l.xhtml#aa2ad6e8d9113f5814924266d6283e5b6) (const std::string &amp;pURLString) const Equal operator - with string. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#aa2ad6e8d9113f5814924266d6283e5b6)  
 [URL](classansys_1_1_project_1_1_u_r_l.xhtml) [operator+](classansys_1_1_project_1_1_u_r_l.xhtml#a74cd47ea4d24a1729181e03881da16b7) (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;p2) const Concatenation operator. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a74cd47ea4d24a1729181e03881da16b7)  
 [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp; [operator+=](classansys_1_1_project_1_1_u_r_l.xhtml#ae56a17a4cb49d9560aa9a9bb7be6edac) (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;p2) Self concatenation operator. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#ae56a17a4cb49d9560aa9a9bb7be6edac)  
 bool [normalizeToFolder](classansys_1_1_project_1_1_u_r_l.xhtml#a33e9abf89d03cf73aa2bfab839d347e5) () Ensure the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is a folder path, if trailing / was missing. [More...](classansys_1_1_project_1_1_u_r_l.xhtml#a33e9abf89d03cf73aa2bfab839d347e5)  
 <a id="details" name="details"></a>## Detailed Description

The address of a local or remote file, using the URI format.

The [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") objects contains the string for a [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path and provides string operations on it. A [Project](classansys_1_1_project_1_1_project.xhtml "Base class for Project API, also see SimProject.") define an [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") for each file or folder, the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") will indicate where to fetch the content.

A [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is a data location as

```
type://path
file:///home/user/file
http://host.com/folder/file
```

 A special type of [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is also supported: relative paths

```
./filename
```

 Relative paths infer their global location from their parent directory (PFolder)

### Type

The type can be omitted, it is then assumed a "file://" type see [URL::getType()](classansys_1_1_project_1_1_u_r_l.xhtml#afca6d0bfdbd341416abe058a22dd7928 "Return the URL type.")

"filename" -&gt; "file://filename"

The type is tied to a [Storage](classansys_1_1_project_1_1_storage.xhtml "Base class for file storage management module.") interface, and some project operations ( file access, deletion, etc.) will require the matching [Storage](classansys_1_1_project_1_1_storage.xhtml "Base class for file storage management module.") plug-in to access the remote file.

*Note: (2020R2) only a "file://" interface is provided via [StorageFilesystem](classansys_1_1_project_1_1_storage_filesystem.xhtml "Class for Storage on standard filesystem, for file:// URL.")*

### Differences with URI specs:

- a [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") object can be initialized with a relative path ( starts with ./) but such an [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is only used for [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") composision
- The single slash <file:/path> syntax is not supported, only <file://..>.

### Path/Filename component

[str()](classansys_1_1_project_1_1_u_r_l.xhtml#adfa904dbbd5f478035b455c19361a0f9 "Returns the path/file component of the URL."), c\_str() will return the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") content without the type "file:///path/filename" -&gt; "/path/filename"

### Type: file

The file paths are stored with the / separator (if \\ windows separator are used, the are converted to /, except file sharing paths)

```
"/path/to/file" -> "/path/to/file"
"./relative/file" -> "./relative/file"
"d:\path\to\file" -> "d:/path/to/file"
"\\filesystem\path\file" -> "\\filesystem\path\file"
```



## Constructor &amp; Destructor Documentation

<a id="a6da60a7ea6909813c3ef709f40c3e105" name="a6da60a7ea6909813c3ef709f40c3e105"></a>## [◆ ](#a6da60a7ea6909813c3ef709f40c3e105)URL() \[1/3\]

 ansys::Project::URL::URL  ( const std::string &amp;  *pURL*) 

Constructor from string.

Builds [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") from string. If type:// is omitted, the type "file" is assumed.

Parameters pURLString with a valid full URI 



<a id="a940c44d6fe20e9c90c51d27ac1af208a" name="a940c44d6fe20e9c90c51d27ac1af208a"></a>## [◆ ](#a940c44d6fe20e9c90c51d27ac1af208a)URL() \[2/3\]

 ansys::Project::URL::URL  ( const std::string &amp;  *pType*,    const std::string &amp;  *pURL*   ) 

Constructor from type and path/filename.

Builds [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") from type and filename. Type is such as "file"

Parameters pTypeName Type of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") - ex: "file" pURLFilename with path of the file or folder. 



<a id="a458227b58a30cc5465e458d7510c9763" name="a458227b58a30cc5465e458d7510c9763"></a>## [◆ ](#a458227b58a30cc5465e458d7510c9763)URL() \[3/3\]

 ansys::Project::URL::URL  ( const char \*  *pStr*) 

Constructor from char\*.

Builds [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") from string. If type:// is omitted, the type "file" is assumed.

Parameters pStrString with a valid full URI 



## Member Function Documentation

<a id="a7fa872a791c333b1460f4f818151dee9" name="a7fa872a791c333b1460f4f818151dee9"></a>## [◆ ](#a7fa872a791c333b1460f4f818151dee9)getFilename()

 std::string ansys::Project::URL::getFilename  ( )  const

Returns the file component of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format."), path removed.

The path is removed and only the filename is returned /path/to/filename -&gt; filename /path/to/ -&gt; (empty string)

Returnspath/file component of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") 



<a id="a95a5b43b27aace93fd61e4e3a4aea6d0" name="a95a5b43b27aace93fd61e4e3a4aea6d0"></a>## [◆ ](#a95a5b43b27aace93fd61e4e3a4aea6d0)getFilenamePath()

 std::string ansys::Project::URL::getFilenamePath  ( )  const

Returns the path from a filename.

Return the path of a file /path/to/file.cas -&gt; /path/to/ /path/folder/ -&gt; /path/folder/

Returnsitem name as string 



<a id="ac1ced383f9b4e25d43c8b927a93423cf" name="ac1ced383f9b4e25d43c8b927a93423cf"></a>## [◆ ](#ac1ced383f9b4e25d43c8b927a93423cf)getFilenameRoot()

 std::string ansys::Project::URL::getFilenameRoot  ( )  const

Returns root (suffix removed) from the filename.

This function can only be used on file URLs: /path/to/file.cas -&gt; file /path/to/file\_cas -&gt; file\_cas /path/folder/ -&gt; (empty string)

Returnsitem name as string 



<a id="ac7c76f112c4f37854c30675fb4f4b40e" name="ac7c76f112c4f37854c30675fb4f4b40e"></a>## [◆ ](#ac7c76f112c4f37854c30675fb4f4b40e)getItemName()

 std::string ansys::Project::URL::getItemName  ( )  const

Returns the last name (directory or file) from the path.

Only the last component of the path is returned, including / for folder name. /path/to/filename -&gt; filename /path/folder/ -&gt; folder/

Returnsitem name as string 



<a id="afca6d0bfdbd341416abe058a22dd7928" name="afca6d0bfdbd341416abe058a22dd7928"></a>## [◆ ](#afca6d0bfdbd341416abe058a22dd7928)getType()

 URLType ansys::Project::URL::getType  ( )  const

Return the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") type.

Returnstype string 



<a id="ad17fc0b52d20b464999e20ded43710bb" name="ad17fc0b52d20b464999e20ded43710bb"></a>## [◆ ](#ad17fc0b52d20b464999e20ded43710bb)getURLString()

 std::string ansys::Project::URL::getURLString  ( )  const

Returns the full type://path/filename for a [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.").

The type is always included, even if using implicit <file://> ./file -&gt; <file://./file> /path/file -&gt; <file:///path/file>

ReturnsFull [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") as string 



<a id="a67cbbd45a04c1dba8cc56b449b3c474f" name="a67cbbd45a04c1dba8cc56b449b3c474f"></a>## [◆ ](#a67cbbd45a04c1dba8cc56b449b3c474f)getURLSubset()

 [URL](classansys_1_1_project_1_1_u_r_l.xhtml) ansys::Project::URL::getURLSubset  ( int  *pComponentStart*,    int  *pEnd* = `-1`   )  const

Return a subset of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") components.

The getURLComponents() returns an array of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") items /path/file -&gt; \[ / , path/ , file\] This function returns the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") forming the subset between indices in this array

Parameters pComponentStartstart of the subset (starts at 0) pEndend of the subset, not included. (omit, or -1 to include up to the end of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format."))Returns[URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") of the subset, if a folder will end by / 



<a id="abd0cafeb009a49398e0e66f000af0748" name="abd0cafeb009a49398e0e66f000af0748"></a>## [◆ ](#abd0cafeb009a49398e0e66f000af0748)isGlobalPath()

 bool ansys::Project::URL::isGlobalPath  ( )  const

Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is a global path.

A global path starts by / , \\ (windows file share) or is a windows drive name (i.e. c:/ ...)

Returnstrue if global 



<a id="aaa5cc3f1f5280cb9a6e0eeca0663422e" name="aaa5cc3f1f5280cb9a6e0eeca0663422e"></a>## [◆ ](#aaa5cc3f1f5280cb9a6e0eeca0663422e)isInside()

 bool ansys::Project::URL::isInside  ( const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;  *pURL*)  const

Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is inside the specified folder [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.").

Note that the paths must be exactly the same, symbolic links, aliases or platform-specific case insensivity are not supported

Returnstrue if within the specified path 



<a id="a6100f020e2802b541799ef6abe27bba0" name="a6100f020e2802b541799ef6abe27bba0"></a>## [◆ ](#a6100f020e2802b541799ef6abe27bba0)isLocalPath()

 bool ansys::Project::URL::isLocalPath  ( )  const

Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is a ./ path.

A local path starts by ./ and assumes inside local directory

Returnstrue if relative 



<a id="a841f43183ed1745e48c68573be7d783a" name="a841f43183ed1745e48c68573be7d783a"></a>## [◆ ](#a841f43183ed1745e48c68573be7d783a)isNull()

 bool ansys::Project::URL::isNull  ( )  const

Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is non null.

Returnstrue if non null 



<a id="a1e5423f5e62d85c414746e42fb27ee99" name="a1e5423f5e62d85c414746e42fb27ee99"></a>## [◆ ](#a1e5423f5e62d85c414746e42fb27ee99)isRelativePath()

 bool ansys::Project::URL::isRelativePath  ( )  const

Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") path/filename is a relative path.

A relative path starts by ./ or ../

Returnstrue if relative 



<a id="a5e708d0c6bdc68ec2f58a55e4746a64a" name="a5e708d0c6bdc68ec2f58a55e4746a64a"></a>## [◆ ](#a5e708d0c6bdc68ec2f58a55e4746a64a)isValid()

 bool ansys::Project::URL::isValid  ( )  const

Indicate if [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is defined.

Checks if the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is non null and atype is defined

Returnstrue if valid 



<a id="a33e9abf89d03cf73aa2bfab839d347e5" name="a33e9abf89d03cf73aa2bfab839d347e5"></a>## [◆ ](#a33e9abf89d03cf73aa2bfab839d347e5)normalizeToFolder()

 bool ansys::Project::URL::normalizeToFolder  ( ) 

Ensure the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") is a folder path, if trailing / was missing.

Returnsfalse if error 



<a id="af288000689d17f17b7b5752b6e73118d" name="af288000689d17f17b7b5752b6e73118d"></a>## [◆ ](#af288000689d17f17b7b5752b6e73118d)operator!=()

 bool ansys::Project::URL::operator!=  ( const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;  *pURL*)  const

Unequal operator.

Returnstrue if [URL::operator==()](classansys_1_1_project_1_1_u_r_l.xhtml#a35c9cec29e715559279ef1b37279959c "Equal operator.") is false 



<a id="a74cd47ea4d24a1729181e03881da16b7" name="a74cd47ea4d24a1729181e03881da16b7"></a>## [◆ ](#a74cd47ea4d24a1729181e03881da16b7)operator+()

 [URL](classansys_1_1_project_1_1_u_r_l.xhtml) ansys::Project::URL::operator+  ( const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;  *p2*)  const

Concatenation operator.

Adds the path/filename to the value of current [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") and returns the new [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.").

Returns[URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") with concatenated value 



<a id="ae56a17a4cb49d9560aa9a9bb7be6edac" name="ae56a17a4cb49d9560aa9a9bb7be6edac"></a>## [◆ ](#ae56a17a4cb49d9560aa9a9bb7be6edac)operator+=()

 [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp; ansys::Project::URL::operator+=  ( const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;  *p2*) 

Self concatenation operator.

Adds the path/filename to the current [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") modifying the current object.

Returns[URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") with concatenated value 



<a id="aa2ad6e8d9113f5814924266d6283e5b6" name="aa2ad6e8d9113f5814924266d6283e5b6"></a>## [◆ ](#aa2ad6e8d9113f5814924266d6283e5b6)operator==() \[1/2\]

 bool ansys::Project::URL::operator==  ( const std::string &amp;  *pURLString*)  const

Equal operator - with string.

Returnstrue if both type and [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") string are the same 



<a id="a35c9cec29e715559279ef1b37279959c" name="a35c9cec29e715559279ef1b37279959c"></a>## [◆ ](#a35c9cec29e715559279ef1b37279959c)operator==() \[2/2\]

 bool ansys::Project::URL::operator==  ( const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;  *pURL*)  const

Equal operator.

Returnstrue if both type and [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") string are the same 



<a id="a3d2acb9a63d3725b6e56a981efca159d" name="a3d2acb9a63d3725b6e56a981efca159d"></a>## [◆ ](#a3d2acb9a63d3725b6e56a981efca159d)simplifyURL()

 void ansys::Project::URL::simplifyURL  ( ) 

Simplify [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") by removing internal relative paths.

Remove relative paths included in the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format."), such as /path/to/../file will become /path/file

Parameters pRefPathFolder [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") 



<a id="adfa904dbbd5f478035b455c19361a0f9" name="adfa904dbbd5f478035b455c19361a0f9"></a>## [◆ ](#adfa904dbbd5f478035b455c19361a0f9)str()

 const std::string &amp; ansys::Project::URL::str  ( )  const

Returns the path/file component of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.").

Returnspath/file component of the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") 



<a id="a07b8c80c3a34a8973d7210d40a94cc01" name="a07b8c80c3a34a8973d7210d40a94cc01"></a>## [◆ ](#a07b8c80c3a34a8973d7210d40a94cc01)toGlobal()

 void ansys::Project::URL::toGlobal  ( const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;  *pRootPath*) 

Convert [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") to global path.

Appends the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") to the supplied directory Can only be used on a relative [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") ( start with ./ or ../ )

Parameters pRootPathFolder [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") 



<a id="ad95c60ea798859bd647d53f5a17293c4" name="ad95c60ea798859bd647d53f5a17293c4"></a>## [◆ ](#ad95c60ea798859bd647d53f5a17293c4)toRelative()

 void ansys::Project::URL::toRelative  ( const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;  *pRefPath*) 

Convert [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") to relative path.

Convert the [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.") to relative from the specified location Can only be used on a global path with a common root

Parameters pRefPathFolder [URL](classansys_1_1_project_1_1_u_r_l.xhtml "The address of a local or remote file, using the URI format.")