Panda3D
Classes | Functions
factoryParams.h File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "pandabase.h"
#include "typedObject.h"
#include "typedReferenceCount.h"
#include "pointerTo.h"
#include "factoryParam.h"
#include "dcast.h"
#include "pvector.h"
#include "factoryParams.I"

Go to the source code of this file.

Classes

class  FactoryParams
 An instance of this class is passed to the Factory when requesting it to do its business and construct a new something. More...
 

Functions

template<class ParamType >
bool get_param_into (ParamType *&pointer, const FactoryParams &params)
 A handy convenience template function that extracts a parameter of the indicated type from the FactoryParams list. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2000-05-08

Definition in file factoryParams.h.

Function Documentation

◆ get_param_into()

template<class ParamType >
bool get_param_into ( ParamType *&  pointer,
const FactoryParams params 
)
inline

A handy convenience template function that extracts a parameter of the indicated type from the FactoryParams list.

If the parameter type is found, it fills the pointer and returns true; otherwise, it sets the pointer to NULL and returns false.

Definition at line 31 of file factoryParams.I.

References FactoryParams::get_param_of_type().