Ignore:
Timestamp:
Jan 4, 2011, 5:15:14 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
1afcbe
Parents:
746ff1
git-author:
Frederik Heber <heber@…> (01/04/11 15:57:33)
git-committer:
Frederik Heber <heber@…> (01/04/11 17:15:14)
Message:

Factory know has an additional type table and stubs have been refactored.

  • CommonStub.?pp contains basic classes with a int counter inside.
  • Library version is now 2:1:0, API is 1.0.3.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/unittests/stubs/CreatorStub.hpp

    r746ff1 r724564  
    88#ifndef CREATORSTUB_HPP_
    99#define CREATORSTUB_HPP_
     10
     11// include config.h
     12#ifdef HAVE_CONFIG_H
     13#include <config.h>
     14#endif
    1015
    1116#include <typeinfo>
     
    1924  virtual int getcount() = 0;
    2025  virtual std::string name() = 0;
    21 };
    22 
    23 namespace teststubs {
    24   class Aclass
    25   {
    26   public:
    27     Aclass() :
    28       counter(0)
    29     {};
    30     ~Aclass() {};
    31 
    32     int counter;
    33   };
    34 
    35   class Bclass
    36   {
    37   public:
    38     Bclass() :
    39       counter(256)
    40     {};
    41     ~Bclass() {};
    42 
    43     int counter;
    44   };
    4526};
    4627
Note: See TracChangeset for help on using the changeset viewer.