VIZ++ Class: EntryT

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

Source code

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


#pragma once

#include <viz++/Object.h>


namespace VIZ {

template <class T> class EntryT :public Object {

private:
  T*  object;
  void*  data;
  
public:
  EntryT(T* obj, void* dat = NULL) {
    object = obj;
    data   = dat; 
  }

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

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

  T* getObject() { return object; }

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

}


Last modified: 10 Feb 2017

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