![]() |
Crossfire Server, Trunk
1.75.0
|
Include dependency graph for pyi-generate.cpp:Go to the source code of this file.
Data Structures | |
| struct | methodSignature |
| struct | propertySignature |
Functions | |
| const methodSignature * | getSignature (const methodSignature *signatures, const char *method) |
| const propertySignature * | getSignature (const propertySignature *properties, const char *property) |
| int | main (int, char **) |
| void | writeClass (std::ofstream &pyi, const char *name, const PyTypeObject *obj, const methodSignature *methods, const propertySignature *properties, const char *base=nullptr) |
| void | writeConstants (std::ofstream &pyi, const CFConstant *constants) |
| void | writeDescriptionAndBody (std::ofstream &pyi, const char *indent, const char *description) |
| void | writeEnum (std::ofstream &pyi, const char *name, const CFConstant *constants) |
| void | writeMethods (std::ofstream &pyi, const PyMethodDef method[], const methodSignature *signatures, bool inClass) |
Variables | |
| static const methodSignature | archMethods [] |
| static const propertySignature | archProperties [] |
| static const methodSignature | mapMethods [] |
| static const propertySignature | mapProperties [] |
| static const methodSignature | moduleMethods [] |
| static const methodSignature | objectMethods [] |
| static const propertySignature | objectProperties [] |
| static const methodSignature | partyMethods [] |
| static const propertySignature | partyProperties [] |
| static const methodSignature | playerMethods [] |
| static const propertySignature | playerProperties [] |
| static const methodSignature | regionMethods [] |
| static const propertySignature | regionProperties [] |
| static methodSignature | unknown = { nullptr, nullptr, "any", nullptr } |
| static propertySignature | unknownProperty = { nullptr, "any", nullptr } |
| const methodSignature* getSignature | ( | const methodSignature * | signatures, |
| const char * | method | ||
| ) |
Definition at line 70 of file pyi-generate.cpp.
References methodSignature::method, and unknown.
Referenced by writeClass(), and writeMethods().
Here is the caller graph for this function:| const propertySignature* getSignature | ( | const propertySignature * | properties, |
| const char * | property | ||
| ) |
Definition at line 104 of file pyi-generate.cpp.
References propertySignature::property, and unknownProperty.
| int main | ( | int | , |
| char ** | |||
| ) |
Definition at line 153 of file pyi-generate.cpp.
References archMethods, archProperties, CFPythonMethods, Crossfire_ArchetypeType, Crossfire_MapType, Crossfire_ObjectType, Crossfire_PartyType, Crossfire_PlayerType, Crossfire_RegionType, cstAttackMovement, cstAttackType, cstAttackTypeNumber, cstDirection, cstEventType, cstMessageFlag, cstMove, cstReplyTypes, cstTime, cstType, mapMethods, mapProperties, moduleMethods, objectMethods, objectProperties, partyMethods, partyProperties, playerMethods, playerProperties, regionMethods, regionProperties, writeClass(), writeConstants(), writeEnum(), and writeMethods().
Here is the call graph for this function:| void writeClass | ( | std::ofstream & | pyi, |
| const char * | name, | ||
| const PyTypeObject * | obj, | ||
| const methodSignature * | methods, | ||
| const propertySignature * | properties, | ||
| const char * | base = nullptr |
||
| ) |
Definition at line 113 of file pyi-generate.cpp.
References getSignature(), name, writeDescriptionAndBody(), and writeMethods().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void writeConstants | ( | std::ofstream & | pyi, |
| const CFConstant * | constants | ||
| ) |
Definition at line 146 of file pyi-generate.cpp.
References c, CFConstant::name, and CFConstant::value.
Referenced by main().
Here is the caller graph for this function:| void writeDescriptionAndBody | ( | std::ofstream & | pyi, |
| const char * | indent, | ||
| const char * | description | ||
| ) |
Definition at line 79 of file pyi-generate.cpp.
References description.
Referenced by writeClass(), and writeMethods().
Here is the caller graph for this function:| void writeEnum | ( | std::ofstream & | pyi, |
| const char * | name, | ||
| const CFConstant * | constants | ||
| ) |
Definition at line 138 of file pyi-generate.cpp.
References c, name, CFConstant::name, and CFConstant::value.
Referenced by main().
Here is the caller graph for this function:| void writeMethods | ( | std::ofstream & | pyi, |
| const PyMethodDef | method[], | ||
| const methodSignature * | signatures, | ||
| bool | inClass | ||
| ) |
Definition at line 87 of file pyi-generate.cpp.
References getSignature(), m, and writeDescriptionAndBody().
Referenced by main(), and writeClass().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 63 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 66 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 49 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 52 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 21 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 26 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 30 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 56 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 59 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 34 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 37 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 42 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 45 of file pyi-generate.cpp.
Referenced by main().
|
static |
Definition at line 18 of file pyi-generate.cpp.
Referenced by getSignature().
|
static |
Definition at line 19 of file pyi-generate.cpp.
Referenced by getSignature().