Browse Source

Move plCreatableUUID somewhere less annoying.

Darryl Pogue 13 years ago
parent
commit
89e42ed361
  1. 1
      Sources/Plasma/Apps/plFileEncrypt/main.cpp
  2. 2
      Sources/Plasma/Apps/plFileSecure/main.cpp
  3. 1
      Sources/Plasma/Apps/plPageInfo/plAllCreatables.cpp
  4. 1
      Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp
  5. 1
      Sources/Plasma/NucleusLib/pnNetCommon/CMakeLists.txt
  6. 23
      Sources/Plasma/NucleusLib/pnNetCommon/plCreatableUuid.h
  7. 3
      Sources/Plasma/NucleusLib/pnNetCommon/pnNetCommonCreatable.h
  8. 3
      Sources/Plasma/NucleusLib/pnUUID/CMakeLists.txt
  9. 22
      Sources/Plasma/NucleusLib/pnUUID/pnUUID.cpp
  10. 15
      Sources/Plasma/NucleusLib/pnUUID/pnUUID.h

1
Sources/Plasma/Apps/plFileEncrypt/main.cpp

@ -43,7 +43,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plFile/plEncryptedStream.h"
#include "pnProduct/pnProduct.h"
#include "hsUtils.h"
#include "pnUUID/pnUUIDCreatable.h"
void EncryptFiles(const char* dir, const char* ext, bool encrypt);

2
Sources/Plasma/Apps/plFileSecure/main.cpp

@ -45,8 +45,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnProduct/pnProduct.h"
#include "hsUtils.h"
#include "pnUUID/pnUUIDCreatable.h"
#include <time.h>
#include <string>

1
Sources/Plasma/Apps/plPageInfo/plAllCreatables.cpp

@ -61,7 +61,6 @@ REGISTER_NONCREATABLE( plDispatchBase );
#include "pnModifier/pnModifierCreatable.h"
#include "pnNetCommon/pnNetCommonCreatable.h"
#include "pnTimer/pnTimerCreatable.h"
#include "pnUUID/pnUUIDCreatable.h"
#include "plResMgr/plResMgrCreatable.h"

1
Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp

@ -61,6 +61,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnMessage/plCameraMsg.h"
#include "pnTimer/plTimerCallbackManager.h"
#include "plVault/plVault.h"
#include "pnNetCommon/plCreatableUuid.h"
#include "plNetClient/plNetClientMgr.h"
#include "plNetClient/plNetLinkingMgr.h"
#include "plNetTransport/plNetTransport.h"

1
Sources/Plasma/NucleusLib/pnNetCommon/CMakeLists.txt

@ -4,6 +4,7 @@ include_directories("../../NucleusLib/inc")
include_directories("../../PubUtilLib")
set(pnNetCommon_HEADERS
plCreatableUuid.h
plGenericVar.h
plNetAddress.h
plNetApp.h

23
Sources/Plasma/NucleusLib/pnUUID/pnUUIDCreatable.h → Sources/Plasma/NucleusLib/pnNetCommon/plCreatableUuid.h

@ -39,16 +39,23 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#ifndef pnCreatableUUID_h_inc
#define pnCreatableUUID_h_inc
#ifndef pnUUIDCreatable_inc
#define pnUUIDCreatable_inc
#include "pnUUID/pnUUID.h"
#include "pnFactory/plCreatable.h"
#include "pnFactory/plCreator.h"
class plCreatableUuid : public plUUID, public plCreatable {
public:
CLASSNAME_REGISTER( plCreatableUuid );
GETINTERFACE_ANY( plCreatableUuid, plCreatable );
plCreatableUuid() { }
plCreatableUuid(const plCreatableUuid& other) : plUUID(other) { }
plCreatableUuid(const plUUID& other) : plUUID(other) { }
#include "pnUUID.h"
REGISTER_CREATABLE( plCreatableUuid );
#endif // pnUUIDCreatable_inc
void Read( hsStream * s, hsResMgr* ) { plUUID::Read(s); }
void Write( hsStream * s, hsResMgr* ) { plUUID::Write(s); }
};
#endif //pnCreatableUUID_h_inc

3
Sources/Plasma/NucleusLib/pnNetCommon/pnNetCommonCreatable.h

@ -57,6 +57,9 @@ REGISTER_CREATABLE( plCreatableGenericValue );
#include "pnNetCommon.h"
REGISTER_CREATABLE( plCreatableStream );
#include "plCreatableUuid.h"
REGISTER_CREATABLE( plCreatableUuid );
#endif // pnNetCommonCreatable_inc

3
Sources/Plasma/NucleusLib/pnUUID/CMakeLists.txt

@ -13,11 +13,10 @@ endif(WIN32)
set(pnUUID_HEADERS
pnUUID.h
pnUUIDCreatable.h
)
add_library(pnUUID STATIC ${pnUUID_SOURCES} ${pnUUID_HEADERS})
target_link_libraries(pnUUID CoreLib pnFactory)
target_link_libraries(pnUUID CoreLib)
if(WIN32)
target_link_libraries(pnUUID pnUtils)
target_link_libraries(pnUUID Rpcrt4)

22
Sources/Plasma/NucleusLib/pnUUID/pnUUID.cpp

@ -73,25 +73,3 @@ const char * plUUID::AsString() const {
ToStdString(str);
return str.c_str();
}
/*****************************************************************************
*
* plCreatableUuid
*
***/
//============================================================================
plCreatableUuid::plCreatableUuid () {
}
//============================================================================
plCreatableUuid::plCreatableUuid (const plCreatableUuid & other)
: plUUID(other)
{
}
//============================================================================
plCreatableUuid::plCreatableUuid (const plUUID & other)
: plUUID(other)
{
}

15
Sources/Plasma/NucleusLib/pnUUID/pnUUID.h

@ -47,7 +47,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifdef HS_BUILD_FOR_WIN32
#include "pnUtils/pnUtils.h"
#endif
#include "pnFactory/plCreatable.h"
class hsStream;
@ -93,18 +92,4 @@ public:
static plUUID Generate();
};
class plCreatableUuid : public plUUID, public plCreatable {
public:
CLASSNAME_REGISTER( plCreatableUuid );
GETINTERFACE_ANY( plCreatableUuid, plCreatable );
plCreatableUuid ();
plCreatableUuid (const plCreatableUuid & other);
plCreatableUuid (const plUUID & other);
void Read( hsStream * s, hsResMgr* ) { plUUID::Read(s); }
void Write( hsStream * s, hsResMgr* ) { plUUID::Write(s); }
};
#endif // pnUUID_h_inc

Loading…
Cancel
Save