POV-Ray : Newsgroups : povray.programming : Proposal for 4.0 core control : Re: Proposal for 4.0 core control Server Time
28 Jul 2024 06:23:04 EDT (-0400)
  Re: Proposal for 4.0 core control  
From: Thorsten Froehlich
Date: 14 Oct 2002 15:07:57
Message: <3dab160d@news.povray.org>
In article <3DAAEAD0.B14A350B@gmx.de> , Christoph Hormann 
<chr### [at] gmxde>  wrote:

> Hmm, sounds interesting, could you give a few examples what would be
> possible with this system that does not work with current POV?  Your text
> contains quite some information about principal technical aspects but not
> about what things will be actually controlled with that 'POVOC&SS'.

Well, assuming some classes like below, one could remove user interface
dependincies from the core code and just allow overloading of a few classes
to transmit data...

    Thorsten

*******************

class Container
{
 public:
  Container();
  virtual ~Container();
  DataType DataType();
  long Size();
};

class List : public Container, public list<Container>
{
 public:
  List();
  List(List source);
  virtual ~List();
  void Append(Container item);
  void GetNth(int index, Container item);
  void SetNth(int index, Container item);
  void RemoveNth(int index);
  void Clear();
};

class Object : public Container, public map<DataType,Container>
{
 public:
  Object(DataType objclass);
  Object(Object convert);
  Object(Object source);
  ~Object();
  void Get(Container attr, DataType key);
  void Set(Container attr, DataType key);
  void Remove(DataType key);
  void Exist(DataType key);
};

class Status : public Object
{
 public:
  Status(string statusmsg);
  ~Status();
};

class Statistics : public Object
{
 public:
  Status(string statusmsg);
  ~Status();
};

class Warning : public Object
{
 public:
  Status(string statusmsg);
  ~Status();
};

class Error : public Object
{
 public:
  Status(string statusmsg);
  ~Status();
};



____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.