VIZ++ Class: Entry

 VIZ++ Class Library  VIZ++ Samples  VIZ++ ClassTree 

Source code

/*
 * Entry.h 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// VIZ++2000
// 1999.09.23 Modified the second argument of a constructor  
// to take a default value of NULL.
#pragma once

#include <viz++\Object.h>


namespace VIZ {

class Entry :public Object {
private:
  Object*  object;
  void*  data;
  
public:
  Entry(Object* obj, void* dat = NULL) {
    object = obj;
    data   = dat; 
  }

  void  setData(void* dat) { data = dat; }

  void  setObject(Object* obj) { object = obj; }

  Object* getObject() { return object; }

  void*  getData()   { return data; }
};

}


Last modified: 10 Feb 2017

Copyright (c) 2009-2017 Antillia.com ALL RIGHTS RESERVED.