0

ここに 2 つのヘッダー ファイルがあります。子と親です。このエラーが発生する理由を説明できる人はいますか?

前もって感謝します

SampleApplication.h:

#ifndef SAMPLEAPPLICATION_H_
#define SAMPLEAPPLICATION_H_

#include "ns3/CcnModule.h"
#include "ns3/CCN_Name.h"
#include <string>

class CcnModule;

class SampleApplication : public ns3::Application
{

   public:
    ns3::Ptr<CcnModule> ccnm;


    static ns3::TypeId GetTypeId(void);
    virtual ns3::TypeId GetInstanceTypeId (void) const;
    SampleApplication();
    SampleApplication(ns3::Ptr<CcnModule> ccnm);
    virtual ~SampleApplication();
    char* data;
    int length;
    ns3::Ptr<CCN_Name> dataName;
    void SendInterest(ns3::Ptr<CCN_Name> n);

    void SendData(ns3::Ptr<CCN_Name> data, char* buff, int bufflen);
    virtual void InterestReceived(ns3::Ptr<CCN_Name> ccnn);
    virtual void DataArrived(ns3::Ptr<CCN_Name> data, char* buff, int bufflen);

    void AnnounceName(ns3::Ptr<CCN_Name> n);

    virtual void DoDispose();
    virtual void DoInitialize();
};

#endif

Receiver.h:

#ifndef RECEIVER_H_
#define RECEIVER_H_


#include "ns3/CcnModule.h"
#include "ns3/CCN_Name.h"
#include <string>
#include <vector>
#include "ns3/SampleApplication.h"


class CcnModule;
//class SampleApplication;

class Receiver : SampleApplication
{

   public:

    static ns3::TypeId GetTypeId(void);
    virtual ns3::TypeId GetInstanceTypeId (void) const;
    Receiver(ns3::Ptr<CcnModule> ccnm);

    virtual ~Receiver();

    void SendInterest(ns3::Ptr<CCN_Name> n);

    virtual void DataArrived(ns3::Ptr<CCN_Name> data, char* buff, int bufflen);
};

#endif
4

1 に答える 1