SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLObject Class Reference

Base class for all other classes. More...

#include <SLObject.h>

Inheritance diagram for SLObject:
[legend]

Public Member Functions

 SLObject (const SLstring &Name="", const SLstring &url="")
 
virtual ~SLObject ()
 
void name (const SLstring &Name)
 
void url (const SLstring &url)
 
const SLstringname () const
 
const SLstringurl () const
 

Protected Attributes

SLstring _name
 name of an object More...
 
SLstring _url
 uniform resource locator More...
 

Detailed Description

Base class for all other classes.

The SLObject class serves as root3D class for other classes and provides for the moment only a string with the name. It could be extended for object i/o (serialization) or reference counting.

Definition at line 22 of file SLObject.h.

Constructor & Destructor Documentation

◆ SLObject()

SLObject::SLObject ( const SLstring Name = "",
const SLstring url = "" 
)
inline

Definition at line 25 of file SLObject.h.

27  {
28  _name = Name;
29  _url = url;
30  }
SLstring _url
uniform resource locator
Definition: SLObject.h:43
const SLstring & url() const
Definition: SLObject.h:39
SLstring _name
name of an object
Definition: SLObject.h:42

◆ ~SLObject()

virtual SLObject::~SLObject ( )
inlinevirtual

Definition at line 31 of file SLObject.h.

31 {}

Member Function Documentation

◆ name() [1/2]

const SLstring& SLObject::name ( ) const
inline

Definition at line 38 of file SLObject.h.

38 { return _name; }

◆ name() [2/2]

void SLObject::name ( const SLstring Name)
inline

Definition at line 34 of file SLObject.h.

34 { _name = Name; }

◆ url() [1/2]

const SLstring& SLObject::url ( ) const
inline

Definition at line 39 of file SLObject.h.

39 { return _url; }

◆ url() [2/2]

void SLObject::url ( const SLstring url)
inline

Definition at line 35 of file SLObject.h.

35 { _url = url; }

Member Data Documentation

◆ _name

SLstring SLObject::_name
protected

name of an object

Definition at line 42 of file SLObject.h.

◆ _url

SLstring SLObject::_url
protected

uniform resource locator

Definition at line 43 of file SLObject.h.


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