Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::address::IoURI Struct Reference

Audio file or device URI. More...

#include <io_uri.h>

Public Types

enum  { MaxLength = 1280 }
 

Public Member Functions

 IoURI ()
 Initialize empty URI. More...
 
bool is_empty () const
 Returns true if the URI is empty. More...
 
bool is_file () const
 Returns true if the scheme is "file". More...
 
bool is_special_file () const
 Returns true if the scheme is "file" and the path is "-". More...
 

Public Attributes

char scheme [16]
 URI scheme. May be "file" or device type, e.g. "alsa". More...
 
char path [1024]
 URI path. May be device name or file path depending on scheme. More...
 

Detailed Description

Audio file or device URI.

Definition at line 21 of file io_uri.h.

Constructor & Destructor Documentation

roc::address::IoURI::IoURI ( )

Initialize empty URI.

Member Function Documentation

bool roc::address::IoURI::is_empty ( ) const

Returns true if the URI is empty.

bool roc::address::IoURI::is_file ( ) const

Returns true if the scheme is "file".

bool roc::address::IoURI::is_special_file ( ) const

Returns true if the scheme is "file" and the path is "-".

Member Data Documentation

char roc::address::IoURI::path[1024]

URI path. May be device name or file path depending on scheme.

Definition at line 45 of file io_uri.h.

char roc::address::IoURI::scheme[16]

URI scheme. May be "file" or device type, e.g. "alsa".

Definition at line 41 of file io_uri.h.


The documentation for this struct was generated from the following file: