Changeset 369


Ignore:
Timestamp:
Jun 22, 2008, 9:46:20 PM (17 years ago)
Author:
cinc
Message:

Renamed nomGetCreatedClassName() to nomQueryCreatedClassName() because there is no copy returned. Added Test case class for NOMClassMgr to XCode project.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom.xcodeproj/project.pbxproj

    r359 r369  
    2121                36C523D40DFC380300B71A79 /* test-nom.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "test-nom.c"; sourceTree = "<group>"; };
    2222                36C523D50DFC380300B71A79 /* test-nom-2.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "test-nom-2.c"; sourceTree = "<group>"; };
    23                 36C523D70DFC380300B71A79 /* aclass.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = aclass.idl; sourceTree = "<group>"; };
    24                 36C523D80DFC380300B71A79 /* bclass.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = bclass.idl; sourceTree = "<group>"; };
     23                36C523D70DFC380300B71A79 /* aclass.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = aclass.idl; sourceTree = "<group>"; };
     24                36C523D80DFC380300B71A79 /* bclass.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = bclass.idl; sourceTree = "<group>"; };
    2525                36C523DA0DFC386A00B71A79 /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
    2626                36C523DB0DFC386A00B71A79 /* Makefile.kmk */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.kmk; sourceTree = "<group>"; };
     
    6464                36C5240E0DFC389F00B71A79 /* nombase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = nombase.h; sourceTree = "<group>"; };
    6565                36C5240F0DFC389F00B71A79 /* make.inc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.pascal; path = make.inc; sourceTree = "<group>"; };
    66                 36C524120DFC389F00B71A79 /* nomarray.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nomarray.idl; sourceTree = "<group>"; };
    67                 36C524130DFC389F00B71A79 /* nomtestcase.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nomtestcase.idl; sourceTree = "<group>"; };
    68                 36C524140DFC389F00B71A79 /* nomstring.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nomstring.idl; sourceTree = "<group>"; };
    69                 36C524150DFC389F00B71A79 /* nomcls.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nomcls.idl; sourceTree = "<group>"; };
    70                 36C524160DFC389F00B71A79 /* nomtestresult.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nomtestresult.idl; sourceTree = "<group>"; };
    71                 36C524170DFC389F00B71A79 /* nomclassmanager.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nomclassmanager.idl; sourceTree = "<group>"; };
    72                 36C524180DFC389F00B71A79 /* nombase.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nombase.idl; sourceTree = "<group>"; };
    73                 36C524190DFC389F00B71A79 /* nommethod.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nommethod.idl; sourceTree = "<group>"; };
    74                 36C5241A0DFC389F00B71A79 /* nomobj.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = nomobj.idl; sourceTree = "<group>"; };
     66                36C524120DFC389F00B71A79 /* nomarray.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nomarray.idl; sourceTree = "<group>"; };
     67                36C524130DFC389F00B71A79 /* nomtestcase.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nomtestcase.idl; sourceTree = "<group>"; };
     68                36C524140DFC389F00B71A79 /* nomstring.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nomstring.idl; sourceTree = "<group>"; };
     69                36C524150DFC389F00B71A79 /* nomcls.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nomcls.idl; sourceTree = "<group>"; };
     70                36C524160DFC389F00B71A79 /* nomtestresult.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nomtestresult.idl; sourceTree = "<group>"; };
     71                36C524170DFC389F00B71A79 /* nomclassmanager.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nomclassmanager.idl; sourceTree = "<group>"; };
     72                36C524180DFC389F00B71A79 /* nombase.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nombase.idl; sourceTree = "<group>"; };
     73                36C524190DFC389F00B71A79 /* nommethod.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nommethod.idl; sourceTree = "<group>"; };
     74                36C5241A0DFC389F00B71A79 /* nomobj.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = nomobj.idl; sourceTree = "<group>"; };
    7575                36C5241C0DFC389F00B71A79 /* nomtestresult.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = nomtestresult.c; sourceTree = "<group>"; };
    7676                36C5241D0DFC389F00B71A79 /* nommethod.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = nommethod.c; sourceTree = "<group>"; };
     
    9292                36C5242F0DFC389F00B71A79 /* nombuildnomcls.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = nombuildnomcls.c; sourceTree = "<group>"; };
    9393                36C524300DFC389F00B71A79 /* nomtkinit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = nomtkinit.c; sourceTree = "<group>"; };
    94                 36C524310DFC389F00B71A79 /* _nomgc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = _nomgc.c; sourceTree = "<group>"; };
    9594                36C524320DFC389F00B71A79 /* thunk.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = thunk.c; sourceTree = "<group>"; };
    9695                36C524330DFC389F00B71A79 /* nomid.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = nomid.c; sourceTree = "<group>"; };
     
    101100                36C524380DFC389F00B71A79 /* Makefile.kmk */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.kmk; sourceTree = "<group>"; };
    102101                36C524390DFC389F00B71A79 /* exports.def */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = exports.def; sourceTree = "<group>"; };
     102                36C5245A0DFC512E00B71A79 /* testnomobject.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = testnomobject.idl; sourceTree = "<group>"; };
     103                36C5248D0DFC55CA00B71A79 /* testnomobject.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = testnomobject.c; sourceTree = "<group>"; };
     104                36C780090E0ED8F800B897F3 /* testnomclassmgr.idl */ = {isa = PBXFileReference; explicitFileType = sourcecode.c; fileEncoding = 4; path = testnomclassmgr.idl; sourceTree = "<group>"; };
     105                36C7800D0E0EDB5D00B897F3 /* testnomclassmgr.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = testnomclassmgr.c; sourceTree = "<group>"; };
    103106/* End PBXFileReference section */
    104107
     
    130133                        isa = PBXGroup;
    131134                        children = (
     135                                36C7800D0E0EDB5D00B897F3 /* testnomclassmgr.c */,
     136                                36C5248D0DFC55CA00B71A79 /* testnomobject.c */,
    132137                                36C523C70DFC380300B71A79 /* bclass.c */,
    133138                                36C523C80DFC380300B71A79 /* Makefile.kup */,
     
    154159                        isa = PBXGroup;
    155160                        children = (
     161                                36C780090E0ED8F800B897F3 /* testnomclassmgr.idl */,
     162                                36C5245A0DFC512E00B71A79 /* testnomobject.idl */,
    156163                                36C523D70DFC380300B71A79 /* aclass.idl */,
    157164                                36C523D80DFC380300B71A79 /* bclass.idl */,
     
    369376                                36C5242F0DFC389F00B71A79 /* nombuildnomcls.c */,
    370377                                36C524300DFC389F00B71A79 /* nomtkinit.c */,
    371                                 36C524310DFC389F00B71A79 /* _nomgc.c */,
    372378                                36C524320DFC389F00B71A79 /* thunk.c */,
    373379                                36C524330DFC389F00B71A79 /* nomid.c */,
  • trunk/nom/class_c/nomcls.c

    r357 r369  
    163163
    164164/**
    165    Function which implements the nomGetCreatedClassName() method of NOMClass.
     165   Function which implements the nomQueryCreatedClassName() method of NOMClass.
    166166*/
    167 NOM_Scope CORBA_string NOMLINK impl_NOMClass_nomGetCreatedClassName(NOMClass* nomSelf, CORBA_Environment *ev)
     167NOM_Scope CORBA_string NOMLINK impl_NOMClass_nomQueryCreatedClassName(NOMClass* nomSelf, CORBA_Environment *ev)
    168168{
    169169  NOMClassPriv* ncp;
  • trunk/nom/idl/nomcls.idl

    r294 r369  
    7676     This method is usually not overriden.
    7777
    78      \sa nomGetClassName()
     78     \sa nomQueryClassName()
    7979   */
    80   string nomGetCreatedClassName();
     80  string nomQueryCreatedClassName();
    8181
    8282  /**
  • trunk/nom/src/nomdebug.c

    r357 r369  
    6767      g_error("The object used to call the method %s is not a valid NOM object. ", chrMethodName);
    6868    else
    69       g_error("The object for which the method %s should be called is not valid for this method.\nThe object must be some instance of class %s (or of a subclass) but is a %s.", chrMethodName, NOMClass_nomGetCreatedClassName(nomClass, NULL),
     69      g_error("The object for which the method %s should be called is not valid for this method.\nThe object must be some instance of class %s (or of a subclass) but is a %s.", chrMethodName, NOMClass_nomQueryCreatedClassName(nomClass, NULL),
    7070                NOMObject_nomQueryClassName(nomObject, NULL));
    7171  }
  • trunk/tests/class_c/testnomclassmgr.c

    r368 r369  
    7171      break;
    7272   
    73     if(0!=strcmp( _nomGetCreatedClassName(nClassObject, NULL), "NOMObject"))
     73    if(0!=strcmp( _nomQueryCreatedClassName(nClassObject, NULL), "NOMObject"))
    7474      break;
    7575     
Note: See TracChangeset for help on using the changeset viewer.