小编ped*_*nta的帖子

什么是将PHP(PDT)Eclipse项目部署到Apache的最佳方法?(在Ubuntu上)

在Ubuntu上在Apache 2.2上部署PHP PDT Eclipse项目的最佳方法是什么?

我已经尝试找到一个Apache Eclipse服务器适配器,但没有运气.你知道任何?

如果没有,将PHP项目部署到Apache的最佳方法是什么?Shell脚本?蚂蚁脚本?其他方案?

我可以将项目文件夹放在Apache的www文件夹中,但我更喜欢将项目文件放在Apache之外的克隆git存储库中.

我正在使用Eclipse Helios SR1,PDT 2.2.1和Apache 2.2.16.

提前致谢.

php eclipse apache deployment ubuntu

6
推荐指数
1
解决办法
2万
查看次数

在抽象类/函数上编译错误

我在C++抽象类(其他类需要继承和instanciate)上遇到一个奇怪的错误(缺少';',字符串类未被识别等).此外,我希望派生类被强制实现抽象类方法 - 因此纯虚拟= 0.

下面是我的抽象类定义.

Drawable.h:

#ifndef __myns__managers__Drawable_h__
#define __myns__managers__Drawable_h__

#include <string>

namespace myns
{
    namespace managers
    {
        class Drawable;
    }
}

namespace myns
{
    namespace managers
    {
        class Drawable
        {
            public:
                virtual float getX() = 0;
                virtual float getY() = 0;
                virtual string getImageFilePath() = 0;
            protected:
                int drawableId;

        };
    }
}

#endif
Run Code Online (Sandbox Code Playgroud)

根据我对C++的相关知识,我猜这一切都好,对吧?但是当我在VS 2010上编译时,它给了我一堆编译错误 - 如下所示.

我怎么解决这个问题?提前致谢.

VS构建输出:

1>------ Build started: Project: InteractiveMembranes_vc10, Configuration: X86 Debug Win32 ------
1>  OutputManager.cpp
1>(project dir)\managers\drawable.h(23): error C2146: syntax error : missing …
Run Code Online (Sandbox Code Playgroud)

c++ abstract-class compiler-errors

3
推荐指数
1
解决办法
4612
查看次数

处理循环对继承的依赖

我将在这个问题上使用C++übernbb,并询问在继承时如何处理循环依赖关系是最好的方法.

设置很简单:Scene类扩展了Actor; 场景有一个指向Actors矢量的指针; Actor有(父)场景的指针.

至于我得到的包含文件:

Scene.h:

#include <string>
#include <vector>
using namespace std;

#ifndef __Scene_h__
#define __Scene_h__

#include "Actor.h"

namespace myns
{
    // class Actor;
    class Scene;
}

namespace myns
{
    class Scene: public myns::Actor
    {
        /* private class attributes... */

        public:
            /* public class attributes... */

            std::vector<myns::Actor*> actors;

            Scene(/* arguments */);

            /* public class methods... */
    };
}

#endif
Run Code Online (Sandbox Code Playgroud)

Actor.h

#include <string>
#include <vector>
using namespace std;

#ifndef __Actor_h__
#define __Actor_h__

#include "Scene.h"

namespace myns
{
    // class Scene; …
Run Code Online (Sandbox Code Playgroud)

c++ architecture class circular-dependency

2
推荐指数
1
解决办法
2283
查看次数