NAP
Public Member Functions | Public Attributes | List of all members
VideoFile Class Reference

#include <videofile.h>

Public Member Functions

virtual bool init (utility::ErrorState &errorState) override
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

std::string mPath
 Property: 'Path' location of video file on disk. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Path to a video file on disk. Can be loaded and played back by a nap::VideoPlayer. Verifies that the video exists and can be loaded on initialization.

Inheritance diagram for VideoFile:
[legend]
Collaboration diagram for VideoFile:
[legend]

Member Function Documentation

◆ init()

virtual bool init ( utility::ErrorState errorState)
overridevirtual

Checks if the file exists and can be loaded

Parameters
errorStatecontains the error if initialization fails.
Returns
if initialization succeeded.

Reimplemented from Object.

Member Data Documentation

◆ mPath

std::string mPath

Property: 'Path' location of video file on disk.